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

[Bug Report] All fine tunes for Mistral 7b using sagemaker jumpstart are currently failing. #4553

Open
aadupirn opened this issue Feb 2, 2024 · 3 comments

Comments

@aadupirn
Copy link

aadupirn commented Feb 2, 2024

All fine tunes for Mistral 7b using sagemaker jumpstart are currently failing with:

"ImportError: cannot import name 'insecure_hashlib' from 'huggingface_hub.utils' (/opt/conda/lib/python3.10/site-packages/huggingface_hub/utils/init.py)"

After changing nothing on my end fine tuning started to fail after many previous successful fine tunes.

To reproduce
Try to fine tune any model using the guides here:
https://aws.amazon.com/blogs/machine-learning/fine-tune-and-deploy-mistral-7b-with-amazon-sagemaker-jumpstart/

@aadupirn
Copy link
Author

aadupirn commented Feb 3, 2024

I was able to work around this:

The bug is still in sagemaker but I was able to workaround it but downloading and unpacking the source from AWS that is used and manually fixing deps by building new linux whl's that don't break. Using the latest whls for linux 2014 for transformers, tokenizer and huggingface_hub will fix it.

@tuneshverma
Copy link

I am also facing the same issue, can you please elaborate more, how you fixed the issue. I am fairly new to this.
Did you get the sagemaker image and create a container and then did the required change and created new image from that and used that, if yes then from where did you get the image and how to use the new image with sagemaker train pipeline.
Thanks in advance.

@tuneshverma
Copy link

solved the issue by changing the version of transformers to latest which is 4.37.2, which updated the tokenizer and huggingface_hub

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