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

teelinsan
/
opus-mt-eng-deu

Translation
Transformers
PyTorch
Safetensors
English
German
multilingual
marian
text2text-generation
opus-mt
Eval Results (legacy)
Model card Files Files and versions
xet
Community
2

Instructions to use teelinsan/opus-mt-eng-deu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use teelinsan/opus-mt-eng-deu 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="teelinsan/opus-mt-eng-deu")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("teelinsan/opus-mt-eng-deu")
    model = AutoModelForSeq2SeqLM.from_pretrained("teelinsan/opus-mt-eng-deu", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
opus-mt-eng-deu
446 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 6 commits
teelinsan's picture
teelinsan
lbourdois's picture
lbourdois
Add multilingual to the language tag (#1)
6ec5e83 over 2 years ago
  • .gitattributes
    1.44 kB
    Adding `safetensors` variant of this model (#2) over 2 years ago
  • README.md
    3.65 kB
    Add multilingual to the language tag (#1) over 2 years ago
  • config.json
    1.07 kB
    Initial commit almost 4 years ago
  • model.safetensors
    222 MB
    xet
    Adding `safetensors` variant of this model (#2) over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    222 MB
    xet
    Initial commit almost 4 years ago
  • source.spm
    794 kB
    Initial commit almost 4 years ago
  • special_tokens_map.json
    74 Bytes
    Initial commit almost 4 years ago
  • target.spm
    819 kB
    Initial commit almost 4 years ago
  • tokenizer_config.json
    318 Bytes
    Initial commit almost 4 years ago
  • vocab.json
    1.7 MB
    Initial commit almost 4 years ago