Translation
Transformers
PyTorch
TensorBoard
English
German
marian
text2text-generation
Generated from Trainer
medical
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, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("DunnBC22/opus-mt-de-en-OPUS_Medical_German_to_English") model = AutoModelForMultimodalLM.from_pretrained("DunnBC22/opus-mt-de-en-OPUS_Medical_German_to_English") - Notebooks
- Google Colab
- Kaggle
File size: 288 Bytes
8613c07 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | {
"_from_model_config": true,
"bad_words_ids": [
[
58100
]
],
"bos_token_id": 0,
"decoder_start_token_id": 58100,
"eos_token_id": 0,
"forced_eos_token_id": 0,
"max_length": 512,
"num_beams": 4,
"pad_token_id": 58100,
"transformers_version": "4.31.0"
}
|