Downloads · 30 days
12
14% of all-time downloads
zeromodels/janus_pro_7b
janus_pro_7b is a image-text-to-text model from zeromodels. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for zeromodels. The card lists the license as mit.
[](https://github.com/IMvision12/ZeroModels) [](https://imvision12.github.io/ZeroModels/janus/) [](https://huggingface.co/collections/zeromodels/janus-pro-6a8eae450cd882e460b39440)
Downloads · 30 days
12
14% of all-time downloads
All-time downloads
86
Public
Repo size
13.6 GB
Likes
0
Public
Click a slice to open those files.
.h513.6 GB · 100%
From the Hugging Face model README
Paper: Janus-Pro: Unified Multimodal Understanding and Generation with Data and Model Scaling (arXiv:2501.17811) · HF Papers
Janus-Pro is a multimodal model (SigLIP tower + GELU aligner + Llama decoder). This ZeroModels port covers the understanding path only (image + text → text). Multi-image conversations are supported; VQ image generation is not ported.
For more details on the model, please go to the upstream model card.
Pure-Keras 3 conversion of deepseek-ai/Janus-Pro-7B for zeromodels. One implementation runs unmodified on TensorFlow / Torch / JAX.
This is a vision-language checkpoint (JanusConditionalGenerate, 7B).
import os
os.environ["KERAS_BACKEND"] = "torch" # or "jax" / "tensorflow"
from PIL import Image
from zeromodels.models.janus import JanusConditionalGenerate, JanusProcessor
model = JanusConditionalGenerate.from_weights("zeromodels/janus_pro_7b")
processor = JanusProcessor.from_weights("zeromodels/janus_pro_7b")
image = Image.open("your_image.jpg")
inputs = processor(
conversation=[
{
"role": "user",
"content": [
{"type": "image", "image": image},
{"type": "text", "text": "Describe this image in one sentence."},
],
}
]
)
outputs = model.generate(**inputs, max_new_tokens=64)
print(processor.decode(outputs[0]))
Load any Janus-Pro variant the same way with from_weights("zeromodels/<variant>"):
| Variant | Hub |
|---|---|
janus_pro_1b | zeromodels/janus_pro_1b |
janus_pro_7b | zeromodels/janus_pro_7b |
KERAS_BACKEND before importing Keras / zeromodels.JanusProcessor.from_weights(...) so image size and tokenizer match.{"type": "image", ...} items for multi-image chats.hf: prefix, e.g. JanusConditionalGenerate.from_weights("hf:deepseek-ai/Janus-Pro-7B").A huge thank you to the DeepSeek Janus-Pro authors for creating and releasing these models.
License: MIT.