Downloads · 30 days
10
7% of all-time downloads
AventIQ-AI/Text-Translation-Eng-To-Hindi
Text-Translation-Eng-To-Hindi 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.
This repository contains a quantized English-to-Hindi translation model fine-tuned on the Aarif1430/english-to-hindi dataset and optimized using dynamic quantization for efficient CPU inference.
Downloads · 30 days
10
7% of all-time downloads
All-time downloads
143
Public
Parameters
75.9M
306 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors304 MB · 99%
From the Hugging Face model README
This repository contains a quantized English-to-Hindi translation model fine-tuned on the Aarif1430/english-to-hindi dataset and optimized using dynamic quantization for efficient CPU inference.
Helsinki-NLP/opus-mt-en-hitorch.quantization.quantize_dynamic)quantized_model/ ├── config.json ├── pytorch_model.bin ├── tokenizer_config.json ├── tokenizer.json ├── vocab.json / merges.txt
import torch
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("./quantized_model")
# Load quantized model
model = AutoModelForSeq2SeqLM.from_pretrained("./quantized_model")
model.eval()
# Run translation
translator = pipeline("translation_en_to_hi", model=model, tokenizer=tokenizer, device=-1)
text = "How are you?"
print("Hindi:", translator(text)[0]['translation_text'])
Loaded dataset: Aarif1430/english-to-hindi
Mapped translation data: {"en": ..., "hi": ...} before training
Training: 3 epochs using GPU
Disabled: wandb logging
Skipped: Evaluation phase
Saved: Trained + Quantized model and tokenizer
Quantization: torch.quantization.Quantize_dynamic is used for efficient CPU inference