Request access to the model weights

Requests are reviewed manually by CMSManhattan. We reply within a few business days.

The weights are shared only after manual review. Please tell us who you are and how you plan to use the model. Requests without a company or project description may be declined.

Log in or Sign Up to review the conditions and access this model content.

JiRack Ternary Precision 2B (GGUF)

JiRack Ternary Precision 2B is a ternary (1.58-bit) language model by CMSManhattan (Konstantin Grabko) with 2.01B parameters, built on the JiRack architecture for tool calling and agents at a very low inference cost. Every linear layer of the transformer uses ternary weights {-1, 0, +1} with a per-tensor scale and 8-bit activations (BitNet b1.58 style). This repository has the model as GGUF for llama.cpp: 0.73 GB instead of 4.0 GB in bf16, runs on a CPU.

November 2026 update. The model declines requests that no offered tool fits and asks for missing arguments much more reliably: 55.1% exact answers on our held-out tool-use set (previous version 36.4%). The previous version is kept in previous-2026-10/.

Quick start

HF Spaces demo chat: https://huggingface.co/spaces/CMSManhattan/JiRack-2B-Chat

Files

File Size Notes
JiRackTernaryPrecision-2B-TQ2_0.gguf 0.73 GB recommended; tested against the reference model (below)
JiRackTernaryPrecision-2B-TQ1_0.gguf 0.65 GB same ternary weights, denser packing; not separately evaluated
jirack_gguf_proxy.py + jirack_openai_server.py OpenAI-compatible endpoint with tool calls on top of llama-server
chat_template.jinja the exact prompt format of the model (also embedded in the GGUF)
eval/ tool-calling test logs (GGUF and reference model), BFCL summary
previous-2026-10/ the previous version: GGUF files and its test log

Model

Parameters 2.01B (196 ternary linear layers)
Layers 28
Hidden size / FFN 1,536 / 10,752
Attention heads 12 query, 2 key-value (GQA), head dim 128, bias on q/k/v
Vocabulary 151,936, with <|tool_call_start|> / <|tool_call_end|> and <|tool_result_start|> / <|tool_result_end|>
Context up to 16k tokens
Weights ternary {-1, 0, +1}, per-tensor scale
Activations 8-bit, per token

The GGUF files store every ternary weight exactly as the model computes it (clamp(round(W / mean|W|), -1, 1) * mean|W|), packed as TQ2_0 / TQ1_0.

Results

All results with greedy decoding (temperature 0).

Internal tool-calling test (117 cases)

The cases are written by us and are not in the training data.

Category Reference (PyTorch, ternary) GGUF TQ2_0
Single call (one tool, all arguments given) 33/38 34/38
Parallel calls 18/19 18/19
Follow-up (answer from a tool result) 19/20 19/20
No tool needed 25/25 25/25
Clarify a missing argument 14/15 14/15
Total 109/117 (93.2%) 110/117 (94.0%)

The GGUF file is served by llama-server through jirack_gguf_proxy.py, with the same prompt format. A difference of one case in either direction is expected between the two backends, which do the arithmetic differently.

Held-out tool-use turns (445 turns, internal set)

Multi-turn conversations with tool definitions that the model never saw in training. An answer counts only if it makes the reference call (same tool name and arguments), or asks a question / answers without a call where the reference does. Reference model.

Previous version This version
Exact answers 162/445 (36.4%) 245/445 (55.1%)
Clarify only (a required argument is missing) 22/43 36/43
Ask for a missing argument, then call 27/90 46/90
Similar tools offered, none fits 15/50 41/50
Many tools offered, none fits 33/65 44/65
No tool needed 47/56 52/56
Single call 5/14 4/14
Parallel calls 4/24 6/24
Choose among many tools 3/29 4/29
Several different functions at once 2/32 3/32
Turns with a tool name that was not offered 81 76

BFCL v3 (reference model)

Both versions run with evalscope in function-calling mode in the same run; totals are weighted by the number of cases, as evalscope reports them, so they are not comparable with the official leaderboard averages; multi-turn categories were not run. Raw tables are in eval/bfcl_summary.txt.

Non-live N Previous version This version
simple 400 58.5% 56.3%
multiple 200 63.0% 64.5%
parallel 200 48.5% 47.0%
parallel_multiple 200 29.0% 26.0%
java 100 12.0% 14.0%
javascript 50 22.0% 28.0%
irrelevance 240 55.4% 66.7%
Total 1,390 48.3% 49.5%
Live (real user requests) N Previous version This version
live_simple 258 29.1% 26.4%
live_multiple 1,053 10.4% 10.2%
live_parallel 16 50.0% 43.8%
live_parallel_multiple 24 16.7% 20.8%
live_relevance 18 100.0% 72.2%
live_irrelevance 882 33.8% 51.6%
Total 2,251 22.8% 29.1%

Quick start (llama.cpp)

Plain chat:

llama-cli -m JiRackTernaryPrecision-2B-TQ2_0.gguf -c 8192 -cnv

Tool calling through an OpenAI-compatible API. llama-server returns the model's tool calls as text (<|tool_call_start|> {"name": ..., "arguments": ...} <|tool_call_end|>); the proxy builds the exact prompt and turns the calls into standard OpenAI tool_calls, so any OpenAI client or agent framework can use the model:

llama-server -m JiRackTernaryPrecision-2B-TQ2_0.gguf --port 8080 -c 16384 --special
python3 jirack_gguf_proxy.py --llama http://127.0.0.1:8080 --port 8001 --name jirack-2b   # needs jirack_openai_server.py next to it
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8001/v1", api_key="none")
tools = [{"type": "function", "function": {
    "name": "get_weather", "description": "Current weather for a city",
    "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}}]
r = client.chat.completions.create(model="jirack-2b", tools=tools,
                                   messages=[{"role": "user", "content": "Weather in Austin?"}])
print(r.choices[0].message.tool_calls)

Return tool results as tool messages; several calls in one turn (parallel calls) are supported. Use greedy decoding (temperature 0) for tool calls.

Speed (llama-bench, CPU only, model loaded into memory with --mmap 0, 2x Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz, 48 threads): 71.5 tokens/s prompt processing (512 tokens), 30.0 tokens/s generation. This CPU lacks AVX2, which the TQ2_0 kernels use for speed.

Intended use

Tool calling and agent pipelines where cost and memory matter most: CPUs, small devices, many parallel agents.

  1. Validate calls before executing them (tool exists, required arguments present, values taken from the conversation); if a check fails, ask the user instead of letting the model answer a live-data question from memory.
  2. Offer only the tools that fit the task; fewer, clearly named tools give the best accuracy.
  3. Use a calculator tool for arithmetic.

Limitations

  • Copies unusual function names imprecisely (76 of 445 held-out turns use a tool name that was not offered); restricting the function name to the offered tools while decoding (a grammar in llama.cpp) helps.
  • Requests that need several different tools at once (3/32 on our held-out set), choosing among many tools (4/29) and Java / JavaScript call syntax are the weakest categories.
  • Without tools it may state live data (time, weather) from memory; do not rely on that.
  • Small model: limited world knowledge. Not for medical, legal or financial advice.

How the model was made

JiRack Ternary Precision 2B is a modified version of a DeepSeek model by DeepSeek (MIT License), which is itself derived from a Qwen model by the Qwen team, Alibaba Cloud, licensed under Apache 2.0 (license text). CMSManhattan modified the architecture and the weights, trained every linear layer to ternary weights with 8-bit activations (quantization-aware training) and fine-tuned the model for tool calling and agents.

Includes data from the Allen Institute for AI licensed under ODC-BY 1.0 and text by Wikipedia contributors licensed under CC BY-SA 4.0, together with data created by CMSManhattan.

ROBOS HUMANOID Project

📧 Contact

For joint venture opportunities, hardware integration, or licensing inquiries:

License

© 2025-2026 Konstantin Vladimirovich Grabko, all rights reserved.

Downloads last month
43
Safetensors
Model size
2B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using CMSManhattan/JiRackTernaryPrecision-2B 1