How to use from
llama.cpp
# Gated model: Login with a HF token with gated access permission
hf auth login
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf CMSManhattan/JiRackTernaryPrecision-16B:TQ1_0
# Run inference directly in the terminal:
llama cli -hf CMSManhattan/JiRackTernaryPrecision-16B:TQ1_0
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf CMSManhattan/JiRackTernaryPrecision-16B:TQ1_0
# Run inference directly in the terminal:
llama cli -hf CMSManhattan/JiRackTernaryPrecision-16B: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 CMSManhattan/JiRackTernaryPrecision-16B:TQ1_0
# Run inference directly in the terminal:
./build/bin/llama cli -hf CMSManhattan/JiRackTernaryPrecision-16B:TQ1_0
Use Docker
docker model run hf.co/CMSManhattan/JiRackTernaryPrecision-16B:TQ1_0
Quick Links

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 16B (GGUF)

JiRack Ternary Precision 16B is a ternary (1.58-bit) language model by CMSManhattan (Konstantin Grabko) with 15.9B parameters, built on the JiRack architecture for tool calling, agents and robotics software. 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: 4.78 GB instead of 31.8 GB in bf16, runs on a CPU.

Update of 14 November 2026. The model now answers without a tool call far more often when none of the offered tools fits the request: BFCL v3 irrelevance 84.2% (previous version 75.8%), live_irrelevance 76.9% (previous version 67.7%), BFCL v3 non-live 76.5% (75.0%), live 62.7% (60.2%), all 13 subsets together 68.0% (65.9%). Its tool-calling accuracy stays about the same: 115/117 on our tool-calling test in GGUF (previous version 115). The version of 9 November 2026 is kept in previous-2026-11/, the October version in previous-2026-10/.

Files

File Size Notes
JiRackTernaryPrecision-16B-TQ2_0.gguf 4.78 GB recommended; tested against the reference model (below)
JiRackTernaryPrecision-16B-TQ1_0.gguf 4.11 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-11/ the version of 9 November 2026: GGUF files and its test logs
previous-2026-10/ the October version: GGUF files and its test logs

Model

Parameters 15.9B (336 ternary linear layers)
Layers 48
Hidden size / FFN 5,120 / 15,360
Attention heads 40 query, 8 key-value (GQA), head dim 128, bias on q/k/v
Vocabulary 152,064, with <|tool_call_start|> / <|tool_call_end|> and <|tool_result_start|> / <|tool_result_end|>
Context up to 32k 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) 36/38 37/38
Parallel calls 19/19 19/19
Follow-up (answer from a tool result) 20/20 20/20
No tool needed 25/25 25/25
Clarify a missing argument 14/15 14/15
Total 114/117 (97.4%) 115/117 (98.3%)

The GGUF file is served by llama-server through jirack_gguf_proxy.py, with the same prompt format. The previous version had 115/117 in both.

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 385/445 (86.5%) 381/445 (85.6%)
Ask for a missing argument, then call 77/90 75/90
Clarify only 39/43 38/43
Parallel calls 22/24 21/24
Single call 13/14 13/14
Java calls 5/8 6/8
Choose among many tools 20/29 19/29
Several different functions at once 18/32 18/32
No tool fits: answer without a call 56/56 55/56
Similar tools offered, none fits 48/50 48/50
Many tools offered, none fits 62/65 63/65
Calls with a tool name that does not exist 1 of 193 2 of 192

Requests that no offered tool fits (200 held-out cases, internal set)

A separate set written for this update: requests next to tools that look related but cannot do what is asked (and requests that need no tool at all), mixed with similar requests that one of the tools does fit. None of these cases were used in training. Reference model.

Previous version This version
No tool fits: answered without a call 81/93 89/93
No tool fits: called a tool anyway 9 of 93 2 of 93
A tool fits: exact call 79/107 87/107

BFCL v3 (reference model)

Run with evalscope in function-calling mode; 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 79.3% 79.5%
multiple 200 81.0% 79.5%
parallel 200 77.5% 79.0%
parallel_multiple 200 67.0% 67.0%
java 100 59.0% 59.0%
javascript 50 68.0% 68.0%
irrelevance 240 75.8% 84.2%
Total 1,390 75.0% 76.5%
Live (real user requests) N Previous version This version
live_simple 258 64.3% 60.5%
live_multiple 1,053 52.7% 51.5%
live_parallel 16 62.5% 62.5%
live_parallel_multiple 24 54.2% 50.0%
live_relevance 18 77.8% 77.8%
live_irrelevance 882 67.7% 76.9%
Total 2,251 60.2% 62.7%

Quick start (llama.cpp)

Plain chat:

llama-cli -m JiRackTernaryPrecision-16B-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-16B-TQ2_0.gguf --port 8080 -c 32768 --special
python3 jirack_gguf_proxy.py --llama http://127.0.0.1:8080 --port 8001   # 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-16b", 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): 7.9 tokens/s prompt processing (512 tokens), 3.8 tokens/s generation. This CPU lacks AVX2, which the TQ2_0 kernels use for speed.

Intended use

Tool calling, function calling and agent pipelines, robotics software; local, offline and on-premise deployment on CPUs and small devices.

  1. Validate calls before executing them (tool exists, required arguments present).
  2. Offer only the tools that fit the task; fewer, clearly named tools give the best accuracy.
  3. Use a calculator / search tool for arithmetic and facts instead of the model's memory.

Limitations

  • Weakest areas: real user requests with many similar functions (BFCL live_multiple 51.5%) and several different calls in one turn (parallel_multiple 67.0%; 18/32 on our held-out set, where the model usually picks the right functions but fills some argument values wrongly).
  • This update trades a little accuracy on simple real-user calls for fewer unwanted calls: BFCL live_simple 60.5% (previous version 64.3%), 381/445 on our held-out tool-use set (previous version 385).
  • Still calls a tool in some cases where none fits (BFCL irrelevance 84.2%, live_irrelevance 76.9%); give the agent an explicit way to answer without a tool and check calls before executing them.
  • The model can make mistakes, invent facts and produce wrong tool arguments. Check its output before acting on it, especially in automated pipelines.
  • Ternary model: world knowledge is below that of a bf16 model of the same size; not for medical, legal or financial advice.

How the model was made

JiRack Ternary Precision 16B 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, agents and robotics software.

Includes data from Nebius licensed under CC BY 4.0, 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
19
Safetensors
Model size
16B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using CMSManhattan/JiRackTernaryPrecision-16B 1