-
Notifications
You must be signed in to change notification settings - Fork 13
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
Demo error: invalid literal for int() with base 10: #7
Comments
I'm getting the same error: "ValueError: invalid literal for int() with base 10" when executing the demo for text-to-motion. @felipe-parodi could you solve it? |
Still haven't solved it. I tried fine-tuning LLaMA on the kit dataset, and that didn't solve it either. |
Thanks for the quick response |
try: |
that doesn't solve the issue though, that simply creates a tensor of ones if it doesn't get the desired output. |
This might be your model training is broken. You can try the pretrained 7B model that the author updated. It can generate the desire output |
Hi @SHUWEI-HO, thanks for your quick response. The same happens for me with the pretrained 7B model as well as the finetuned model. Could you share your generate_motion script? it's unclear why it isn't working on my end. |
|
Thanks. Why did you remove the original decoding line 106 |
Sorry, I missed the code "output = tokenizer.decode(output)" up . I edited my previous reply . |
I always get tensor of ones with the pretrained 7B model. @SHUWEI-HO in your code you have args = option.get_argsdi_parser(), Maybe you have different arguments configured. |
Hi @felipe-parodi -- tokens can also be loaded like this : Hope this helps |
The weights of llama downloaded from pyllama maybe change. So the fine-tuned weights provided will not match with llama you downloaded. You can fine-tune the model by yourselves. |
Hi all,
Thanks for your work. I'm encountering an issue when I attempt to run the demo:
tokens = torch.tensor([int(token) for token in output.split(',')]).cuda()
,I encounter the error message
To filter out non-integer values, I tried modifying the line to
tokens = torch.tensor([int(token) for token in output.split(',') if token.isdigit()], dtype=torch.long).cuda()
but then encountered the Runtime error:
I followed installation instructions as listed. Any suggestions? Thanks!
The text was updated successfully, but these errors were encountered: