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

DunnBC22
/
opus-mt-de-en-OPUS_Medical_German_to_English

Translation
Transformers
PyTorch
TensorBoard
English
German
marian
text2text-generation
Generated from Trainer
medical
Model card Files Files and versions
xet
Metrics Training metrics Community
1

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

  • Libraries
  • Transformers

    How to use DunnBC22/opus-mt-de-en-OPUS_Medical_German_to_English 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="DunnBC22/opus-mt-de-en-OPUS_Medical_German_to_English")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("DunnBC22/opus-mt-de-en-OPUS_Medical_German_to_English")
    model = AutoModelForSeq2SeqLM.from_pretrained("DunnBC22/opus-mt-de-en-OPUS_Medical_German_to_English")
  • Notebooks
  • Google Colab
  • Kaggle
opus-mt-de-en-OPUS_Medical_German_to_English / runs
19.4 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
DunnBC22's picture
DunnBC22
End of training
8613c07 almost 3 years ago
  • Aug15_16-48-49_22b6108997f2
    End of training almost 3 years ago