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

gemma-4-12B-fable5-uncensored-int4-ov

HF 源站

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

Text GenerationLicense: apache-2.012Bopenvinogemma4_unifiedint4gemma-4hereticuncensoredvision-language-modelimage-text-to-textconversational
README.md说明 / 使用方法

license: apache-2.0 base_model: llmfan46/gemma-4-12B-uncensored-heretic tags:

  • openvino
  • int4
  • gemma-4
  • heretic
  • uncensored
  • vision-language-model
  • text-generation
  • image-text-to-text

Gemma-4 12B Fable5 — OpenVINO INT4 (Uncensored)

This is an OpenVINO INT4 conversion of gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2, an uncensored variant of Google's google/gemma-4-12B-it.

Conversion

ParameterValue
Sourcellmfan46/gemma-4-12B-uncensored-heretic
FormatOpenVINO IR
Weight precisionINT4 (group size 128, asymmetric)
Backup precisionINT8 (lm_head)
Tooloptimum-cli 2.1.0.dev0 + nncf 3.2.0
Transformers5.14.0.dev0
OpenVINO2026.4.0 nightly
Taskimage-text-to-text

CLI command

optimum-cli export openvino \
    --model llmfan46/gemma-4-12B-uncensored-heretic \
    --task image-text-to-text \
    --weight-format int4 \
    --trust-remote-code \
    gemma-4-12B-heretic-int4-ov

Model size

ComponentSize
Language model6.3 GB
Text embeddings961 MB
Vision embeddings48 MB
Tokenizer17 MB
Total7.3 GB

Hardware requirements

  • GPU VRAM: 8 GB minimum (tested on Arc A770 16 GB)
  • RAM: 16 GB+
  • Recommended context: 8K tokens at ~10 tok/s on Arc A770

Usage

With OpenVINO GenAI (Python)

import openvino_genai as g

pipe = g.VLMPipeline(
    "gemma-4-12B-heretic-int4-ov",
    "GPU",
    DYNAMIC_QUANTIZATION_GROUP_SIZE=0,
    GPU_ENABLE_LARGE_ALLOCATIONS=True,
)

# Raw text generation
result = pipe.generate("The capital of France is", max_new_tokens=10)
print(result.texts)

# Chat mode
pipe.start_chat()
result = pipe.generate("Hello!", max_new_tokens=50)
print(result.texts)
pipe.finish_chat()

With OpenAI-compatible server

python ov_server.py
# or
OV_MODEL=../gemma-4-12B-heretic-int4-ov \
GPU_ENABLE_LARGE_ALLOCATIONS=True \
DYNAMIC_QUANTIZATION_GROUP_SIZE=0 \
python ov_server.py
curl http://localhost:8092/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"Hello!"}]}'

Multimodal (image understanding)

from PIL import Image
import numpy as np
import openvino as ov

pipe = g.VLMPipeline("gemma-4-12B-heretic-int4-ov", "GPU")
image = Image.open("photo.jpg")
img_tensor = ov.Tensor(np.array(image.convert("RGB"))[None])

result = pipe.generate("Describe this image", image=img_tensor, max_new_tokens=200)
print(result.texts)

Performance (Arc A770 16GB)

MetricValue
TTFT (128 tok ctx)~1.0 s
Generation rate~10 tok/s at 8K ctx
Max context16K tokens (f16 KV cache)

License

Apache 2.0 (same as the source model)

HUGGING FACE

上游数据

HF 下载量81
HF 点赞量1

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

SITE STATS

本站统计

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

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

来源与版本

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