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

  • Log In
  • Sign Up

Nextcloud-AI
/
opus-mt-de-en

Translation
Transformers
PyTorch
google-tensorflow TensorFlow
Rust
marian
text2text-generation
Model card Files Files and versions
xet
Community
1

Instructions to use Nextcloud-AI/opus-mt-de-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Nextcloud-AI/opus-mt-de-en 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="Nextcloud-AI/opus-mt-de-en")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-de-en")
    model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-de-en")
  • Notebooks
  • Google Colab
  • Kaggle
opus-mt-de-en
1.14 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 31 commits
joaogante's picture
joaogante
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
1a922f3 over 2 years ago
  • .gitattributes
    345 Bytes
    initial commit about 6 years ago
  • README.md
    1.37 kB
    metadata: add license over 4 years ago
  • config.json
    1.38 kB
    Add TF weights over 3 years ago
  • generation_config.json
    293 Bytes
    set `renormalize_logits=True` for better performance (see `transformers` issue #4290) over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    298 MB
    xet
    Update pytorch_model.bin about 6 years ago
  • rust_model.ot
    536 MB
    xet
    Update rust_model.ot almost 6 years ago
  • source.spm
    797 kB
    Update source.spm about 6 years ago
  • target.spm
    768 kB
    Update target.spm about 6 years ago
  • tf_model.h5
    298 MB
    xet
    Add TF weights over 3 years ago
  • tokenizer_config.json
    42 Bytes
    Update tokenizer_config.json about 6 years ago
  • vocab.json
    1.27 MB
    Update vocab.json about 6 years ago