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-8B:TQ1_0
# Run inference directly in the terminal:
llama cli -hf CMSManhattan/JiRackTernaryPrecision-8B: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-8B:TQ1_0
# Run inference directly in the terminal:
llama cli -hf CMSManhattan/JiRackTernaryPrecision-8B: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-8B:TQ1_0
# Run inference directly in the terminal:
./build/bin/llama cli -hf CMSManhattan/JiRackTernaryPrecision-8B:TQ1_0
Use Docker
docker model run hf.co/CMSManhattan/JiRackTernaryPrecision-8B: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 8B (GGUF)

JiRack Ternary Precision 8B is a ternary (1.58-bit) language model by CMSManhattan (Konstantin Grabko) with 8.08B 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: 2.56 GB instead of 16.2 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, and keeps its tool-calling accuracy: BFCL v3 irrelevance 79.2% (previous version 74.2%), live_irrelevance 77.0% (previous version 68.4%), BFCL v3 non-live 78.8% (76.8%), live 62.5% (59.0%), and 113 of 117 cases of our tool-calling test in GGUF, as before. The version of 9 November 2026 is kept in previous-2026-11/, the October version in previous-2026-10/.

Files

File Size Notes
JiRackTernaryPrecision-8B-TQ2_0.gguf 2.56 GB recommended; tested against the reference model (below)
JiRackTernaryPrecision-8B-TQ1_0.gguf 2.23 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 8.08B (196 ternary linear layers)
Layers 28
Hidden size / FFN 3,584 / 20,480
Attention heads 28 query, 4 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) 38/38 38/38
Parallel calls 18/19 18/19
Follow-up (answer from a tool result) 18/20 18/20
No tool needed 25/25 25/25
Clarify a missing argument 14/15 14/15
Total 113/117 (96.6%) 113/117 (96.6%)

The GGUF file is served by llama-server through jirack_gguf_proxy.py, with the same prompt format. No call in either run uses a tool name that does not exist in the test.

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 376/445 (84.5%) 380/445 (85.4%)
No tool fits: answer without a call 55/56 56/56
A similar but unsuitable tool is offered 46/50 49/50
Single call 9/14 11/14
JavaScript calls 25/34 27/34
Ask for a missing argument, then call 76/90 76/90
Clarify only 39/43 39/43
Parallel calls 21/24 19/24
Choose among many tools 20/29 19/29
Several different functions at once 16/32 15/32
Calls with a tool name that does not exist 7 of 196 6 of 193

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 83.3% 85.5%
multiple 200 84.5% 83.5%
parallel 200 81.5% 83.0%
parallel_multiple 200 71.0% 74.5%
java 100 53.0% 52.0%
javascript 50 60.0% 60.0%
irrelevance 240 74.2% 79.2%
Total 1,390 76.8% 78.8%
Live (real user requests) N Previous version This version
live_simple 258 57.4% 54.3%
live_multiple 1,053 51.8% 53.1%
live_parallel 16 50.0% 43.8%
live_parallel_multiple 24 41.7% 37.5%
live_relevance 18 72.2% 72.2%
live_irrelevance 882 68.4% 77.0%
Total 2,251 59.0% 62.5%

Quick start (llama.cpp)

Plain chat:

llama-cli -m JiRackTernaryPrecision-8B-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-8B-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-8b", 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): 16.4 tokens/s prompt processing (512 tokens), 8.2 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 53.1%), several different calls in one turn (live_parallel_multiple 37.5%; 15/32 on our held-out set). The live_simple, live_parallel and live_parallel_multiple scores are a little lower than in the previous version (see the tables above).
  • Still calls a tool in about one case in five when none fits (BFCL irrelevance 79.2%, live_irrelevance 77.0%); 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 8B 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 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
30
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for CMSManhattan/JiRackTernaryPrecision-8B

Quantized
(3)
this model

Space using CMSManhattan/JiRackTernaryPrecision-8B 1