Instructions to use roborovski/superprompt-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use roborovski/superprompt-v1 with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("roborovski/superprompt-v1") model = AutoModelForSeq2SeqLM.from_pretrained("roborovski/superprompt-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Load model from local path not from Huggingface
#11
by andynmt - opened
I figured it out: you have to download the entire folder of the model and pass the local path to the folder not the model_id:
model_path = "./models/superprompt-v1"
model = T5ForConditionalGeneration.from_pretrained(model_path, use_safetensors=True)
I hope this helps!
roborovski changed discussion status to closed
