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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Helsinki-NLP
/
opus-mt-tc-base-gmw-gmw

Translation
Transformers
PyTorch
google-tensorflow TensorFlow
Safetensors
marian
text2text-generation
opus-mt-tc
Eval Results (legacy)
Model card Files Files and versions
xet
Community
5

Instructions to use Helsinki-NLP/opus-mt-tc-base-gmw-gmw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Helsinki-NLP/opus-mt-tc-base-gmw-gmw 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="Helsinki-NLP/opus-mt-tc-base-gmw-gmw")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-tc-base-gmw-gmw")
    model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-tc-base-gmw-gmw")
  • Notebooks
  • Google Colab
  • Kaggle
opus-mt-tc-base-gmw-gmw
535 MB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 18 commits
ArthurZ's picture
ArthurZ HF Staff
Update checkpoint for transformers>=4.29 (#5)
5cf08be over 2 years ago
  • .gitattributes
    1.23 kB
    Update checkpoint for transformers>=4.29 (#5) over 2 years ago
  • README.md
    25.9 kB
    Add `opus-mt-tc` tag (#1) about 4 years ago
  • benchmark_translations.zip

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    30.8 MB
    xet
    Initial commit over 4 years ago
  • benchmarks.tsv
    10.2 kB
    Initial commit over 4 years ago
  • config.json
    1.07 kB
    Update checkpoint for transformers>=4.29 (#5) over 2 years ago
  • generation_config.json
    293 Bytes
    Update checkpoint for transformers>=4.29 (#5) over 2 years ago
  • model.safetensors
    125 MB
    xet
    Update checkpoint for transformers>=4.29 (#5) over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    125 MB
    xet
    Update checkpoint for transformers>=4.29 (#5) over 2 years ago
  • source.spm
    802 kB
    Initial commit over 4 years ago
  • special_tokens_map.json
    65 Bytes
    Initial commit over 4 years ago
  • target.spm
    802 kB
    Initial commit over 4 years ago
  • tf_model.h5
    252 MB
    xet
    Add TF weights over 3 years ago
  • tokenizer_config.json
    309 Bytes
    Initial commit over 4 years ago
  • vocab.json
    886 kB
    Initial commit over 4 years ago