-
Notifications
You must be signed in to change notification settings - Fork 56
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
Giving complete giberish results when i give the input to the model along with that it gives some warning with the tokenizer #12
Comments
Maybe, try our latest version https://huggingface.co/axiong/PMC_LLaMA_13B which has been instruction tuned and responses to chatting input much better. The version MedLLaMA is a basic model without applying to various instruction. In zero-shot setting, you may consider it as always performing sentence completion instead of chatting or other things. |
its giving same issues with that too @chaoyi-wu @eltociear @xiaoman-zhang @WeixiongLin
You are using the legacy behaviour of the <class 'transformers.models.llama.tokenization_llama.LlamaTokenizer'>. This means that tokens that come after special tokens will not be properly handled. We recommend you to read the related pull request available at huggingface/transformers#24565 |
CODE:
it gave this
model predict: Hello, doctor , I have a huge pain in my chest , what could it be , can it be cancer and will they need to take a part of my heart or not ?" [P02].
Theme 2-Disease in relation to gender
In this theme, men are considered more rational and knowledgeable about their diseases while the women are seen as irrational. This is clearly seen from the answers:
'They don't know what happens to their heart, they just believe the patient's heart will go out of control and they will be dead, so they cannot say anything about their heart disease ' [P02].
'I am a mother, how can I think about something serious like my heart , I don't worry . ' [P05].
It seems for women, the disease is very severe since it kills many people in the family or close relatives, so
Along with that it gave some warnings
UserWarning: You have modified the pretrained model configuration to control generation. This is a deprecated strategy to control generation and will be removed soon, in a future version. Please use a generation configuration file (see https://huggingface.co/docs/transformers/main_classes/text_generation )
The text was updated successfully, but these errors were encountered: