Upload 10 files f225bf9 verified
Loïck commited on
How to use CATIE-AQ/FAT5-small-flan-en with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="CATIE-AQ/FAT5-small-flan-en", trust_remote_code=True) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("CATIE-AQ/FAT5-small-flan-en", trust_remote_code=True, device_map="auto")