-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codellama issue in bigdl-llm #10053
Comments
Hi, I am working on this and will try to reproduce the issue first. May I ask what environment are you using? Can you list the output of |
It's SPR node. no XPU. :~$ lscpu |
On SPR I tested bigdl llm with codellama-7b-hf model on transformers 4.36.2. Once upon a time, there was a king who had a daughter. She was very beautiful, and she was very smart. She was very good at math -------------------- Prompt -------------------- Artificial intelligence (AI) is the ability of a computer to learn and make decisions without being explicitly programmed. AI is a field The result seems OK. Can you try latest version of bigdl-llm and check if tokenizer/prompt is OK? |
I test on SPR with transformers 4.36.2 Once upon a time, there was a king who had a daughter. She was very beautiful, and she was very smart. She was very good at math -------------------- Prompt -------------------- Artificial intelligence (AI) is the ability of a computer to learn and make decisions without being explicitly programmed. AI is a field It seems OK. Can you try the latest version of bigdl-llm and check if the tokenizer/prompt is OK? |
In bigdl-llm 2.4, transformers version is 4.31. But codellama example needs 4.34.1.
In bigdl-llm 2.5.0b20240130, transformers version is still 4.31. @gc-fu told me bigdl-llm 2.5.0b20240130 is compatible with transformers 4.36. As tested, codellama works well with transformers 4.35.0, but not 4.36. In 4.36, the generated just repeats the prompt.
Prompt: "Once upon a time, "
Output: "Once upon a time, Once upon a time, Once upon a time, Once upon a time, Once upon a time, Once upon a time, Once upon a time, Once upon a time, Once upon a time, Once upon a time, Once upon a time, Once upon a time, Once upon a time, Once upon a time"
Prompt: "What is AI?"
Output: "What is AI? What is AI? What is AI? What is AI? What is AI? What is AI? What is AI? What is AI? What is AI? What is AI? What is AI? What is AI? What is AI? What is AI?"
The text was updated successfully, but these errors were encountered: