Downloads · 30 days
11
1% of all-time downloads
AventIQ-AI/Ai-Translate-Model-Eng-German
Ai-Translate-Model-Eng-German is a machine learning model from AventIQ-AI. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A sequence-to-sequence translation model fine-tuned on English–German sentence pairs. This model translates English text into German and is built using the Hugging Face MarianMTModel. It’s suitable for general-purpose…
Downloads · 30 days
11
1% of all-time downloads
All-time downloads
764
Public
Parameters
73.9M
297 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors296 MB · 99%
From the Hugging Face model README
A sequence-to-sequence translation model fine-tuned on English–German sentence pairs. This model translates English text into German and is built using the Hugging Face MarianMTModel. It’s suitable for general-purpose translation, language learning, and formal or semi-formal communication across English and German.
| Attribute | Value |
|---|---|
| Base Model | Helsinki-NLP/opus-mt-en-de |
| Dataset | WMT14 English-German |
| Task Type | Translation |
| Max Token Length | 128 |
| Epochs | 3 |
| Batch Size | 16 |
| Optimizer | AdamW |
| Loss Function | CrossEntropyLoss |
| Framework | PyTorch + Transformers |
| Hardware | CUDA-enabled GPU |
| Metric | Score |
|---|---|
| BLEU Score | 30.42 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
import torch
model_name = "AventIQ-AI/Ai-Translate-Model-Eng-German"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
model.eval()
def translate(text):
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model.to(device)
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True).to(device)
outputs = model.generate(**inputs)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
# Example
print(translate("How are you doing today?"))
finetuned-model/
├── config.json ✅ Model architecture & config
├── pytorch_model.bin ✅ Model weights
├── tokenizer_config.json ✅ Tokenizer settings
├── tokenizer.json ✅ Tokenizer vocabulary (JSON format)
├── source.spm ✅ SentencePiece model for source language
├── target.spm ✅ SentencePiece model for target language
├── special_tokens_map.json ✅ Special tokens mapping
├── generation_config.json ✅ (Optional) Generation defaults
├── README.md ✅ Model card
Contributions are welcome! Feel free to open an issue or pull request to improve the model, training scripts, or documentation.