deepspeedai / deepspeedai/DeepSpeed
[BUG] The text generated by the hybrid engine does not meet expectations, the model is GPTNeoX
@molly-smith is already working on this.
Since May 19, 2023.
- Dominant language
- Python
- Stars
- 43.1k
- Forks
- 5k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 112
Description
huggingface model config:
{
"activation_function": "gelu",
"architectures": [
"GPTNeoXForCausalLM"
],
"bos_token_id": 0,
"eos_token_id": 2,
"hidden_act": "gelu",
"hidden_size": 1536,
"initializer_range": 0.02,
"intermediate_size": 6144,
"layer_norm_eps": 1e-05,
"max_position_embeddings": 4096,
"model_type": "gpt_neox",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"rotary_emb_base": 10000,
"rotary_pct": 1,
"tie_word_embeddings": false,
"transformers_version": "4.28.1",
"use_cache": true,
"use_parallel_residual": false,
"vocab_size": 30336
}
When hybrid_engine.enabled=False, the response is fine. The implementation of GPTNeoX Container in hybrid_engine looks inconsistent with huggingface.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.