Instructions to use code-world/google-flan-t5-small-lora-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use code-world/google-flan-t5-small-lora-ft with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-small") model = PeftModel.from_pretrained(base_model, "code-world/google-flan-t5-small-lora-ft") - Transformers
How to use code-world/google-flan-t5-small-lora-ft with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("code-world/google-flan-t5-small-lora-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from code-world/google-flan-t5-small-lora-ft: direct link, hf CLI and curl.
- Browser
- Download file 2.42 MB
-
https://huggingface.co/code-world/google-flan-t5-small-lora-ft/resolve/main/tokenizer.json
- Command line
-
hf download hf://code-world/google-flan-t5-small-lora-ft/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/code-world/google-flan-t5-small-lora-ft/resolve/main/tokenizer.json
2.42 MB
File too large to display, you can check the raw version instead.