model generation not working
LucienShui opened this issue · 0 comments
LucienShui commented
huggingface-vscode-endpoint-server/main.py
Lines 18 to 42 in 91848af
File "/home/debian/.local/miniconda3/envs/all-in-one/lib/python3.10/site-packages/transformers/pipelines/text_generation.py", line 251, in _forward
generated_sequence = self.model.generate(input_ids=input_ids, attention_mask=attention_mask, **generate_kwargs)
File "/home/debian/.local/miniconda3/envs/all-in-one/lib/python3.10/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "/home/debian/.local/miniconda3/envs/all-in-one/lib/python3.10/site-packages/transformers/generation/utils.py", line 1485, in generate
return self.sample(
File "/home/debian/.local/miniconda3/envs/all-in-one/lib/python3.10/site-packages/transformers/generation/utils.py", line 2565, in sample
raise ValueError("If `eos_token_id` is defined, make sure that `pad_token_id` is defined.")
ValueError: If `eos_token_id` is defined, make sure that `pad_token_id` is defined.