Llama 3 8B weights with an expanded FFN, so the parameter count is about 10B, then quantized to ternary
{-1, 0, 1}
. Inference is meant for Microsoft BitNet.cpp kernels (AVX2 / AVX-512), not for stock llama.cpp.
Use this checkpoint as a small, low-RAM chat model. Domain adaptation (your data, your facts) is a separate paid job — write to
[email protected]
.
Service option
Welcome to retrain on your domain with QAT/SFT and pack to Microsoft Bitnet kernels on llama fork on bitnet.ccp
So BitNet.cpp much faster than llama.cpp
What runs where
File
Runtime
Notes
*.gguf
(ternary)
BitNet.cpp
Primary artifact. Stock llama.cpp will reject it.
Docker image
BitNet.cpp inside the container
linux/amd64. Pull and run; do not rebuild the kernels yourself.
Q8 GGUF, if present
BitNet.cpp or llama.cpp
Compatibility quant. Larger, not the ternary product.
FP16 source weights are not published. They are the seed for later quants.
# Llama3 Ternary 10b (TQ2_0) — llama-server + web UI / OpenAI API proxy## Put this file in /mnt/nfs_share/Llama3Ternary10b/Docker next to the Dockerfile,# proxy.py, start.sh, web/ and Llama3Ternary10b-TQ2_0.gguf, then:# docker rm -f jirack10b # once: remove the container started by run.sh# docker compose up -d --build # build + start# docker compose logs -f # wait for "server adds 1 BOS -> ... total 2"# docker compose down # stop and remove# Settings can be overridden in a .env file next to this one (see .env.example).
services:
Llama3Ternary10b:
image: cmsmanhattan/llama3-ternary-10b-tq2:latest
container_name: Llama3Ternary10b
restart: unless-stopped
ports:
- "${HOST_PORT:-7869}:7869"# web UI + /v1/chat/completions
environment:
MODEL_NAME: ${MODEL_NAME:-jirack-10b-ternary}
THREADS: ${THREADS:-24}
THREADS_BATCH: ${THREADS_BATCH:-24}
CTX_SIZE: ${CTX_SIZE:-4096}
PARALLEL: ${PARALLEL:-1}# generation: greedy + no repetition penalty = verified best for this model
TEMP: ${TEMP:-0}
TOP_P: ${TOP_P:-0.9}
REPEAT_PENALTY: ${REPEAT_PENALTY:-1.0}
REPEAT_LAST_N: ${REPEAT_LAST_N:-64}
MAX_TOKENS: ${MAX_TOKENS:-512}
FORCE_SAMPLING: ${FORCE_SAMPLING:-1}# 1 = ignore temperature etc. sent by clients
HISTORY_TURNS: ${HISTORY_TURNS:-0}# 0 = single-turn, like training
SYSTEM_PROMPT_FILE: ${SYSTEM_PROMPT_FILE:-}# e.g. /app/system_prompt.txt# Optional: edit the system prompt without rebuilding the image#volumes:# - ./system_prompt.txt:/app/system_prompt.txt:ro
healthcheck:
test: ["CMD-SHELL", "curl -sf http://127.0.0.1:7869/health || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 120s
logging:
driver: json-file
options:
max-size: "20m"
max-file: "3"
Pin the BitNet.cpp commit you tested. A newer upstream build can break a custom GGUF.
Specs
Base
meta-llama/Meta-Llama-3-8B
Params
~10B after widened FFN
Quant
1.58-bit ternary
Runtime
BitNet.cpp
Context
same as the Llama 3 8B checkpoint used as base, unless the GGUF header says otherwise
Hidden size, intermediate size, and layer count belong in
config.json
next to the weights. Do not duplicate stale numbers from the 1.5B card here.
Training
Post-quantization QAT / SFT on instruction data (OpenAssistant, then a small SlimOrca slice, stopped early when factual recall slipped). A later mix of SlimOrca with a fact-QA set (GammaCorpus Fact QA and/or Wikipedia QA) is the planned fix for capital / geography drift. This card should be updated with the checkpoint hash after that mix.
Do not treat chat samples below as a benchmark. Replace them with outputs from the checkpoint you actually upload.
License
Weights and any Llama-derived files:
Llama 3 Community License
.
Name of this model starts with
Llama
.
“Built with Llama” is shown on this page.
Commercial use is allowed under that license. The 700M monthly-active-user clause does not apply to a normal product.
You may not relicense the weights under a proprietary CMS Manhattan license.
CMS Manhattan JiRack License, if present, covers only non-Llama materials in this repo (Docker packaging, UI, support). It does not override Meta’s license on the weights.
Ternary QAT on your dataset, replay mix to limit catastrophic forgetting, BitNet.cpp
I2_S
/ AVX2 / AVX-512 packing, and domain SFT are paid. Weights in this repo are the public checkpoint.
Training scripts, lambda-quant recipes, and the FFN-expansion procedure are not part of the public Llama release. The Qwen ternary pipeline published separately is Apache-2.0 and is not a license to ignore the Llama terms on these weights.
Runs of CMSManhattan Llama3Ternary_10b on huggingface.co
1.6K
Total runs
172
24-hour runs
564
3-day runs
1.5K
7-day runs
1.5K
30-day runs
More Information About Llama3Ternary_10b huggingface.co Model
Llama3Ternary_10b huggingface.co is an AI model on huggingface.co that provides Llama3Ternary_10b's model effect (), which can be used instantly with this CMSManhattan Llama3Ternary_10b model. huggingface.co supports a free trial of the Llama3Ternary_10b model, and also provides paid use of the Llama3Ternary_10b. Support call Llama3Ternary_10b model through api, including Node.js, Python, http.
Llama3Ternary_10b huggingface.co is an online trial and call api platform, which integrates Llama3Ternary_10b's modeling effects, including api services, and provides a free online trial of Llama3Ternary_10b, you can try Llama3Ternary_10b online for free by clicking the link below.
CMSManhattan Llama3Ternary_10b online free url in huggingface.co:
Llama3Ternary_10b is an open source model from GitHub that offers a free installation service, and any user can find Llama3Ternary_10b on GitHub to install. At the same time, huggingface.co provides the effect of Llama3Ternary_10b install, users can directly use Llama3Ternary_10b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.