Skip to page content
SAVRN
Search Plan a project

Open-weight model · Text generation

Ternary-Bonsai-2-27B-onwx

by Ryu Gyo ryugyosoft/Ternary-Bonsai-2-27B-onwx

Ternary-Bonsai-2-27B-onwx is an open-weight model for text generation from Ryu Gyo, released under Apache License 2.0. It has 262,144-token context. Its published files total 7.6 GB. It draws 828 downloads a month.

Prism ML の Ternary-Bonsai-2-27B(Qwen3.8-27B を三値の重みで学習し直したモデル)を、onwx 用に変換したものです。onwx は LLM を AMD Ryzen AI の NPU(XDNA2)だけで 動かすアプリで、このリポジトリにはモデルと、このモデル専用の NPU プログラムが入っています(アプリは別にインストールします)。 重みは三値(−1・0・+1)を 2 ビットのまま NPU に載せ、行列計算・DeltaNet・アテンション・LM ヘッドまで 1…

Parameters—
Context262,144
Weights386.6 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads828

Model Card

By Ryu Gyo, published under apache-2.0, revision a1d1b26da78f.

Prism ML の Ternary-Bonsai-2-27B(Qwen3.8-27B を三値の重みで学習し直したモデル)を、onwx 用に変換したものです。onwx は LLM を AMD Ryzen AI の NPU(XDNA2)だけで 動かすアプリで、このリポジトリにはモデルと、このモデル専用の NPU プログラムが入っています(アプリは別にインストールします)。 重みは三値(−1・0・+1)を 2 ビットのまま NPU に載せ、行列計算・DeltaNet・アテンション・LM ヘッドまで 1 トークンの計算をすべて NPU の 32 個の AI エンジンで行います。NPU 向けのプログラムは AI エンジンごとに手で書いてビルド済みなので、PC の上でコンパイルを待つことはありません。 (onwx 0.4.0、Ryzen AI Max+ 395(Windows)で NPU の電力モードを performance にして測定。Ryzen AI 300 シリーズ(HX 370 など)も NPU は同じ 32 個の AI エンジンで、同じ方式で動きます。標準の電力モードでは NPU のクロックが下がって 2 割ほど遅くなります。電力モードは管理者の PowerShell で C:\Windows\System32\AMD\xrt-smi.exe configure --pmode performance。Windows の Copilot+ の AI 機能が NPU を使っていると遅くなることがあります) 1. onwx(アプリ)を入れます。 Windows…

Read Ryu Gyo's full model card

Ternary Bonsai 2 27B for onwx — 2 ビットの 27B を AMD Ryzen AI の NPU だけで

日本語 | English

Prism ML の Ternary-Bonsai-2-27B(Qwen3.8-27B を三値の重みで学習し直したモデル)を、onwx 用に変換したものです。onwx は LLM を AMD Ryzen AI の NPU(XDNA2)だけで 動かすアプリで、このリポジトリにはモデルと、このモデル専用の NPU プログラムが入っています(アプリは別にインストールします)。

重みは三値(−1・0・+1)を 2 ビットのまま NPU に載せ、行列計算・DeltaNet・アテンション・LM ヘッドまで 1 トークンの計算をすべて NPU の 32 個の AI エンジンで行います。NPU 向けのプログラムは AI エンジンごとに手で書いてビルド済みなので、PC の上でコンパイルを待つことはありません。

Ryzen AI Max+ 395(Windows)
プロンプトの読み込み 1,000 トークンで約 9.3 秒、4,000 トークンで約 28 秒(約 110〜150 tok/s、0.3.0 の 3〜4.5 倍)
文章の生成 約 6.9 tok/s
ダウンロード 7.6 GB
使用メモリ 約 8.8 GB + 文脈 1k トークンあたり約 34 MB
ロード 数秒〜十数秒(コンパイルなし)

(onwx 0.4.0、Ryzen AI Max+ 395(Windows)で NPU の電力モードを performance にして測定。Ryzen AI 300 シリーズ(HX 370 など)も NPU は同じ 32 個の AI エンジンで、同じ方式で動きます。標準の電力モードでは NPU のクロックが下がって 2 割ほど遅くなります。電力モードは管理者の PowerShell で C:\Windows\System32\AMD\xrt-smi.exe configure --pmode performance。Windows の Copilot+ の AI 機能が NPU を使っていると遅くなることがあります)

使い方

  1. onwx(アプリ)を入れます。 Windows はスタートメニューで「PowerShell」を開き、次の 1 行を貼って Enter(Ubuntu は onwx の README の curl ... | bash)。

powershell irm https://huggingface.co/ryugyosoft/onwx/resolve/main/install.ps1 | iex

  1. タスクトレイの赤い onwx アイコンから開く onwx ウィンドウ の「モデル」タブで Ternary Bonsai 2 27B を選び、「ダウンロード」を押します(7.6 GB)。
  2. 「サーバー」タブで「ロード」を押します。
  3. 「チャット」ですぐ試せます。他のアプリからは OpenAI 互換 API として使えます(base URL は http://127.0.0.1:8100/v1)。
from openai import OpenAI
c = OpenAI(base_url="http://127.0.0.1:8100/v1", api_key="none")
r = c.chat.completions.create(model="Ternary-Bonsai-2-27B-onwx", messages=[{"role": "user", "content": "こんにちは"}])
print(r.choices[0].message.content)

動く PC

  • XDNA2 NPU の AMD Ryzen AI:Ryzen AI 300 シリーズ(Strix Point、例:Ryzen AI 9 HX 370)、Ryzen AI Max シリーズ(Strix Halo、例:Ryzen AI Max+ 395)
  • Windows 11 と AMD の NPU ドライバー(32.0.203 以降で確認)。Ubuntu は試験的(amdxdna ドライバーと XRT が必要)
  • メモリ 16 GB 以上

しくみ

  • 重み:三値の符号を 2 ビット、128 個ごとのスケールを bf16 で持つ元の MLX 2 ビット形式のまま、NPU の各 AI エンジンが読む順に並べ替えています(1 重みあたり約 2.1 ビット)。
  • 生成(1 トークンずつ):16 個の AI エンジンが重みを読みながら行列×ベクトルを計算し、8 個が DeltaNet、4 個がアテンションを受け持ちます。
  • プロンプトの読み込み:256 トークン以上は 1,024 / 2,048 トークンずつまとめ、NPU の 32 個の AI エンジン全部で 1 層ずつ処理します。行列計算は行列ユニットのブロック浮動小数点(bfp16)で、三値の重みはその層を計算する直前に NPU 上で bfp16 に展開します(展開した重みは持ち続けないので、使用メモリの増加は約 0.5 GB)。DeltaNet はチャンク単位の並列形式、アテンションは int8 のキャッシュを読むフラッシュアテンションで、途中の値は層の間も NPU のメモリに置いたままです。短いプロンプトと端数は従来どおり 32 トークンずつの int8 の経路で読みます。1 トークンずつ読んだ場合との差は、出力の分布の KL で 0.002 程度です。
  • キャッシュ:アテンションのキーと値は、ヘッドごとにアダマール行列で回転してから int8 で持ちます(0.3.0 の bf16 の半分のメモリ。出力の分布への影響は KL 0.0003 程度)。
  • 文脈:最大 262144 トークン(モデルの上限)。長いほど遅くなります。
  • 思考モードとツール呼び出しに対応しています。画像は読めません。

ファイル

ファイル 中身
blobs/L*.wgt 各層の重み(NPU が読む並び)
blobs/L*.st / L*.pf DeltaNet 層の状態の初期値・畳み込みの重み/プロンプト用の密行列
blobs/head.wgt、embed.npz LM ヘッド・単語の埋め込み
plans/ NPU プログラム(xclbin と命令列:生成用・プロンプト用(pfx/ が 1,024 / 2,048 トークンの新方式、32 トークン))
xdna.json、engine.json プログラムとモデルの設定
tokenizer.json ほか 元のモデルのトークナイザーとチャットテンプレート

ライセンス

元のモデルと同じ Apache-2.0 です。モデルの重みは Prism ML の Ternary-Bonsai-2-27B(元は Qwen/Qwen3.8-27B)に由来します。

Configuration

Context length (tokens)
262,144
Layers
64
Hidden size
5,120
Feed-forward size
17,408
Attention heads
24
Key/value heads
4
Head dimension
256
Vocabulary size
248,320
Model type
prism_hadamard_qwen35

Identity and Version

Repository
ryugyosoft/Ternary-Bonsai-2-27B-onwx
Publisher
Ryu Gyo
Task
Text generation
Modality
Text
Library
Not stated by the source
Parameters
Not stated by the source
Languages
ja, en
Revision
a1d1b26da78f6178c5784c65e1e911843c79aae7
First published
2026-10-12
Last updated
2026-10-16

Files and Weights

470 files, 7.6 GB in total. The weights are 64 files totalling 386.6 MB in bin, npz.

Weights64 files · 386.6 MB
Configuration18 files · 75.8 KB
Tokenizer2 files · 12.8 MB
Documentation2 files · 11.0 KB
Other383 files · 7.2 GB
Repository1 file · 12.9 KB
Every file
FileTypeSizeSHA-256
embed.npzWeights337.7 MB 81290912484b
plans/pfx/dqg_at_p0/insts.binWeights127.2 KB 26827d4b2bdd
plans/pfx/dqg_at_p1/insts.binWeights90.9 KB c4dc3f993c58
plans/pfx/dqg_at_p2/insts.binWeights309.0 KB 64c390262483
plans/pfx/dqg_at_p3/insts.binWeights181.8 KB fcaa8c245b4f
plans/pfx/dqg_dn_p0/insts.binWeights168.1 KB 94de5613ef05
plans/pfx/dqg_dn_p1/insts.binWeights90.9 KB f32cc121a484
plans/pfx/dqg_dn_p2/insts.binWeights309.0 KB 519e01f499d9
plans/pfx/dqg_dn_p3/insts.binWeights181.8 KB 0300520345a3
plans/pfx/m1024/act.binWeights11.7 KB 7e5a7f8d1893
plans/pfx/m1024/d0.binWeights27.5 KB 7aabfa99e747
plans/pfx/m1024/d1.binWeights27.5 KB ec7464d8c737
plans/pfx/m1024/d2.binWeights27.5 KB a0bb2df8bae0
plans/pfx/m1024/d3.binWeights27.5 KB 97c7c9573d50
plans/pfx/m1024/dnl.binWeights20.1 KB da6e333ffcea
plans/pfx/m1024/dno.binWeights25.2 KB 4439915b58b5
plans/pfx/m1024/dnr.binWeights33.0 KB 642e683647b9
plans/pfx/m1024/gu.binWeights187.2 KB 138ffeeb6650
plans/pfx/m1024/in18432.binWeights99.1 KB 2920a34208ab
plans/pfx/m1024/n1.binWeights17.2 KB f08f1f1f0c99
plans/pfx/m1024/o0.binWeights27.5 KB c21faf05400a
plans/pfx/m1024/o1.binWeights27.5 KB f36c506a2a0b
plans/pfx/m1024/pfa3/insts_0.binWeights414.1 KB bca4ac52b010
plans/pfx/m1024/pfa3/insts_1024.binWeights414.1 KB 4a95a0226ce2
plans/pfx/m1024/pfa3/insts_d.binWeights414.1 KB 96a0cba70321
plans/pfx/m1024/pfa5r1/insts_0.binWeights53.6 KB 9bcc249d5317
plans/pfx/m1024/pfa5r1/insts_1024.binWeights53.6 KB d2639df7b1e6
plans/pfx/m1024/pfa5r1/insts_d.binWeights53.6 KB e0123d63806e
plans/pfx/m1024/pfa5r2/insts_0.binWeights360.5 KB 3a3c3e5b72d5
plans/pfx/m1024/pfa5r2/insts_1024.binWeights360.5 KB f8a0014f6e44
plans/pfx/m1024/pfa5r2/insts_d.binWeights360.5 KB 636eed12b9f7
plans/pfx/m1024/r1n.binWeights18.2 KB 690dff7923ac
plans/pfx/m1024/r3.binWeights9.1 KB 3856f63de8ab
plans/pfx/m1024/r3n.binWeights18.2 KB ec74b0784d66
plans/pfx/m1024/rotb.binWeights92.6 KB bfb8dae6eaff
plans/pfx/m1024/wq.binWeights77.1 KB 9f4e6e7a608e
plans/pfx/m2048/act.binWeights18.9 KB eaf8b7e24904
plans/pfx/m2048/d0.binWeights27.5 KB 131a4ff6d824
plans/pfx/m2048/d1.binWeights27.5 KB 2b84428d83b5
plans/pfx/m2048/d2.binWeights27.5 KB 115b83c19721
plans/pfx/m2048/d3.binWeights27.5 KB a1f0ab68740d
plans/pfx/m2048/dnl.binWeights20.1 KB a2b171de985c
plans/pfx/m2048/dno.binWeights45.8 KB b14bce09b398
plans/pfx/m2048/dnr.binWeights33.0 KB ff59e7cb331a
plans/pfx/m2048/gu.binWeights187.2 KB 18f1c81d69d2
plans/pfx/m2048/in18432.binWeights99.1 KB 1619ff56fb18
plans/pfx/m2048/n1.binWeights26.3 KB f2f7124bd957
plans/pfx/m2048/o0.binWeights27.5 KB f4843fdf8199
plans/pfx/m2048/o1.binWeights27.5 KB 890f54322833
plans/pfx/m2048/pfa3/insts_0.binWeights826.3 KB d888f85d27e5
plans/pfx/m2048/pfa3/insts_1024.binWeights826.3 KB f9a7b68da7f7
plans/pfx/m2048/pfa3/insts_d.binWeights826.3 KB 7a2fe5e989b6
plans/pfx/m2048/pfa5r1/insts_0.binWeights105.4 KB f153969f0579
plans/pfx/m2048/pfa5r1/insts_1024.binWeights105.4 KB a95aa0405d02
plans/pfx/m2048/pfa5r1/insts_d.binWeights105.4 KB 6c60c5bd2438
plans/pfx/m2048/pfa5r2/insts_0.binWeights720.9 KB f3a4c9b90de5
plans/pfx/m2048/pfa5r2/insts_1024.binWeights720.9 KB 7d4ddc7d61c7
plans/pfx/m2048/pfa5r2/insts_d.binWeights720.9 KB 8c9ecd887594
plans/pfx/m2048/r1n.binWeights27.3 KB 8b23ffd08219
plans/pfx/m2048/r3.binWeights9.1 KB 0e3838995045
plans/pfx/m2048/r3n.binWeights27.3 KB 2392b6152797
plans/pfx/m2048/rotb.binWeights180.7 KB b1d43f5444cf
plans/pfx/m2048/wq.binWeights77.1 KB b97653c30a78
plans/pfx/small.npzWeights38.2 MB 70769cac1579
config.jsonConfiguration58.1 KB —
engine.jsonConfiguration2.7 KB —
generation_config.jsonConfiguration202 B —
plans/pfx/dqg_at_p0/case.jsonConfiguration130 B —
plans/pfx/dqg_at_p1/case.jsonConfiguration157 B —
plans/pfx/dqg_at_p2/case.jsonConfiguration130 B —
plans/pfx/dqg_at_p3/case.jsonConfiguration218 B —
plans/pfx/dqg_dn_p0/case.jsonConfiguration132 B —
plans/pfx/dqg_dn_p1/case.jsonConfiguration159 B —
plans/pfx/dqg_dn_p2/case.jsonConfiguration132 B —
plans/pfx/dqg_dn_p3/case.jsonConfiguration220 B —
plans/pfx/m1024/pfa3/case.jsonConfiguration213 B —
plans/pfx/m1024/pfa5r1/case.jsonConfiguration247 B —
plans/pfx/m1024/pfa5r2/case.jsonConfiguration247 B —
plans/pfx/m2048/pfa3/case.jsonConfiguration216 B —
plans/pfx/m2048/pfa5r1/case.jsonConfiguration250 B —
plans/pfx/m2048/pfa5r2/case.jsonConfiguration250 B —
xdna.jsonConfiguration12.1 KB —
README.mdDocumentation6.3 KB —
README_en.mdDocumentation4.7 KB —
blobs/L0.pfOther2.1 MB 98880ced5a86
blobs/L0.stOther3.8 MB 27cc4c58e9bb
blobs/L0.wgtOther103.3 MB e0a8ce057901
blobs/L1.pfOther2.1 MB 105480dec824
blobs/L1.stOther3.8 MB 5515fb018744
blobs/L1.wgtOther103.3 MB f82ebf46aade
blobs/L10.pfOther2.1 MB cea55f033199
blobs/L10.stOther3.8 MB 3a3e85d5c784
blobs/L10.wgtOther103.3 MB 37d54ae77763
blobs/L11.wgtOther99.4 MB d28cfae3cf93
blobs/L12.pfOther2.1 MB 60c21cdfd36a
blobs/L12.stOther3.8 MB 8bc642fc1ec9
blobs/L12.wgtOther103.3 MB 85c0f0851dd7
blobs/L13.pfOther2.1 MB f6f8e084365e
blobs/L13.stOther3.8 MB 0129235ee846
blobs/L13.wgtOther103.3 MB f68ffbd6c747
blobs/L14.pfOther2.1 MB 870d9ee503e9
blobs/L14.stOther3.8 MB 5a14e37d0639
blobs/L14.wgtOther103.3 MB 0e72dfc875c8
blobs/L15.wgtOther99.4 MB 6f012ac65296
blobs/L16.pfOther2.1 MB d3855b8c8de2
blobs/L16.stOther3.8 MB bbed7fd15101
blobs/L16.wgtOther103.3 MB 12f465f5ec8c
blobs/L17.pfOther2.1 MB deb2f7babe32
blobs/L17.stOther3.8 MB c1053dacd0ec
blobs/L17.wgtOther103.3 MB 160b507e1fa5
blobs/L18.pfOther2.1 MB e706bb4b1ff1
blobs/L18.stOther3.8 MB 2fdf7ba9df68
blobs/L18.wgtOther103.3 MB 9372c7e8586a
blobs/L19.wgtOther99.4 MB c04bc1d0f574
blobs/L2.pfOther2.1 MB 1b931132cd1b
blobs/L2.stOther3.8 MB 46f3d29a19f8
blobs/L2.wgtOther103.3 MB e45667c6d6f2
blobs/L20.pfOther2.1 MB 720b311a62df
blobs/L20.stOther3.8 MB dd72406776e4
blobs/L20.wgtOther103.3 MB 00f0741dd2ec
blobs/L21.pfOther2.1 MB 2170a5d70d74
blobs/L21.stOther3.8 MB 140674d4238d
blobs/L21.wgtOther103.3 MB 0db2824afaea
blobs/L22.pfOther2.1 MB f440e6c3d187
blobs/L22.stOther3.8 MB ea0cced8bf4f
blobs/L22.wgtOther103.3 MB 23ecbce7563a
blobs/L23.wgtOther99.4 MB b01b83fdc619
blobs/L24.pfOther2.1 MB b230372fd04b
blobs/L24.stOther3.8 MB c8bf84df9cb3
blobs/L24.wgtOther103.3 MB 3310685535b1
blobs/L25.pfOther2.1 MB d63a9c385b68
blobs/L25.stOther3.8 MB ff8ce637acc5
blobs/L25.wgtOther103.3 MB 04e02c698dac
blobs/L26.pfOther2.1 MB a9b6d03a4b03
blobs/L26.stOther3.8 MB 523f6e10026a
blobs/L26.wgtOther103.3 MB d86727137854
blobs/L27.wgtOther99.4 MB 699fc9233f52
blobs/L28.pfOther2.1 MB 0d259f406f7d
blobs/L28.stOther3.8 MB f1a5d07c5ca9
blobs/L28.wgtOther103.3 MB f87ab3b43eeb
blobs/L29.pfOther2.1 MB 27e30ef07608
blobs/L29.stOther3.8 MB 0c3bf9699af4
blobs/L29.wgtOther103.3 MB a816aaf08459
blobs/L3.wgtOther99.4 MB 2116efb2656a
blobs/L30.pfOther2.1 MB 7fadd6d924fb
blobs/L30.stOther3.8 MB d1249baf06c4
blobs/L30.wgtOther103.3 MB 40cf82b023c9
blobs/L31.wgtOther99.4 MB c9565601a8ae
blobs/L32.pfOther2.1 MB 66078de3c6bf
blobs/L32.stOther3.8 MB 3cf0c0151470
blobs/L32.wgtOther103.3 MB a921c1ebac3f
blobs/L33.pfOther2.1 MB cfd8e5d9071a
blobs/L33.stOther3.8 MB 98c7f5aed1a6
blobs/L33.wgtOther103.3 MB 7e42fd182aeb
blobs/L34.pfOther2.1 MB f7e7992b4955
blobs/L34.stOther3.8 MB 3e9c5a58a6a6
blobs/L34.wgtOther103.3 MB 28dc322bb83d
blobs/L35.wgtOther99.4 MB fdad3bd65bdf
blobs/L36.pfOther2.1 MB 87d67b8af275
blobs/L36.stOther3.8 MB 83859016a768
blobs/L36.wgtOther103.3 MB f01ae3bb371b
blobs/L37.pfOther2.1 MB a518e297ab7e
blobs/L37.stOther3.8 MB 45ccc09a3121
blobs/L37.wgtOther103.3 MB 664d1a5667d4
blobs/L38.pfOther2.1 MB 8e0732efce70
blobs/L38.stOther3.8 MB e41509684b04
blobs/L38.wgtOther103.3 MB ac4e2d4599c0
blobs/L39.wgtOther99.4 MB 5de91bd26f21
blobs/L4.pfOther2.1 MB 54d799ac08d7
blobs/L4.stOther3.8 MB b3caba9376e9
blobs/L4.wgtOther103.3 MB b656d4138ad9
blobs/L40.pfOther2.1 MB fe6d72110e17
blobs/L40.stOther3.8 MB e15e1bdab296
blobs/L40.wgtOther103.3 MB 3c726d6543c5
blobs/L41.pfOther2.1 MB 74a1b101068a
blobs/L41.stOther3.8 MB 02e064118f05
blobs/L41.wgtOther103.3 MB 87b256e092e5
blobs/L42.pfOther2.1 MB 9b869b65dfcb
blobs/L42.stOther3.8 MB 009133f57a71
blobs/L42.wgtOther103.3 MB f2a5ff236d54
blobs/L43.wgtOther99.4 MB d4250e316210
blobs/L44.pfOther2.1 MB 6a77990475ae
blobs/L44.stOther3.8 MB bd82a8db2407
blobs/L44.wgtOther103.3 MB b4f9b54a5d70
blobs/L45.pfOther2.1 MB 98ab13c27a43
blobs/L45.stOther3.8 MB e9a21ee417df
blobs/L45.wgtOther103.3 MB b62897e81206
blobs/L46.pfOther2.1 MB e15990e010f4
blobs/L46.stOther3.8 MB fcf2b36fc772
blobs/L46.wgtOther103.3 MB 67f8c24d3ee5
blobs/L47.wgtOther99.4 MB dd83913e4f57
blobs/L48.pfOther2.1 MB bfbcf9cf34e3
blobs/L48.stOther3.8 MB dd49dd551e6b
blobs/L48.wgtOther103.3 MB 3b89eb7bc457
blobs/L49.pfOther2.1 MB 0388efc7904c
blobs/L49.stOther3.8 MB b7c50c708237
blobs/L49.wgtOther103.3 MB 4d948388c741
blobs/L5.pfOther2.1 MB bc815d0b8517
blobs/L5.stOther3.8 MB f922bc2689cb
blobs/L5.wgtOther103.3 MB 1408b2aaa9d3
blobs/L50.pfOther2.1 MB 946759a6d774
blobs/L50.stOther3.8 MB b5f7ee2bb4a8
blobs/L50.wgtOther103.3 MB 8d75dc7c0f06
blobs/L51.wgtOther99.4 MB d059ffc79ef4
blobs/L52.pfOther2.1 MB dd4c0f40a77e
blobs/L52.stOther3.8 MB ba8deac07e48
blobs/L52.wgtOther103.3 MB 7b9a2c20925c
blobs/L53.pfOther2.1 MB 801242fdcd24
blobs/L53.stOther3.8 MB 49411cccfe62
blobs/L53.wgtOther103.3 MB 088bb6c09e40
blobs/L54.pfOther2.1 MB 559ae423527a
blobs/L54.stOther3.8 MB 0267c48bdea7
blobs/L54.wgtOther103.3 MB 39e181b6c23b
blobs/L55.wgtOther99.4 MB f4d55d1fb4c6
blobs/L56.pfOther2.1 MB b8bd0c273105
blobs/L56.stOther3.8 MB 76df6d6af22e
blobs/L56.wgtOther103.3 MB 6410ddd275fb
blobs/L57.pfOther2.1 MB 0bef8f1043e4
blobs/L57.stOther3.8 MB 17cf7358f196
blobs/L57.wgtOther103.3 MB f9f1dba59ec0
blobs/L58.pfOther2.1 MB 54d3b29c13a7
blobs/L58.stOther3.8 MB c6c17c9f67c3
blobs/L58.wgtOther103.3 MB 5e9745ac3519
blobs/L59.wgtOther99.4 MB cbbcb715918d
blobs/L6.pfOther2.1 MB b6f209eec94f
blobs/L6.stOther3.8 MB 289ca16d6391
blobs/L6.wgtOther103.3 MB c6693dfe6b72
blobs/L60.pfOther2.1 MB fb4af206b95f
blobs/L60.stOther3.8 MB a22171be8b20
blobs/L60.wgtOther103.3 MB 1e4d6cf07bb7
blobs/L61.pfOther2.1 MB d0db28b42515
blobs/L61.stOther3.8 MB 7920f77798ea
blobs/L61.wgtOther103.3 MB dc905c614ae5
blobs/L62.pfOther2.1 MB 5a483914723d
blobs/L62.stOther3.8 MB 44daba201483
blobs/L62.wgtOther103.3 MB a056dfbacacb
blobs/L63.wgtOther99.4 MB 39180c9d4a51
blobs/L7.wgtOther99.4 MB e321116582a2
blobs/L8.pfOther2.1 MB b9f2ba25f9c7
blobs/L8.stOther3.8 MB 33cb4369f191
blobs/L8.wgtOther103.3 MB 28a334119169
blobs/L9.pfOther2.1 MB 01cd309aa63e
blobs/L9.stOther3.8 MB fcc162dea2f1
blobs/L9.wgtOther103.3 MB 3188c1acb07e
blobs/act.initOther1.5 MB 78f60a41a193
blobs/actp.initOther10.4 MB a5664f137729
blobs/head.wgtOther355.3 MB 18150f6ab595
chat_template.jinjaOther9.0 KB —
plans/at1024.instsOther10.9 KB —
plans/at10240.instsOther10.9 KB —
plans/at121600.instsOther10.9 KB —
plans/at128.instsOther10.9 KB —
plans/at1280.instsOther10.9 KB —
plans/at12800.instsOther10.9 KB —
plans/at152064.instsOther10.9 KB —
plans/at1536.instsOther10.9 KB —
plans/at16128.instsOther10.9 KB —
plans/at1792.instsOther10.9 KB —
plans/at190208.instsOther10.9 KB —
plans/at192.instsOther10.9 KB —
plans/at20224.instsOther10.9 KB —
plans/at2048.instsOther10.9 KB —
plans/at2304.instsOther10.9 KB —
plans/at237824.instsOther10.9 KB —
plans/at25344.instsOther10.9 KB —
plans/at256.instsOther10.9 KB —
plans/at2560.instsOther10.9 KB —
plans/at262144.instsOther10.9 KB —
plans/at2816.instsOther10.9 KB —
plans/at3072.instsOther10.9 KB —
plans/at31744.instsOther10.9 KB —
plans/at320.instsOther10.9 KB —
plans/at3328.instsOther10.9 KB —
plans/at3584.instsOther10.9 KB —
plans/at384.instsOther10.9 KB —
plans/at3840.instsOther10.9 KB —
plans/at39680.instsOther10.9 KB —
plans/at4096.instsOther10.9 KB —
plans/at448.instsOther10.9 KB —
plans/at49664.instsOther10.9 KB —
plans/at512.instsOther10.9 KB —
plans/at5120.instsOther10.9 KB —
plans/at62208.instsOther10.9 KB —
plans/at64.instsOther10.9 KB —
plans/at6400.instsOther10.9 KB —
plans/at768.instsOther10.9 KB —
plans/at77824.instsOther10.9 KB —
plans/at8192.instsOther10.9 KB —
plans/at97280.instsOther10.9 KB —
plans/dn.instsOther13.0 KB —
plans/final.xclbinOther1.1 MB 5384c366d3bf
plans/head.instsOther4.1 KB —
plans/pf.xclbinOther1.5 MB d5a65eae53f4
plans/pf_at10240_16.instsOther57.3 KB —
plans/pf_at10240_32.instsOther85.7 KB —
plans/pf_at1024_16.instsOther57.3 KB —
plans/pf_at1024_32.instsOther85.7 KB 3d9994da584f
plans/pf_at121600_16.instsOther57.3 KB —
plans/pf_at121600_32.instsOther85.7 KB —
plans/pf_at12800_16.instsOther57.3 KB —
plans/pf_at12800_32.instsOther85.7 KB —
plans/pf_at1280_16.instsOther57.3 KB —
plans/pf_at1280_32.instsOther85.7 KB 51c980c30e08
plans/pf_at128_16.instsOther57.3 KB —
plans/pf_at128_32.instsOther85.7 KB 1b6550cb9ec6
plans/pf_at152064_16.instsOther57.3 KB —
plans/pf_at152064_32.instsOther85.7 KB —
plans/pf_at1536_16.instsOther57.3 KB —
plans/pf_at1536_32.instsOther85.7 KB 1553d2ad1f05
plans/pf_at16128_16.instsOther57.3 KB —
plans/pf_at16128_32.instsOther85.7 KB —
plans/pf_at1792_16.instsOther57.3 KB —
plans/pf_at1792_32.instsOther85.7 KB 42428b870054
plans/pf_at190208_16.instsOther57.3 KB —
plans/pf_at190208_32.instsOther85.7 KB —
plans/pf_at192_16.instsOther57.3 KB —
plans/pf_at192_32.instsOther85.7 KB 2a2ebc7fb11a
plans/pf_at20224_16.instsOther57.3 KB —
plans/pf_at20224_32.instsOther85.7 KB —
plans/pf_at2048_16.instsOther57.3 KB —
plans/pf_at2048_32.instsOther85.7 KB 3751e22cef98
plans/pf_at2304_16.instsOther57.3 KB —
plans/pf_at2304_32.instsOther85.7 KB 47e91985d813
plans/pf_at237824_16.instsOther57.3 KB —
plans/pf_at237824_32.instsOther85.7 KB —
plans/pf_at25344_16.instsOther57.3 KB —
plans/pf_at25344_32.instsOther85.7 KB —
plans/pf_at2560_16.instsOther57.3 KB —
plans/pf_at2560_32.instsOther85.7 KB 3290051b1353
plans/pf_at256_16.instsOther57.3 KB —
plans/pf_at256_32.instsOther85.7 KB ed4139267137
plans/pf_at262144_16.instsOther57.3 KB —
plans/pf_at262144_32.instsOther85.7 KB —
plans/pf_at2816_16.instsOther57.3 KB —
plans/pf_at2816_32.instsOther85.7 KB 57da4afff593
plans/pf_at3072_16.instsOther57.3 KB —
plans/pf_at3072_32.instsOther85.7 KB 8e6e3664b67d
plans/pf_at31744_16.instsOther57.3 KB —
plans/pf_at31744_32.instsOther85.7 KB —
plans/pf_at320_16.instsOther57.3 KB —
plans/pf_at320_32.instsOther85.7 KB 491ea213e119
plans/pf_at3328_16.instsOther57.3 KB —
plans/pf_at3328_32.instsOther85.7 KB ef8eae181b37
plans/pf_at3584_16.instsOther57.3 KB —
plans/pf_at3584_32.instsOther85.7 KB 7636d98ec42a
plans/pf_at3840_16.instsOther57.3 KB —
plans/pf_at3840_32.instsOther85.7 KB e0a013565277
plans/pf_at384_16.instsOther57.3 KB —
plans/pf_at384_32.instsOther85.7 KB 71420e9b0c41
plans/pf_at39680_16.instsOther57.3 KB —
plans/pf_at39680_32.instsOther85.7 KB —
plans/pf_at4096_16.instsOther57.3 KB —
plans/pf_at4096_32.instsOther85.7 KB —
plans/pf_at448_16.instsOther57.3 KB —
plans/pf_at448_32.instsOther85.7 KB 0d7fd70a6128
plans/pf_at49664_16.instsOther57.3 KB —
plans/pf_at49664_32.instsOther85.7 KB —
plans/pf_at5120_16.instsOther57.3 KB —
plans/pf_at5120_32.instsOther85.7 KB —
plans/pf_at512_16.instsOther57.3 KB —
plans/pf_at512_32.instsOther85.7 KB f7940e6c76ba
plans/pf_at62208_16.instsOther57.3 KB —
plans/pf_at62208_32.instsOther85.7 KB —
plans/pf_at6400_16.instsOther57.3 KB —
plans/pf_at6400_32.instsOther85.7 KB —
plans/pf_at64_16.instsOther57.3 KB —
plans/pf_at64_32.instsOther85.7 KB 502825450dcc
plans/pf_at768_16.instsOther57.3 KB —
plans/pf_at768_32.instsOther85.7 KB 69b0dd48811e
plans/pf_at77824_16.instsOther57.3 KB —
plans/pf_at77824_32.instsOther85.7 KB —
plans/pf_at8192_16.instsOther57.3 KB —
plans/pf_at8192_32.instsOther85.7 KB —
plans/pf_at97280_16.instsOther57.3 KB —
plans/pf_at97280_32.instsOther85.7 KB —
plans/pf_dn0_1.instsOther54.8 KB —
plans/pf_dn0_10.instsOther61.2 KB —
plans/pf_dn0_11.instsOther61.2 KB —
plans/pf_dn0_12.instsOther61.2 KB —
plans/pf_dn0_13.instsOther61.2 KB —
plans/pf_dn0_14.instsOther61.2 KB —
plans/pf_dn0_15.instsOther61.2 KB —
plans/pf_dn0_16.instsOther61.2 KB —
plans/pf_dn0_17.instsOther87.7 KB —
plans/pf_dn0_18.instsOther87.7 KB —
plans/pf_dn0_19.instsOther87.7 KB —
plans/pf_dn0_2.instsOther54.8 KB —
plans/pf_dn0_20.instsOther87.7 KB —
plans/pf_dn0_21.instsOther87.7 KB —
plans/pf_dn0_22.instsOther87.7 KB —
plans/pf_dn0_23.instsOther87.7 KB —
plans/pf_dn0_24.instsOther87.7 KB —
plans/pf_dn0_25.instsOther94.2 KB —
plans/pf_dn0_26.instsOther94.2 KB —
plans/pf_dn0_27.instsOther94.2 KB —
plans/pf_dn0_28.instsOther94.2 KB —
plans/pf_dn0_29.instsOther94.2 KB —
plans/pf_dn0_3.instsOther54.8 KB —
plans/pf_dn0_30.instsOther94.2 KB —
plans/pf_dn0_31.instsOther94.2 KB —
plans/pf_dn0_32.instsOther94.2 KB —
plans/pf_dn0_4.instsOther54.8 KB —
plans/pf_dn0_5.instsOther54.8 KB —
plans/pf_dn0_6.instsOther54.8 KB —
plans/pf_dn0_7.instsOther54.8 KB —
plans/pf_dn0_8.instsOther54.8 KB —
plans/pf_dn0_9.instsOther61.2 KB —
plans/pf_dn_1.instsOther56.4 KB —
plans/pf_dn_10.instsOther62.8 KB —
plans/pf_dn_11.instsOther62.8 KB —
plans/pf_dn_12.instsOther62.8 KB —
plans/pf_dn_13.instsOther62.8 KB —
plans/pf_dn_14.instsOther62.8 KB —
plans/pf_dn_15.instsOther62.8 KB —
plans/pf_dn_16.instsOther62.8 KB —
plans/pf_dn_17.instsOther90.9 KB —
plans/pf_dn_18.instsOther90.9 KB —
plans/pf_dn_19.instsOther90.9 KB —
plans/pf_dn_2.instsOther56.4 KB —
plans/pf_dn_20.instsOther90.9 KB —
plans/pf_dn_21.instsOther90.9 KB —
plans/pf_dn_22.instsOther90.9 KB —
plans/pf_dn_23.instsOther90.9 KB —
plans/pf_dn_24.instsOther90.9 KB —
plans/pf_dn_25.instsOther97.4 KB —
plans/pf_dn_26.instsOther97.4 KB —
plans/pf_dn_27.instsOther97.4 KB —
plans/pf_dn_28.instsOther97.4 KB —
plans/pf_dn_29.instsOther97.4 KB —
plans/pf_dn_3.instsOther56.4 KB —
plans/pf_dn_30.instsOther97.4 KB —
plans/pf_dn_31.instsOther97.4 KB —
plans/pf_dn_32.instsOther97.4 KB —
plans/pf_dn_4.instsOther56.4 KB —
plans/pf_dn_5.instsOther56.4 KB —
plans/pf_dn_6.instsOther56.4 KB —
plans/pf_dn_7.instsOther56.4 KB —
plans/pf_dn_8.instsOther56.4 KB —
plans/pf_dn_9.instsOther62.8 KB —
plans/pfx/dqg_at_p0/final.xclbinOther173.4 KB 2e53215f63fc
plans/pfx/dqg_at_p1/final.xclbinOther173.4 KB a734820870d1
plans/pfx/dqg_at_p2/final.xclbinOther173.4 KB b4793dba2fbc
plans/pfx/dqg_at_p3/final.xclbinOther173.4 KB 5e2a846bef0b
plans/pfx/dqg_dn_p0/final.xclbinOther173.8 KB f183ba183259
plans/pfx/dqg_dn_p1/final.xclbinOther173.4 KB 34070d467a46
plans/pfx/dqg_dn_p2/final.xclbinOther173.4 KB f10e9e1a42dc
plans/pfx/dqg_dn_p3/final.xclbinOther173.4 KB aa4668ef165f
plans/pfx/m1024/dnp.xclbinOther1.1 MB c047988905d9
plans/pfx/m1024/dnr.xclbinOther1.5 MB 92f5ce8c36ce
plans/pfx/m1024/gemm.xclbinOther672.1 KB 129438c52410
plans/pfx/m1024/gemm3k.xclbinOther672.1 KB 36db3bba859d
plans/pfx/m1024/gemm4k.xclbinOther676.7 KB ca77c5863b4a
plans/pfx/m1024/glue.xclbinOther863.6 KB 06924f6a754f
plans/pfx/m1024/pfa3/final.xclbinOther1.9 MB e64666cc7109
plans/pfx/m1024/pfa5r1/final.xclbinOther500.6 KB 767e3e92415f
plans/pfx/m1024/pfa5r2/final.xclbinOther1.4 MB 322dc356ed3f
plans/pfx/m1024/wq.xclbinOther688.0 KB c04ebd13cc78
plans/pfx/m2048/dnp.xclbinOther1.1 MB a143eb662698
plans/pfx/m2048/dnr.xclbinOther1.5 MB 02cb8e4ce046
plans/pfx/m2048/gemm.xclbinOther673.6 KB 567c0e7495d1
plans/pfx/m2048/gemm3k.xclbinOther673.6 KB 5a0599968c3f
plans/pfx/m2048/gemm4k.xclbinOther678.2 KB f3a9d86b621c
plans/pfx/m2048/glue.xclbinOther863.6 KB 22f1f16d19d7
plans/pfx/m2048/pfa3/final.xclbinOther1.9 MB 0fb6bc6d9a5f
plans/pfx/m2048/pfa5r1/final.xclbinOther500.6 KB 95bd6a526fb0
plans/pfx/m2048/pfa5r2/final.xclbinOther1.4 MB 43ccffe454bb
plans/pfx/m2048/wq.xclbinOther689.5 KB 7cfb7e68679a
.gitattributesRepository12.9 KB —
tokenizer.jsonTokenizer12.8 MB 0997f410c57a
tokenizer_config.jsonTokenizer17.9 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
386.6 MB
Download from Ryu Gyo

Released by Ryu Gyo through its official repository on Hugging Face. Read the license.

Built From

  • Derived from prism-ml/Ternary-Bonsai-2-27B-mlx-2bit

Memory Requirements

PrecisionWeights in memory
As published386.6 MB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About Ternary-Bonsai-2-27B-onwx

Can I use Ternary-Bonsai-2-27B-onwx commercially?

Yes. Ternary-Bonsai-2-27B-onwx is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is Ternary-Bonsai-2-27B-onwx's context length?

262,144 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Text generation

opt-125m

AI at Meta

OPT was first introduced in Open Pre-trained Transformer Language Models and first released in metaseq's repository on May 3rd 2022 by Meta AI. Disclaimer: The team releasing OPT wrote an official model card, which is available in Appendix D of the paper. Content from this model card has been written by the Hugging Face team. To quote the first two paragraphs of the official paper OPT was predominantly pretrained with English text, but a small amount of non-English data is still present within the training corpus via CommonCrawl. The model was pretrained using a causal language modeling (CLM) objective. OPT belongs to the same family of decoder-only models like GPT-3. As such, it was…

Open weights other 2,048 tokens transformers

Model · Text generation

Ornith-1.5-9B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ornith-1.5-35B-A3B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ternary-Bonsai-2-27B-gguf

Prism ML

Full 27B-class reasoning in ternary transformer weights, for llama.cpp (CUDA, Metal, CPU) - \~5.9 GB language model (down from \~54 GB FP16) — full 27B-class reasoning on a standard laptop or a single GPU - 98.2% of FP16 intelligence retained: 84.78 average across 14 thinking-mode benchmarks — far above the conventional IQ2XXS build (72.59) at about 82% of its footprint, and within 0.4 points of UD-Q4KXL at three times the footprint - Retains thinking, reasoning, and agentic behavior deep in the sub-4-bit regime, where conventional low-bit representations collapse: math within half a point of full precision (96.57), coding level with the baseline (89.42), agentic tool calling at 74.92…

Open weights apache-2.0 llama.cpp

Uncensored Qwen3.8-27B, published as GGUF quantizations with the multi token prediction (MTP) head retained and verified. Refusal behaviour has been substantially reduced, not eliminated. See Measured behaviour for the numbers. Capabilities, training data, and architecture are otherwise unchanged. - Refusal directions removed with Heretic, which co minimizes refusal count against KL divergence from the base model. No handwritten refusal removal code, no finetuning, no additional training data. - Abliteration runs at bf16 (no 4 bit quantization). the resulting LoRA is merged into the bf16 base, so the published weights are not a quantized round trip. - mtp. tensors are copied verbatim from…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.0-9B-GGUF

Ornith

Aloha! Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding. This model card documents Ornith-1.0-9B, the most lightweight member of the Ornith family, designed for efficient single-GPU deployment. Ornith-1.0-9B is a dense ~9B model (≈19 GB in bf16), so it serves comfortably on a single 80GB GPU. The recipes below stand up an OpenAI-compatible server; add --tensor-parallel-size / --tp if you want to shard across more GPUs. For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-9B requires…

Open weights mit transformers