Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

marefa-nlp
/
marefa-mt-en-ar

Translation
Transformers
PyTorch
English
Arabic
marian
text2text-generation
Arabic Abjad Characters
Arabic
Model card Files Files and versions
xet
Community
1

Instructions to use marefa-nlp/marefa-mt-en-ar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use marefa-nlp/marefa-mt-en-ar 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="marefa-nlp/marefa-mt-en-ar")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("marefa-nlp/marefa-mt-en-ar")
    model = AutoModelForSeq2SeqLM.from_pretrained("marefa-nlp/marefa-mt-en-ar")
  • Notebooks
  • Google Colab
  • Kaggle
marefa-mt-en-ar
Ctrl+K
Ctrl+K
  • 2 contributors
History: 6 commits
elishowk's picture
elishowk
Automatic correction of README.md metadata for keys. Contact website@huggingface.co for any question
7152be2 over 4 years ago
  • .gitattributes
    690 Bytes
    initial commit over 5 years ago
  • .gitattributes (1)
    690 Bytes
    Update MT Model over 5 years ago
  • .gitattributes (2)
    690 Bytes
    Update MT Model over 5 years ago
  • .gitattributes (3)
    690 Bytes
    Update MT Model over 5 years ago
  • README.md
    2.38 kB
    Automatic correction of README.md metadata for keys. Contact website@huggingface.co for any question over 4 years ago
  • config.json
    1.32 kB
    Update MT Model over 5 years ago
  • pytorch_model.bin
    306 MB
    xet
    Update MT Model over 5 years ago
  • source.spm
    801 kB
    Update MT Model over 5 years ago
  • special_tokens_map.json
    65 Bytes
    Update MT Model over 5 years ago
  • target.spm
    917 kB
    Update MT Model over 5 years ago
  • tokenizer_config.json
    237 Bytes
    Update MT Model over 5 years ago
  • train_results.txt
    72 Bytes
    Update MT Model over 5 years ago
  • trainer_state.json
    30.7 kB
    Update MT Model over 5 years ago
  • training_args.bin
    2.22 kB
    xet
    Update MT Model over 5 years ago
  • vocab.json
    2.24 MB
    Update MT Model over 5 years ago