Skip to content
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

TypeError: can only concatenate str (not "int") to str #147

Open
RunForRes opened this issue Apr 25, 2024 · 1 comment
Open

TypeError: can only concatenate str (not "int") to str #147

RunForRes opened this issue Apr 25, 2024 · 1 comment

Comments

@RunForRes
Copy link

屏幕截图 2024-04-25 100108
When I run the command "torchrun --nproc_per_node 1 example_chat_completion.py
--ckpt_dir /data/pretrained_models/llama3/Meta-Llama-3-8B-Instruct/
--tokenizer_path /data/pretrained_models/llama3/Meta-Llama-3-8B-Instruct/tokenizer.model
--max_seq_len 512 --max_batch_size 6", it throws a type error like this.

But when I run example_chat_completion.py directly without using torchrun, it works normally.

@ailuropodaWu
Copy link

ailuropodaWu commented Apr 26, 2024

I've faced the same issue, and I found out that adding --max_gen_len 512 at the end of the command could solve the problem. I hope it helps you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants