I’m trying to run the lab 1 of Gen AI with LLM course, and I’m getting these errors on the python libraries installation:
And the follwing errors on importing the libs on python:
Already tryied to change the libs versions, but nothing works… any help?
hi @jaegerfe
welcome to the community 
the issue that you face here is that there a manually changing at the library versions, so the library versions has caused a dependency mismatch between transformers datasets and peft which is why you see that import error
the red errors in the logs show that other preinstalled packages like autogluon are conflicting with the new versions you tried to install
also for knowledge, the course environment comes with all the correct versions already preinstalled and configured so you don’t need to upgrade or change them manually
to fix this completely i see that you just need to reset your lab workspace to its original clean state
you can do this easily by clicking the lab menu or the refresh button in the top right corner of your workspace and selecting reboot server or reset workspace
once the server restarts just run the cells as they are without modifying any pip install commands and the imports should work perfectly ,
best regards
Hi,
If you’ve modified any of the lab commands, you’re not supposed to change anything—especially the import statements. These are set up in a specific way for the lab to work correctly.
If you have made any changes, please reset the lab as previously suggested by the mentor. That should restore everything to the expected state.
If you reset the lab and still encounter the same issue, it could be due to updates in dependencies or libraries. In that case, please let us know again so we can take a closer look.
Hi. In addition, those errors about dependencies are expected as mentioned in the instructions. Those packages wont be used in the lab.
I also got the error; what I did was press stop and then enter.