Code errors running Lab_2_fine_tune_generative_ai_model.ipynb provided in the lab.
Unable to install keras==3.9.0 and torchdata==0.6.0 (these specific versions of the packages aren’t found). Without these, the lab code doesn’t work.
I tried restarting the lab, but it didn’t help. If remapping to different versions is necessary, could you advise which versions to use?
- Week 2
- Description:
ERROR: Could not find a version that satisfies the requirement torchdata==0.6.0 (from versions: none)
ERROR: No matching distribution found for torchdata==0.6.0
ERROR: Could not find a version that satisfies the requirement datasets==2.17.0 (from versions: none)
ERROR: No matching distribution found for datasets==2.17.0
1 Like
Have you run all the previous cells above this cell? Let us know if this issue persists after restarting the kernel and running all cells above again!
Dear @Olga-T,
Welcome to the community!
Please follow these steps.
First upgrade pip
%pip install --upgrade pip
Install tensorflow and keras first
%pip install tensorflow==2.18.0 keras==3.9.0
Install torch and torchdata
%pip install --no-deps torch==2.5.1 torchdata==0.6.0 --quiet
Then install other packages except TRL
%pip install -U
datasets==2.17.0
transformers==4.38.2
evaluate==0.4.0
rouge_score==0.1.2
peft==0.3.0 --quiet
Let me know if you still face problems.
hi I’m experienced also the time error during pip install step in Lab 2 and Lab3.
I have run orevious cells ,restart the kernel but the error persits.
Hi @Girijesh is the a workaround for the Lab, are there any problems with the imports present in the Lab that you know of?
Hi everyone! I’m locking this topic so we can just have one for updates. Please monitor this topic instead. Thank you!
1 Like