-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
error: cannot unpack non-iterable ActionTypeHint object #1931
Comments
Fwiw, I'm seeing the same thing on a fresh install of litgpt. Also trying to follow the tutorial. Same version. I'm going to see if I can downgrade and try againGoing back to 3.1 I'm still seeing it (for finetune, not finetune_lora since that wasn't an option there).
data file: |
This appears to be something related to jsonargparse library - as far as I can tell nothing is wrong in the code although I'm not familiar with this particular parser; I'm going to try a different version of python; I'm using 3.12 currently. |
@pvaldivia4 changing to using python3.10 worked for me, I think jsonargparse needs to be updated to work with 3.12 (maybe also 3.11, not sure which one broke it). Assuming you have python3.10 installed: I also created a directory for the data files, and created two files in there - If I see a version of jsonargparse that is compatible with python3.12, I'll open a PR. |
@pvaldivia4 if you can't downgrade or install a different python version, I've made a branch that should work https://github.com/syntheticgio/litgpt/tree/add-compatibility-for-python3.10%2B
I'll make a PR request, but not sure what the maintainer's process is for accepting those or if they are willing to try to support python3.12 (its possible other things break that I don't even know to test). |
Bug description
Dear Lightning,
I'm attempting to follow a medium tutorial using my own dataset. I have downgraded lightning due to a suggestion on issue #1915. On step 3 of the tutorial, the fine-tuning step using litgpt, I receive the message "error: cannot unpack non-iterable ActionTypeHint object".
I am on Version 0.5.7 of litgpt and have train.json as well as the checkpoints/mistralai/Mistral-7B-Instruct-v0.3 folders in my working directory
Thus far, I have tried:
litgpt finetune_lora checkpoints/mistralai/Mistral-7B-Instruct-v0.3 --data JSON --data.json_path train.json --data.val_split_fraction 0.2 --out_dir out/custom-model
Appreciate any help that you can provide.
What operating system are you using?
Linux
LitGPT Version
The text was updated successfully, but these errors were encountered: