Downloads · 30 days
0
AventIQ-AI/Chinese-To-English
Chinese-To-English 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 Chinese-To-English translation model fine-tuned on the ['wlhb/Transaltion-Chinese-2-English'] dataset and optimized using dynamic quantization for efficient CPU inference.
Downloads · 30 days
0
Access
Public
Updated Jun 10, 2025
Parameters
77.5M
157 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors155 MB · 98%
From the Hugging Face model README
This repository contains a quantized Chinese-To-English translation model fine-tuned on the ['wlhb/Transaltion-Chinese-2-English'] dataset and optimized using dynamic quantization for efficient CPU inference.
torch.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_zh_to_en", model=model, tokenizer=tokenizer, device=-1)
text = "你好吗"
print("Chinese:", translator(text)[0]['translation_text'])
Loaded dataset: wlhb/Transaltion-Chinese-2-English
Mapped translation data: {"zh": ..., "en": ...} 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