Medusa icon indicating copy to clipboard operation
Medusa copied to clipboard

Conversation roles must alternate user/assistant/user/assistant/

Open gangooteli opened this issue 1 year ago • 0 comments

I checked. They are alternate

File "/root/Medusa/medusa/train/train_legacy.py", line 183, in preprocess prompt = tokenizer.apply_chat_template(conversation, tokenize=False) File "/root/miniconda3/envs/fschat/lib/python3.9/site-packages/transformers/tokenization_utils_base.py", line 1743, in apply_chat_template rendered = compiled_template.render( File "/root/miniconda3/envs/fschat/lib/python3.9/site-packages/jinja2/environment.py", line 1304, in render self.environment.handle_exception() File "/root/miniconda3/envs/fschat/lib/python3.9/site-packages/jinja2/environment.py", line 939, in handle_exception raise rewrite_traceback_stack(source=source) File "

Please help me with the resolution

gangooteli avatar May 13 '24 08:05 gangooteli