Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

abbasmahmudiai
/
MT5_en_to_persian

Translation
Transformers
Safetensors
English
Persian
mt5
text2text-generation
Model card Files Files and versions
xet
Community

Instructions to use abbasmahmudiai/MT5_en_to_persian with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use abbasmahmudiai/MT5_en_to_persian 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="abbasmahmudiai/MT5_en_to_persian")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("abbasmahmudiai/MT5_en_to_persian")
    model = AutoModelForSeq2SeqLM.from_pretrained("abbasmahmudiai/MT5_en_to_persian", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
MT5_en_to_persian
2.34 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
abbasmahmudiai's picture
abbasmahmudiai
Update README.md
ae778b7 verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • Mt5FinetuningMT2562024.ipynb
    152 kB
    Upload 12 files about 2 years ago
  • README.md
    116 Bytes
    Update README.md about 2 years ago
  • config.json
    827 Bytes
    Upload 12 files about 2 years ago
  • eval_results.txt
    31 Bytes
    Upload 12 files about 2 years ago
  • generation_config.json
    142 Bytes
    Upload 12 files about 2 years ago
  • model.safetensors
    2.33 GB
    xet
    Upload 12 files about 2 years ago
  • model_args.json
    2.55 kB
    Upload 12 files about 2 years ago
  • optimizer.pt

    Detected Pickle imports (3)

    • "torch.FloatStorage",
    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    4.12 MB
    xet
    Upload 12 files about 2 years ago
  • scheduler.pt

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    1.06 kB
    xet
    Upload 12 files about 2 years ago
  • special_tokens_map.json
    416 Bytes
    Upload 12 files about 2 years ago
  • spiece.model
    4.31 MB
    xet
    Upload 12 files about 2 years ago
  • tokenizer_config.json
    881 Bytes
    Upload 12 files about 2 years ago
  • training_args.bin

    Detected Pickle imports (1)

    • "simpletransformers.config.model_args.T5Args"

    How to fix it?

    3.58 kB
    xet
    Upload 12 files about 2 years ago