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-en-sh

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

Instructions to use Helsinki-NLP/opus-mt-tc-base-en-sh 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-en-sh 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-en-sh")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-tc-base-en-sh")
    model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-tc-base-en-sh")
  • Notebooks
  • Google Colab
  • Kaggle
opus-mt-tc-base-en-sh
Ctrl+K
Ctrl+K
  • 3 contributors
History: 2 commits
tiedeman's picture
tiedeman
Initial commit
dda10b0 over 3 years ago
  • .gitattributes
    1.43 kB
    Initial commit over 3 years ago
  • README.md
    11.8 kB
    Initial commit over 3 years ago
  • benchmark_results.txt
    1.26 kB
    Initial commit over 3 years ago
  • benchmark_translations.zip

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    3.66 MB
    xet
    Initial commit over 3 years ago
  • config.json
    1.07 kB
    Initial commit over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    209 MB
    xet
    Initial commit over 3 years ago
  • source.spm
    795 kB
    xet
    Initial commit over 3 years ago
  • special_tokens_map.json
    65 Bytes
    Initial commit over 3 years ago
  • target.spm
    812 kB
    xet
    Initial commit over 3 years ago
  • tokenizer_config.json
    310 Bytes
    Initial commit over 3 years ago
  • vocab.json
    1.56 MB
    Initial commit over 3 years ago