'PromptForGeneration' object has no attribute 'can_generate'
I am trying tutorial 4.1_all_tasks_are_generation, the training run for a while, then it stopped because of the following errors, any ideas how to solve this?
Train: 2%|███▋ | 500/20000 [11:36<7:37:26, 1.41s/it, loss=45.9]Traceback (most recent call last):
File "/home/opc/gpt-dev/OpenPrompt/tutorial/4.1_all_tasks_are_generation.py", line 399, in
Same problem with 2.1_conditional_generation.py. Is this a bug in PromptForGeneration?
You can try to uninstall transformer and install transformer==4.19.0 then it works.
Faced the same error. tried with transformers 4.19.0 and it worked. But 4.19.0 doesnt have LlamaConfig, LlamaForCausalLM or LlamaTokenizer.
Does anyone know how can i use llama2 then on openprompt and not face the can_generate error?
Faced the same error. tried with transformers 4.19.0 and it worked. But 4.19.0 doesnt have LlamaConfig, LlamaForCausalLM or LlamaTokenizer.
Does anyone know how can i use llama2 then on openprompt and not face the can_generate error?
I think it would be great if this function would be supported.
Faced the same error. tried with transformers 4.19.0 and it worked. But 4.19.0 doesnt have LlamaConfig, LlamaForCausalLM or LlamaTokenizer.
Does anyone know how can i use llama2 then on openprompt and not face the can_generate error?
Hello, I'm facing the same problem. Did you solved it?