Janus-Pro-1B GGUF(理解侧)

deepseek-ai/Janus-Pro-1B 的社区 GGUF 版,由自研推理引擎 SkyVision.cpp(纯 ggml,无 llama.cpp 依赖)转换并验证。

本仓库只包含理解侧(视觉问答)权重;Janus 的图像生成侧(VQ tokenizer / gen_aligner / gen_head)不属于引擎范围,未导出。

模型信息

视觉塔 timm 风味 SigLIP-large-patch16-384:24 层、dim 1024、16 头、fused qkv(全 bias)、GELU(erf)、无 cls token,576 token/图
对齐器 2 层 MLP:Linear(1024→2048) → GELU(erf) → Linear(2048→2048)
文本主干 纯 llama 1.5B:24 层、16:16 头、head_dim 128、ff 5632、RoPE theta 1e4、RMSNorm 1e-5、untied lm_head
词表 / 上下文 102400(DeepSeek BPE)/ 4096

文件说明

文件 大小 说明
janus-pro-1b-f16.gguf 3.9 GB 全 F16,精度最接近原模型
janus-pro-1b-q8_0.gguf 2.1 GB Q8_0,推荐
janus-pro-1b-q4_0.gguf 1.1 GB Q4_0,最省内存
tokenizer.json 4.7 MB 官方分词器(DeepSeek isolated-Split BPE)

使用方法

配套推理引擎:SkyVision.cpp

git clone https://github.com/SkYContact/SkyVision.cpp
cd SkyVision.cpp
git clone --depth 1 https://github.com/ggml-org/ggml
cmake -B build && cmake --build build --config Release --target vqa-cli

./build/Release/vqa-cli --model janus-pro-1b-q8_0.gguf -t tokenizer.json \
    --image image.png --ask "Describe this image."

# 内置 Web UI / server
./build/Release/vqa-cli --model janus-pro-1b-q8_0.gguf -t tokenizer.json --serve 8080

预处理为官方口径(bicubic 长边 384 → expand2square 填充 127 → 归一化),prompt 走 deepseek sft 模板(<|User|>: ...\n\n<|Assistant|>:,一图 576 个 <image_placeholder>)。

精度验证

  • 与 fp32 官方 transformers 栈对拍:prefill logits 相关系数 0.9999、argmax 一致、描述输出逐字一致(合成场景图 + 真实照片两问)。
  • Q8_0 / Q4_0 与 F16 行为一致(同一图同一问输出语义一致)。
  • 分词器逐 id 一致(拉丁/中文/数字逐位/西里尔/特殊符号 7 组用例全对)。

性能参考(RTX 5070 Ti Laptop 12GB,Q8_0)

  • 视觉编码(单图 576 token):~54 ms
  • 文本 prefill(596 token):~46 ms
  • CPU 16 线程:视觉 ~0.5 s,prefill ~2 s

许可

权重遵循 MIT License(与原模型一致)。

Downloads last month
535
GGUF
Model size
2B params
Architecture
janus
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for SkyContact/Janus-Pro-1B-GGUF

Quantized
(8)
this model

Collection including SkyContact/Janus-Pro-1B-GGUF