When the chat_template is not set in the YAML configuration file, crashes#621
Open
dignfei wants to merge 1 commit intohuggingface:mainfrom
Open
When the chat_template is not set in the YAML configuration file, crashes#621dignfei wants to merge 1 commit intohuggingface:mainfrom
dignfei wants to merge 1 commit intohuggingface:mainfrom
Conversation
… program crashes unexpectedly.
Member
|
Hello @dignfei can you share which task you're training with (SFT or GRPO) and which model? |
Author
This has nothing to do with the model; as long as the chat_template is not set in the YAML file, an error will occur. qwen2.5-14b ,grpo |
Member
|
I was not able to replicate an error with the following: # launch server on GPU 0
CUDA_VISIBLE_DEVICES=0 trl vllm-serve --model Qwen/Qwen2.5-0.5B
# run training on GPU 1
CUDA_VISIBLE_DEVICES=1 TRANSFORMERS_VERBOSITY=info ACCELERATE_LOG_LEVEL=info accelerate launch --config_file recipes/accelerate_configs/zero2.yaml --num_processes 1 src/open_r1/grpo.py --config recipes/DeepSeek-R1-Distill-Qwen-1.5B/grpo/config_demo.yaml --model_name_or_path Qwen/Qwen2.5-0.5B --num_completions_to_print 0 --wandb_log_unique_prompts trueThe config is unchanged except for commenting out the chat template. Can you share your config and arguments to run the server / train? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the chat_template is not set in the YAML configuration file, the program crashes unexpectedly.