Instructions to use baicai1145/Index-Translate-omni-9B-1.25bit-preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use baicai1145/Index-Translate-omni-9B-1.25bit-preview with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="baicai1145/Index-Translate-omni-9B-1.25bit-preview")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("baicai1145/Index-Translate-omni-9B-1.25bit-preview", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use baicai1145/Index-Translate-omni-9B-1.25bit-preview with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0 # Run inference directly in the terminal: llama cli -hf baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0 # Run inference directly in the terminal: llama cli -hf baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0
Use Docker
docker model run hf.co/baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use baicai1145/Index-Translate-omni-9B-1.25bit-preview with Ollama:
ollama run hf.co/baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0
- Unsloth Desktop
- Pi
How to use baicai1145/Index-Translate-omni-9B-1.25bit-preview with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use baicai1145/Index-Translate-omni-9B-1.25bit-preview with Docker Model Runner:
docker model run hf.co/baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0
- Lemonade
How to use baicai1145/Index-Translate-omni-9B-1.25bit-preview with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0
Run and chat with the model
lemonade run user.Index-Translate-omni-9B-1.25bit-preview-TQ1_0
List all available models
lemonade list
- Hermes Agent
How to use baicai1145/Index-Translate-omni-9B-1.25bit-preview with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0
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:9931/v1 hermes config set model.default baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use baicai1145/Index-Translate-omni-9B-1.25bit-preview with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0
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:9931/v1 \ --custom-model-id "baicai1145/Index-Translate-omni-9B-1.25bit-preview:TQ1_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Index-Translate-omni-9B-1.25bit-preview
1.25-bit ternary quantized preview release of the Index-Translate-omni-9B translation model, produced with the Sherry (ACL 2026) hardware-efficient ternary quantization framework (3:4 fine-grained sparsity, 4 weights per 5 bits, AbsMean group scaling, group size 256).
Training recipe (QAT + distillation)
- Two-phase: 2,000-step QAT adaptation from base, then 10,000-step QAD distillation (at checkpoint step 8,500 at preview time) with annealing residual synapse (Arenas) ε: 0→1→cosine→0
- Loss: CAKLD + CE (teacher-confidence weighted forward/backward KL)
- 200 quantized linear layers in mlp / self_attn / linear_attn; embeddings, lm_head, norms and small projections kept in BF16
- BF16 masters, AdamW8bit
Files
model.safetensors— dense BF16 fake-quantized weights (deployable form, same format as Tencent Hy-MT 1.25bit releases)Index-Translate-omni-9B-1.25bit-STQ1_0.gguf— packed STQ1_0 1.25-bit GGUF (llama.cpp PR #22836 kernel)config.json,tokenizer.json,tokenizer_config.json
Notes
- Preview checkpoint: training step 8,500 (mid-anneal, ε≈0.05 pure-quantized inference form)
- GGUF runs with the STQ1_0 kernel from the llama.cpp-stq1 fork (Metal/MetalFX builds available)
- Downloads last month
- 330
1-bit