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