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

Dictionary is passed as text instead of string for multi-turn inputs #3

Open
sahu-ji opened this issue Feb 5, 2025 · 1 comment
Open

Comments

@sahu-ji
Copy link

sahu-ji commented Feb 5, 2025

Hi, thank you for sharing your project. I think there is a bug here (https://github.com/2U1/Pixtral-Finetune/blob/master/src/training/data.py#L131). You are passing text = user_input instead of text = user_input_text. user_input is a dictionary and hence the code throws an exception.

@2U1
Copy link
Owner

2U1 commented Feb 5, 2025

Sorry, it should be fixed like prompt_input_ids = processor(text=user_input_text, return_tensors='pt')['input_ids']
Thanks for reporting the bug.

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