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

gemma-4-E4B-uncensored-int4-ov

HF 源站

ONTONOUS/gemma-4-E4B-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-E4B-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 E4B (8B) INT4 OpenVINO

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

The E4B variant sits between the E2B and 12B — offering strong reasoning capability with moderate VRAM requirements.

Model Details

PropertyValue
Base modelTrevorJS/gemma-4-E4B-it-uncensored
ArchitectureGemma4ForConditionalGeneration
PrecisionINT4 (asymmetric, group_size=128)
Parameters8B
Hidden size2560
Layers42
Attention heads8
KV heads2
KV shared layers18
Max position131072
Sliding window512
Vocab size262144
Vision✅ 280 soft tokens
Audio✅
Disk size6.4 GB
FrameworkOpenVINO 2026.4+

Usage

With openvino_genai (recommended)

import openvino_genai as g

pipe = g.VLMPipeline("gemma-4-E4B-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_e4b_int4_ov_new OV_PORT=8092 python serving/ov_server.py

Performance (Arc A770 16GB, KV_CACHE=f16)

ContextLatencyThroughput
Short4.0ms~250 tok/s
1K30.2ms~33 tok/s
4K35.3ms~28 tok/s
8K42.3ms~24 tok/s
12K51.7ms~19 tok/s
16K59.6ms~17 tok/s

E4B offers a balanced tradeoff: more capable than E2B while fitting comfortably in 16GB VRAM for up to 16K context.

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 E4B
HUGGING FACE

上游数据

HF 下载量14
HF 点赞量0

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

SITE STATS

本站统计

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

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

来源与版本

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