deepspeedai / deepspeedai/DeepSpeed

[BUG] The text generated by the hybrid engine does not meet expectations, the model is GPTNeoX

Open
#3,453 2 comments 0 reactions 1 assignee View on GitHub

@molly-smith is already working on this.

Since May 19, 2023.

bug deepspeed-chat
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.