Skip to content

About

Blog companion: run a vision language model on a Jozu Rapid Inference Container and query it with an image.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Vision Language Model on Jozu RIC: Run a vision language model on a Jozu RIC and query it with a receipt image

Vision Language Model on Jozu RIC

Run a vision language model on a Jozu RIC and query it with a receipt image

A notebook that packages Qwen3.6-35B-A3B and its multimodal projector as a ModelKit, serves them with a Jozu RIC and asks the model to describe a sample receipt.


Built by Studio1 Built with Jozu

Jozu docs  ·  Jozu  ·  KitOps  ·  More examples  ·  studio1hq.com


Overview

This repo accompanies the blog post "Running Vision Language Models on Jozu Rapid Inference Container (RICs)". It contains the notebook (main.ipynb) and a sample receipt.jpg.

You download a 1-bit quantized Qwen3.6-35B-A3B and its mmproj-BF16 multimodal projector, package both as a KitOps ModelKit, push to Jozu Hub, run it on a Jozu Rapid Inference Container (RIC) and ask it to describe the receipt.

Sample receipt used for the demo

Features

  • Multimodal packaging: The GGUF model is the Kitfile model and mmproj-BF16.gguf is a parts entry.
  • RIC with vision: llama-server runs with --mmproj so the model accepts images.
  • OpenAI-compatible API: The openai client calls http://localhost:8000/v1.
  • Visual question answering: The sample script base64-encodes receipt.jpg, sends it with a prompt and prints the answer (max_tokens=8192).

Tech stack

Layer Tool
Model Qwen3.6-35B-A3B GGUF (UD-IQ1_M) and mmproj-BF16.gguf
Packaging KitOps CLI and kitops Python library
Registry and runtime Jozu Hub and Jozu Rapid Inference Container
Client OpenAI Python SDK
Runtime Python 3.11+, Docker, Jupyter

Getting started

Prerequisites

  • Python 3.11 or later and Jupyter
  • Docker
  • A Jozu Hub account at jozu.ml
  • Homebrew on Linux or macOS (the notebook installs it if missing)
  • A machine with an NVIDIA GPU and the NVIDIA container toolkit for the --gpus all Docker command

Installation

git clone https://github.com/Studio1HQ/vision_model_jozu.git
cd vision_model_jozu
brew tap kitops-ml/kitops
brew install kitops
pip install openai kitops huggingface_hub

Environment variables

No environment variables. The notebook authenticates with the email and password of your Jozu Hub account and uses placeholders you replace.

Placeholder Description
email-prefix-here The part of your Jozu Hub email before the @ (for jack123@gmail.com use jack123). Keep tags lowercase.
full-email-here, password-here Jozu Hub credentials passed to UserCredentials in the notebook.

Run

Log in to Jozu Hub in a terminal (you are prompted for email and password), then open the notebook:

kit login jozu.ml
jupyter notebook main.ipynb

How it works

  1. Download both files from unsloth/Qwen3.6-35B-A3B-GGUF into Qwen3.6-35B-A3B-GGUF/.
  2. Build the Kitfile with the projector under parts and push to jozu.ml/email-prefix-here/qwen3.6-35b-a3b-gguf:latest.
  3. Launch the RIC:
    sudo docker run -it --rm -p 8000:8000 --gpus all \
      --entrypoint /app/llama-server \
      "jozu.ml/email-prefix-here/qwen3.6-35b-a3b-gguf/llama-cpp-cuda:latest" \
      -m /Qwen3.6-35B-A3B-GGUF/Qwen3.6-35B-A3B-UD-IQ1_M.gguf \
      --mmproj /Qwen3.6-35B-A3B-GGUF/mmproj-BF16.gguf \
      --jinja --chat-template-kwargs '{"enable_thinking": false}' \
      --host 0.0.0.0 --port 8000 -c 40965
  4. Encode receipt.jpg as base64, send it through client.chat.completions.create(...) and print the response.

Resources



Studio1

Built by Studio1, the technical content and DevRel partner for devtool teams. Made with Jozu.
Browse more open-source examples at github.com/Studio1HQ.

Website Book a call X LinkedIn

studio1hq.com · Technical content, docs, video and DevRel for devtools

About

Blog companion: run a vision language model on a Jozu Rapid Inference Container and query it with an image.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages