SkyVision.cpp
Collection
13 items • Updated • 1
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>)。
权重遵循 MIT License(与原模型一致)。
4-bit
8-bit
16-bit
Base model
deepseek-ai/Janus-Pro-1B