Instructions to use predibase/glue_stsb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use predibase/glue_stsb with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1") model = PeftModel.from_pretrained(base_model, "predibase/glue_stsb") - Notebooks
- Google Colab
- Kaggle
Deployment details
- Needed some information on how to deploy this model in AWS Sagemaker or an ec2 instance and use it through an API
@thekiran Let me know if this tutorial helps: https://medium.com/@joaopcmoura/lora-serving-on-amazon-sagemaker-serve-100s-of-fine-tuned-llms-for-the-price-of-1-85034ef889c5
thanks. will check it out!
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/api/models/mistralai/Mistral-7B-Instruct-v0.1
Cannot access gated repo for url https://huggingface.co/api/models/mistralai/Mistral-7B-Instruct-v0.1.
i get this error when i deploy the model
not sure how to add my hugging face token details, could you please help
yes. im not sure where to add the HF token in the above medium code. could you please help me out with that
You can just set the HUGGING_FACE_HUB_TOKEN environment variable to your HF token and you should be good to go