Text Generation
MLX
Safetensors
qwen3_5
transliteration
ime
input-method
pinyin
romaji
hinglish
arabizi
cyrillic
greeklish
vietnamese
qwen3.5
v2.6
conversational
6-bit
Instructions to use UnimeType/Transliteration-2.0-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use UnimeType/Transliteration-2.0-4B with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("UnimeType/Transliteration-2.0-4B") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use UnimeType/Transliteration-2.0-4B with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "UnimeType/Transliteration-2.0-4B"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "UnimeType/Transliteration-2.0-4B" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use UnimeType/Transliteration-2.0-4B with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "UnimeType/Transliteration-2.0-4B"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "UnimeType/Transliteration-2.0-4B" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "UnimeType/Transliteration-2.0-4B", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use UnimeType/Transliteration-2.0-4B with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "UnimeType/Transliteration-2.0-4B"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default UnimeType/Transliteration-2.0-4B
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use UnimeType/Transliteration-2.0-4B with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "UnimeType/Transliteration-2.0-4B"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "UnimeType/Transliteration-2.0-4B" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download PROVENANCE.json from UnimeType/Transliteration-2.0-4B: direct link, hf CLI and curl.
- Browser
- Download file 3.25 kB
-
https://huggingface.co/UnimeType/Transliteration-2.0-4B/resolve/main/PROVENANCE.json
- Command line
-
hf download hf://UnimeType/Transliteration-2.0-4B/PROVENANCE.json
-
curl -L -o PROVENANCE.json https://huggingface.co/UnimeType/Transliteration-2.0-4B/resolve/main/PROVENANCE.json
3.25 kB
| { | |
| "repository": "UnimeType/Transliteration-2.0-4B", | |
| "version": "2.6", | |
| "model_version": "2.6 (dataset_v5.1 12-language upgrade)", | |
| "release_tag": "v2.6", | |
| "protocol_version": "unimetype-convert-short-v3", | |
| "format": "MLX 6-bit affine, group size 64", | |
| "base_model": "Qwen/Qwen3.5-4B", | |
| "base_snapshot_revision": "851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a", | |
| "base_source_sha256": { | |
| "model.safetensors-00001-of-00002.safetensors": "26a93f066e1916adb13453dae5a0c707c0fbc71299ed98779571a907b8e74c61", | |
| "model.safetensors-00002-of-00002.safetensors": "cb544bd9bfae93dc59b0f22b292f5933573854a7f9b97835c67060d7d910e188" | |
| }, | |
| "lora_adapter_sha256": "38ec81cc9bd97c708ea56478e660ec501ef1b61cab2e358c7dd074a9d1681802", | |
| "lora_hyperparameters": { | |
| "r": 32, | |
| "lora_alpha": 80.0, | |
| "scale": 2.5, | |
| "num_layers": 32, | |
| "fused_linear_modules": 248 | |
| }, | |
| "training_method": "LoRA SFT + Zero-Overlap Contrastive Preference Alignment (r=32, alpha=80, all 32 layers) on native unquantized BF16 Qwen/Qwen3.5-4B across 12 languages / 13 modes", | |
| "native_unquantized_base_precision": true, | |
| "training_dataset_public": false, | |
| "source_safetensors_repo": "UnimeType/Transliteration-2.0-4B-Safetensors", | |
| "standard_weight_sha256": { | |
| "model-00001-of-00002.safetensors": "590825716625da47f66036ecfb0435f314ddb4a68f35d3c64186e17e04cf8350", | |
| "model-00002-of-00002.safetensors": "10ecf94d1eb9ab63621266a798d16b38be1b9ff2701ec03ecd6c29eb39c83cfc" | |
| }, | |
| "published_weight_sha256": { | |
| "model.safetensors": "865e05509d57f004633a9c4c56406a2eb5106cedd6ff4530f7438a8f0d2b3bc7" | |
| }, | |
| "evaluation": { | |
| "protocol": "unimetype-convert-short-v3", | |
| "toolkit_repository": "https://github.com/UnimeType/transliteration", | |
| "dataset_generation": "dataset_v5.1_clean_12lang (0.00% eval overlap)", | |
| "cloud_reference": { | |
| "model": "deepseek/deepseek-v4.1-flash (system prompt ~2,800 tok)", | |
| "v4_shared_708": 0.9082, | |
| "core5_773": 0.903, | |
| "multilingual_12lang_1573": 0.932, | |
| "dogfood_30_exact": 0.5333, | |
| "dogfood_30_tolerant": 0.7667, | |
| "ood_unseen_20_probe_repair": 0.9 | |
| }, | |
| "models": { | |
| "0.8B": { | |
| "best_epoch": 3.0, | |
| "valid_loss": 0.263216, | |
| "v4_shared_708": 0.7232, | |
| "core5_773": 0.7115, | |
| "multilingual_12lang_1573": 0.6999, | |
| "dogfood_30_exact": 0.3667, | |
| "dogfood_30_tolerant": 0.3667, | |
| "ood_unseen_20_probe_repair": 0.45, | |
| "smoke_60_public_eval": 0.4 | |
| }, | |
| "4B": { | |
| "best_epoch": 2.0, | |
| "valid_loss": 0.1105, | |
| "v4_shared_708": 0.8912, | |
| "core5_773": 0.8745, | |
| "multilingual_12lang_1573": 0.8811, | |
| "dogfood_30_exact": 0.5, | |
| "dogfood_30_tolerant": 0.5667, | |
| "ood_unseen_20_probe_repair": 0.75, | |
| "smoke_60_public_eval": 0.75 | |
| }, | |
| "9B": { | |
| "best_epoch": 2.0, | |
| "valid_loss": 0.0799, | |
| "v4_shared_708": 0.9209, | |
| "core5_773": 0.9094, | |
| "multilingual_12lang_1573": 0.9154, | |
| "dogfood_30_exact": 0.7333, | |
| "dogfood_30_tolerant": 0.7667, | |
| "ood_unseen_20_probe_repair": 0.9, | |
| "smoke_60_public_eval": 0.7833 | |
| } | |
| } | |
| }, | |
| "toolkit_repository": "https://github.com/UnimeType/transliteration" | |
| } | |