YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
Your Model Name
This model is a fine-tuned version of Helsinki-NLP/opus-mt-en-mul for translation from English to [Your Target Language].
Model description
[Provide a brief description of your model, what it does, and any specific features or improvements]
Intended uses & limitations
[Describe what the model is intended for and any limitations it may have]
Training data
[Describe the data you used to fine-tune the model]
Training procedure
[Briefly describe your training procedure, including any hyperparameters]
Evaluation results
[Provide any evaluation metrics or results]
How to use
Here's how you can use this model for translation:
from transformers import MarianMTModel, MarianTokenizer
model_name = "your-huggingface-username/your-model-name"
model = MarianMTModel.from_pretrained(model_name)
tokenizer = MarianTokenizer.from_pretrained(model_name)
input_text = "Hello, how are you?"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
translated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translated_text)
Limitations and bias
[Discuss any known limitations or biases in your model]
Training
The model was trained using the following command:
[Include a brief code snippet or description of how the model was trained]
Cite
[If applicable, provide citation information]
[Citation in BibTeX format]
- Downloads last month
- 80