Skip to page content
SAVRN
Search Plan a project

Open-weight model · Image and text to text

gemma-4-E4B-it-onw

by Ryu Gyo ryugyosoft/gemma-4-E4B-it-onw

gemma-4-E4B-it-onw is an open-weight model for image and text to text from Ryu Gyo, released under Apache License 2.0. It has 131,072-token context. Its published files total 4.5 GB. It draws 29 downloads a month.

google/gemma-4-E4B-it を onw(俺のNPUがこんなに動くわけない)用に変換したモデルです。onw は LLM を Intel NPU だけで動かすエンジンで、このリポジトリにはモデルだけが入っています(エンジンは別にダウンロードします)。 テキストと画像に対応。単独版 ryugyosoft/gemma-4-E4B-it-npu と同じ検証済みの NPU グラフを、共通エンジンで動かします。 私たちの知る限り、画像エンコーダーと層ごとの埋め込みまで含めて Gemma 4 全体を NPU…

Parameters—
Context131,072
Weights4.5 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads29

Model Card

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

google/gemma-4-E4B-it を onw(俺のNPUがこんなに動くわけない)用に変換したモデルです。onw は LLM を Intel NPU だけで動かすエンジンで、このリポジトリにはモデルだけが入っています(エンジンは別にダウンロードします)。 テキストと画像に対応。単独版 ryugyosoft/gemma-4-E4B-it-npu と同じ検証済みの NPU グラフを、共通エンジンで動かします。 私たちの知る限り、画像エンコーダーと層ごとの埋め込みまで含めて Gemma 4 全体を NPU で動かす公開実装は onw が初めてです(2026 年 9 月、Fable 5.1 調べ。Intel 公式の OpenVINO GenAI は画像エンコーダーを CPU で動かし、他の公開例はテキストのみです)。 1. onw(エンジン)を入れます。 まだの場合は、onw の「インストール」 のとおり 1 行貼るだけです。Windows はスタートメニューで「PowerShell」を開き、次の 1 行を貼って Enter(Ubuntu は onw の README の curl... | bash)。 2. タスクトレイの onw アイコンから開く onw ウィンドウ の「モデル」タブで gemma-4-E4B-it を選び、「ダウンロード」を押します(4.3 GB)。 3. 「サーバー」タブでモデルを選んで「ロード」を押します。初回だけ NPU 向けの準備に約 4 分かかります。 4. 「チャット」ですぐ試せます。他のアプリからは OpenAI 互換 API…

Read Ryu Gyo's full model card

gemma-4-E4B-it for onw — Intel NPU だけで動く(テキスト+画像)

日本語 | English

google/gemma-4-E4B-it を onw(俺のNPUがこんなに動くわけない)用に変換したモデルです。onw は LLM を Intel NPU だけで動かすエンジンで、このリポジトリにはモデルだけが入っています(エンジンは別にダウンロードします)。

テキストと画像に対応。単独版 ryugyosoft/gemma-4-E4B-it-npu と同じ検証済みの NPU グラフを、共通エンジンで動かします。

私たちの知る限り、画像エンコーダーと層ごとの埋め込みまで含めて Gemma 4 全体を NPU で動かす公開実装は onw が初めてです(2026 年 9 月、Fable 5.1 調べ。Intel 公式の OpenVINO GenAI は画像エンコーダーを CPU で動かし、他の公開例はテキストのみです)。

NPU 3720(Core Ultra 9 285HX)
入力 テキスト+画像
生成速度 7.2 tok/s(先読み検証あり、出力は通常生成と同一)
プロンプト処理 画像+質問 284 トークン:画像 1.9 秒+処理 2.0 秒(64 トークン版、RAM 24 GB 以上)
ダウンロード 4.3 GB
使用メモリ(読み込み後の作業セット) 約 6 GB(画像処理中 8.5 GB)
初回起動(NPU 向けコンパイル)/2 回目以降 約 4 分/約 20 秒

使い方

  1. onw(エンジン)を入れます。 まだの場合は、onw の「インストール」 のとおり 1 行貼るだけです。Windows はスタートメニューで「PowerShell」を開き、次の 1 行を貼って Enter(Ubuntu は onw の README の curl ... | bash)。

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

  1. タスクトレイの onw アイコンから開く onw ウィンドウ の「モデル」タブで gemma-4-E4B-it を選び、「ダウンロード」を押します(4.3 GB)。
  2. 「サーバー」タブでモデルを選んで「ロード」を押します。初回だけ NPU 向けの準備に約 4 分かかります。
  3. 「チャット」ですぐ試せます。他のアプリからは OpenAI 互換 API として使えます(base URL は http://localhost:8000/v1)。
from openai import OpenAI
c = OpenAI(base_url="http://localhost:8000/v1", api_key="none")
r = c.chat.completions.create(model="gemma-4-E4B-it-onw", messages=[{"role": "user", "content": "こんにちは"}])
print(r.choices[0].message.content)

上級者向け:hf download ryugyosoft/gemma-4-E4B-it-onw で取得したフォルダを onw serve フォルダ で起動することもできます。Git LFS なしの git clone では重みが入らないので使わないでください(onw が検出して止めます)。

バージョン

  • v2(現在):デコーダーの重みを 1/16/64 トークン用で共有、層ごとの埋め込み表を INT4 化(9.2 → 4.3 GB、使用メモリ 16.1 → 14.8 GB)。回答は v1 と同じでした。 onw 0.3 以降が必要です。
  • v1:hf download ryugyosoft/gemma-4-E4B-it-onw --revision v1 --local-dir ... で取り出せます。

ダウンロード量の削減の大半は同じ重みを 1 つにまとめたことによるもので、実行時は NPU がブロックサイズごとにコンパイル済みの重みを持つため、使用メモリの減り方は小さめです。

仕組み

  • Gemma 4 用に書き換えた静的デコーダー(ヘッド次元 512 のアテンションを 256 幅に分割、マスクはホストで作成)をそのまま取り込んでいます。
  • 埋め込みと 2.7 GB の層ごとの埋め込み表はホストで引きます(表を引くだけなので NPU メモリを使わず、単独版にあった別プロセスも不要)。
  • 出力層は全ブロックサイズで共有する INT8 入力。logit の softcap は NPU コンパイラの不具合を避ける形で組んでいます。
  • 詳しくは onw の技術解説。

ファイル

ファイル 内容
seg00_S{1,16,64}.xml + seg00.bin 静的デコーダー(1/16/64 トークン用、重みは共有)
seg01_S*.xml + seg01.bin 出力層と logit softcap
vision.xml 静的な画像エンコーダー(280 トークン)
shared.bin INT8 の埋め込み(出力層と共有)、INT4 の層ごとの埋め込み表と ID 変換表
engine.json、トークナイザー/設定ファイル onw 用のメタデータ、元のリポジトリの設定

品質

エキスパートなどはチャネル単位・グループ単位の INT4(四捨五入量子化)です。確認した範囲では最初のトークンの予測は bf16 と一致し、回答は自然ですが、数トークン先から言い回しが元のモデルと分かれることがあります。

ライセンス

Apache 2.0(元モデルと同じ)。重みは元モデルから再量子化・再構成したものです。

Configuration

Architecture
Gemma4ForConditionalGeneration
Context length (tokens)
131,072
Layers
42
Hidden size
2,560
Feed-forward size
10,240
Attention heads
8
Key/value heads
2
Head dimension
256
Vocabulary size
262,144
Sliding window (tokens)
512
Model type
gemma4

Identity and Version

Repository
ryugyosoft/gemma-4-E4B-it-onw
Publisher
Ryu Gyo
Task
Image and text to text
Modality
Image and text
Library
openvino
Parameters
Not stated by the source
Languages
ja, en
Revision
cfb8909525c4c69a3b5f11528b2f25a1ccd055b7
First published
2026-09-24
Last updated
2026-09-28

Files and Weights

23 files, 4.5 GB in total. The weights are 4 files totalling 4.5 GB in bin.

Weights4 files · 4.5 GB
Configuration6 files · 12.3 KB
Tokenizer2 files · 32.2 MB
Documentation2 files · 10.8 KB
Other8 files · 16.0 MB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
seg00.binWeights2.1 GB 38b18a93e134
seg01.binWeights6 B 5e48af94438b
shared.binWeights2.3 GB 9800fc61111c
vision.binWeights169.8 MB d7728ad030d9
config.jsonConfiguration5.2 KB —
engine.jsonConfiguration4.4 KB —
generation_config.jsonConfiguration203 B —
preprocessor_config.jsonConfiguration403 B —
processor_config.jsonConfiguration1.7 KB —
shared.bin.jsonConfiguration509 B —
README.mdDocumentation6.1 KB —
README_en.mdDocumentation4.6 KB —
chat_template.jinjaOther18.6 KB —
seg00_S1.xmlOther4.7 MB —
seg00_S16.xmlOther4.7 MB —
seg00_S64.xmlOther4.7 MB —
seg01_S1.xmlOther7.1 KB —
seg01_S16.xmlOther7.1 KB —
seg01_S64.xmlOther7.1 KB —
vision.xmlOther2.0 MB —
.gitattributesRepository1.6 KB —
tokenizer.jsonTokenizer32.2 MB cc8d3a0ce364
tokenizer_config.jsonTokenizer3.7 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
4.5 GB
Download from Ryu Gyo

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

Built From

Memory Requirements

PrecisionWeights in memory
As published4.5 GB

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

Questions About gemma-4-E4B-it-onw

Can I use gemma-4-E4B-it-onw commercially?

Yes. gemma-4-E4B-it-onw 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 gemma-4-E4B-it-onw's context length?

131,072 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Non-uniform GGUF quantizations of a 512-expert MoE, produced with GSQ and RCO, with a vision projector for multimodal use. This repository provides GGUF quantizations of Qwen3.8-Flash-Next at four sizes, together with the model's vision projector (mmproj) for multimodal use. In contrast to uniform quantization, which applies a single quantization type to all weight tensors, each model here assigns a separate quantization type to every tensor. The assignment is obtained by a gradient-based search that allocates precision according to per-tensor sensitivity, subject to a total size budget. The resulting files are standard GGUF and run unmodified in llama.cpp, Ollama, and LM Studio. A…

Open weights apache-2.0 gguf

Model · Image and text to text

Qwen3.8-27B-iMatrix-NVFP4-MTP-GGUF

Michał Piszczek

I built this quant because the ready-made FP4 file answered the wrong question. It was fast, but on my short WikiText-2 control it scored 6.4949 PPL. Plain Q40 scored 6.3798. The first higher-quality hybrid went too far the other way: good perplexity, 34.19 tok/s, and no comfortable room for 256K plus vision. This is the build that survived both gates. It is a 17.1 GB, 5.01 BPW mixed-precision GGUF of Qwen/Qwen3.8-27B. It keeps large, tolerant matrices in native NVFP4 and spends more bits on selected attention, Gated DeltaNet, and late FFN tensors. The trained MTP layer remains embedded in the same GGUF. This is not a fine-tune. I built the private calibration workload from 5,472 messages…

Open weights apache-2.0

Model · Image and text to text

Huihui-Qwen3.8-27B-abliterated-GGUF

Huihui.ai

This is an uncensored version of Qwen/Qwen3.8-27B created with abliteration (see remove-refusals-with-transformers to know more about it). This is a crude, proof-of-concept implementation to remove refusals from an LLM model without using TransformerLens. The newly added Huihui-Qwen3.8-27B-abliterated-Underdog-Saluki series come from ConwayResearch/Underdog-Saluki-27B-1.0 and ukisai/Swift-1.5-Qwen3.8-27B-GSQ-RCO-GGUF. Only layers 22 to 52 (0-based indexing) have been ablated, while the other layers remain unablated. It may come with a small disclaimer warning. Due to ConwayResearch/Underdog-Saluki-27B-1.0 not providing an imatrix file, we will attempt to perform ablation by mixing the GGUF…

Open weights apache-2.0 transformers

Qwen3.8-27B uncensored by HauhauCS 0/465 Refusals. This is the Aggressive variant: direct answers, no refusal behavior, and minimal preamble on hard prompts. Every text GGUF preserves Qwen3.8's native NextN head, and this release adds HauhauCS FastMTP: a specific acceleration sidecar qualified across the complete quant lineup at maximum native context. Vision is included through the separate BF16 projector. No changes to datasets or intended capabilities. This release preserves Qwen3.8-27B's text, reasoning, agentic, image, and video capabilities while applying the HauhauCS Aggressive uncensoring profile. Pick Aggressive when you specifically want the model to get to the answer without…

Open weights apache-2.0

Model · Image and text to text

Qwen3.8-27B-GGUF

GGML Org

Run with https://llama.app - https://huggingface.co/Qwen/Qwen3.8-27B - https://huggingface.co/incoai/Qwen3.8-27B-DFlash2 - add info

Open weights apache-2.0

Model · Image and text to text

Tiel-Coder-35B-A3B-GGUF-MTP

Saga

Tiel is the fast coder of the arsenal. At 4-bit quantization and 23 GB it fixes real codebase issues at the rate (and speed, with the right GPU) of Opus 4.6 medium, while holding the best multi-turn conversation of any local model we have measured. It is also cheerfully bad at trivia. Pick it for work. Pick something else for exams. Where it sits against the other local builds Multi-turn conversation Reasoning and knowledge Where it stands. On 25 SWE-bench-Live problems Tiel fixes 12 — the same as Opus 4.6 (medium), four more than Ornith-1.5 itself, three more than Nail, and four more than Sonnet 5 (medium). Among models of its own class it is first; the ones ahead are dense 27Bs and Opus…

Open weights mit gguf