Run this model inference on single tenant GPU with unmatched speed and reliability at scale.
Run this model inference with full control and performance in your environment.
Get help setting up a custom Dedicated Endpoints.
Talk with our engineer to get a quote for reserved GPU instances with discounts.
README
License: apache-2.0Demo
Try it live: ZygAI Translate Lithuanian DEMO
Run Locally
bash
# Clone repositorygit clone https://huggingface.co/spaces/ZygAI/ZygAI-Translate-Lithuanian-DEMOcd ZygAI-Translate-Lithuanian-DEMO# Create and activate Python environmentpython -m venv envsource env/bin/activate# Install dependencies and runpip install -r requirements.txtpython app.py
Quick Start
python
from transformers import AutoTokenizer, AutoModelForCausalLMfrom peft import PeftModelimport torchbase_model = "openbmb/MiniCPM5-1B"lora_model = "ZygAI/ZygAI-OSS-Translate-Lithuanian"tokenizer = AutoTokenizer.from_pretrained(base_model)model = AutoModelForCausalLM.from_pretrained(base_model, dtype=torch.float16)model = PeftModel.from_pretrained(model, lora_model)model.eval()def translate(text):prompt = f"### Instruction:\n{text}\n### Response:\n"inputs = tokenizer(prompt, return_tensors="pt").to(model.device)with torch.no_grad():outputs = model.generate(**inputs, max_new_tokens=128)result = tokenizer.decode(outputs[0], skip_special_tokens=True)return result.split("### Response:\n")[-1]print(translate("Hello, how are you?"))# → Labas pasaulisprint(translate("How are you?"))# → O kaip jūs?
Training Details
| Parameter | Value |
|---|---|
| Base model | openbmb/MiniCPM5-1B |
| Dataset | Helsinki-NLP/opus-100 (en-lt) |
| Training samples | 50,000 |
| Method | SFT + LoRA (PEFT) |
| LoRA rank | 16 |
| LoRA alpha | 32 |
| Epochs | 3 |
| Batch size | 4 |
| Max sequence length | 256 |
| Hardware | NVIDIA A100 SXM |
| Framework | TRL + Transformers |
Limitations
Translation quality is functional but not perfect — this is an open-source community model, not a production translation service. Future versions will include larger datasets, better evaluation metrics, and improved inference quality.
About ZygAI
ZygAI is a Lithuanian AI platform developed by ZygMediaGroup. This model is part of ZygAI's open source effort to develop Lithuanian language AI tools accessible to everyone.
License
Apache 2.0
Citation
bibtex
@software{vonwerra2020trl,title = {{TRL: Transformers Reinforcement Learning}},author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},license = {Apache-2.0},url = {https://github.com/huggingface/trl},year = {2020}}
Model provider
ZygAI
Model tree
Base
openbmb/MiniCPM5-1B
Adapter
this model
Modalities
Input
Text
Output
Text
Pricing
Dedicated Endpoints
View detailsSupported Functionality
Model APIs
Dedicated Endpoints
Container
More information