Downloads · 30 days
0
Harshabhat/Esperanto_text_generation_pretrained_model
Esperanto_text_generation_pretrained_model is a machine learning model from Harshabhat. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
- Model Name: Fine-tuned mBART for Sequence-to-Sequence Translation - Model Architecture: mBART - Checkpoint: checkpoint-3375 - Dataset: Custom tokenized dataset - Fine-tuned on: Hugging Face transformers library - La…
Downloads · 30 days
0
Access
Public
Updated Dec 8, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
.ipynb459 KB · 99%
From the Hugging Face model README
checkpoint-3375transformers libraryPrimary Use Case:
Intended Users:
Limitations:
transformersfrom transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model = AutoModelForSeq2SeqLM.from_pretrained("path_to_finetuned_model")
tokenizer = AutoTokenizer.from_pretrained("path_to_finetuned_model")
input_text = "Your input text here."
inputs = tokenizer(input_text, return_tensors="pt", max_length=512, truncation=True)
# Generate translation
outputs = model.generate(**inputs)
decoded_output = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(decoded_output)
transformers library.This structure provides a comprehensive overview of your fine-tuned model while addressing details for end-users and researchers. Let me know if you want further customization!