Translation
Transformers
TensorBoard
Safetensors
t5
text2text-generation
NLP
Machine Translation
Moroccan Arabic
Darija
Modern Standard Arabic
MSA
AraT5
text-generation-inference
Instructions to use saidettousy/AraT5_Darija_to_MSA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saidettousy/AraT5_Darija_to_MSA with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="saidettousy/AraT5_Darija_to_MSA")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("saidettousy/AraT5_Darija_to_MSA") model = AutoModelForSeq2SeqLM.from_pretrained("saidettousy/AraT5_Darija_to_MSA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
How do I run this model locally on my Windows machine?
#1
by Winnougan - opened
I have downloaded all the files and have an RTX 4090, core 9 machine. Would like to try this locally. How do I do that? Choukran.
Hello,
Sorry for the late reply, to run the model you just have to follow the code example i provided in the readme file.
It's the same code either you run it from a cloud or your local machine. Just make sure you choose the right gpu/cpu configuration.