-
Notifications
You must be signed in to change notification settings - Fork 179
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
[Good First Issue] Verify baichuan2-7b-chat with GenAI text_generation #328
Conversation
Not sure why the CI failed, it could run locally:
|
Just noticed that previous build step failed, so the folder
Need to find a way to solve above issue |
Hello @pavel-esir , I've added pip install bitsandbytes step before running this model. Could we try CI again to see if this time it works? Thanks a lot! |
I've checked the new error in CI, this is expected. We need to wait for the change to intel-optimum to be merged. #273 (comment) |
…thub workflow and README
To catch up huggingface/optimum-intel#628 Required for #328 --------- Co-authored-by: Ekaterina Aidova <[email protected]>
tokenized = tokenizer('69', return_tensors='pt') | ||
for beam in transformers.AutoModelForCausalLM.from_pretrained('baichuan-inc/Baichuan2-7B-Chat',trust_remote_code=True).generate(**tokenized, num_beam_groups=3, num_beams=15, num_return_sequences=15, diversity_penalty=1.0, max_new_tokens=20, early_stopping=False, length_penalty=1.0, no_repeat_ngram_size=9**9, do_sample=False): | ||
ref = tokenizer.decode(beam[tokenized['input_ids'].numel():], skip_special_tokens=True) | ||
idx = predictions.find(ref) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now, we have error on this line:
RuntimeError: Missing ref='69696969696969696969' from predictions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, same happened locally. I'm not sure if it is the problem. Could it due to the random nature of generating? I'm studying into it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we need to address these warnings? let's try to fully override GenerationConfig for the model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great suggestion, these warning could be the clue. I'll try to understand these parameters and make change.
@mengbingrock are you still working on this? if so could you please resolve conflicts with the latest master? |
I could continue working in this, first I'll resolve the conflicts with the latest master. |
@mengbingrock any updates here? |
Verified baichuan2-7b-chat with GenAI text_generation, added it to Github workflow and README.
This PR should be merged after a change to optimum-intel is made: 273