玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
ONTONOUS /

gemma-4-E2B-uncensored-int4-ov

HF 源站

ONTONOUS/gemma-4-E2B-uncensored-int4-ov is an uncensored open-source model hosted on Hugging Face.

Image-Text-to-TextChineseEnglishMultilingualLicense: apache-2.0openvinogemma4gemma-4int4uncensoredmultimodalvision-language-modelefficientconversational
README.md说明 / 使用方法

base_model: TrevorJS/gemma-4-E2B-it-uncensored pipeline_tag: image-text-to-text library_name: openvino language:

  • en
  • zh license: apache-2.0 tags:
  • gemma-4
  • openvino
  • int4
  • uncensored
  • multimodal
  • vision-language-model
  • efficient

Gemma-4 E2B (5.1B) INT4 OpenVINO

Uncensored Gemma-4 E2B exported to OpenVINO IR with INT4 weight compression via NNCF.

The E2B variant is Gemma-4's efficient architecture with shared KV layers and smaller hidden dimensions, optimized for long-context scenarios.

Model Details

PropertyValue
Base modelTrevorJS/gemma-4-E2B-it-uncensored
ArchitectureGemma4ForConditionalGeneration
PrecisionINT4 (asymmetric, group_size=128)
Parameters5.1B
Hidden size1536
Layers35
Attention heads8
KV heads1
KV shared layers20
Max position131072
Sliding window512
Vocab size262144
Vision✅ 280 soft tokens
Audio✅
Disk size4.3 GB
FrameworkOpenVINO 2026.4+

Usage

With openvino_genai (recommended)

import openvino_genai as g

pipe = g.VLMPipeline("gemma-4-E2B-int4-ov", "GPU")
result = pipe.generate("Hello", max_new_tokens=100)
print(result.texts[0])

Multimodal example

result = pipe.generate(
    "Describe this image",
    images=["image.jpg"],
    max_new_tokens=256,
)
print(result.texts[0])

OpenAI-compatible API server

OV_MODEL=./models_trevorjs_e2b_int4_ov_new OV_PORT=8092 python serving/ov_server.py

Performance (Arc A770 16GB, KV_CACHE=f16)

ContextLatencyThroughput
Short3.5ms~285 tok/s
1K24.7ms~40 tok/s
4K28.0ms~36 tok/s
8K35.8ms~28 tok/s
12K15.7ms~64 tok/s
14K46.8ms~21 tok/s

Best value: E2B achieves the best price/performance ratio. With only 4.3GB VRAM, it supports up to 14K context on a 16GB GPU.

Why E2B?

The E2B variant uses 20/35 shared KV layers and 1 KV head to dramatically reduce KV cache memory. This allows longer context windows on limited VRAM compared to the 12B model.

Export Process

Same as other Gemma-4 OpenVINO exports:

  1. Export FP16 via optimum-cli export openvino --task image-text-to-text --weight-format fp16
  2. Compress to INT4 with nncf.compress_weights (INT4_ASYM, group_size=128, ratio=1.0)

License

Apache 2.0

Links

  • Original Gemma-4 E2B
HUGGING FACE

上游数据

HF 下载量18
HF 点赞量0

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
ONTONOUS
最近更新
2026/07/14
最新创建
2026/07/14
HF 趋势
未知
数据快照
2026/09/16
版本
未知
许可证
apache-2.0