upload model 99a62fb
Ahmed Elnaggar commited on
How to use ElnaggarLab/ankh3-xl with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="ElnaggarLab/ankh3-xl") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("ElnaggarLab/ankh3-xl")
model = AutoModelForSeq2SeqLM.from_pretrained("ElnaggarLab/ankh3-xl", device_map="auto")