Dedicated Endpoints

Run this model inference on single tenant GPU with unmatched speed and reliability at scale.

Learn more
Container

Run this model inference with full control and performance in your environment.

Learn more

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.0

Demo

Try it live: ZygAI Translate Lithuanian DEMO

Run Locally

bash

# Clone repository
git clone https://huggingface.co/spaces/ZygAI/ZygAI-Translate-Lithuanian-DEMO
cd ZygAI-Translate-Lithuanian-DEMO
# Create and activate Python environment
python -m venv env
source env/bin/activate
# Install dependencies and run
pip install -r requirements.txt
python app.py

Quick Start

python

from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
base_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 pasaulis
print(translate("How are you?"))
# → O kaip jūs?

Training Details

ParameterValue
Base modelopenbmb/MiniCPM5-1B
DatasetHelsinki-NLP/opus-100 (en-lt)
Training samples50,000
MethodSFT + LoRA (PEFT)
LoRA rank16
LoRA alpha32
Epochs3
Batch size4
Max sequence length256
HardwareNVIDIA A100 SXM
FrameworkTRL + 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 details

Supported Functionality

Model APIs

Dedicated Endpoints

Container

More information

Explore FriendliAI today