A Jupyter notebook that pulls a quantized GGUF model from Hugging Face, packages it as a ModelKit with KitOps, pushes and signs it on Jozu Hub, then pulls it for local use in Unsloth Studio.
Jozu docs · Jozu · KitOps · Unsloth · More examples · studio1hq.com
This repository accompanies the blog post "How to Use ModelKits with Unsloth Studio". It holds one Jupyter notebook, main.ipynb, with the commands and examples from the article.
The notebook walks the full path: install the tooling, download a quantized GGUF model from Hugging Face, package it as a KitOps ModelKit, push it to Jozu Hub, sign it with Cosign, then pull the ModelKit and run it locally in Unsloth Studio. The goal is reproducibility: follow the blog and the notebook side by side and you end up with the same result.
- Tooling setup: Installs Homebrew, the KitOps CLI, the
kitopsandhuggingface_hubPython packages, and Unsloth Studio. - Model download: Fetches
unsloth/Qwen3.5-9B-GGUF(Qwen3.5-9B-Q4_0.gguf) from Hugging Face. - Kitfile in Python: Builds the Kitfile (package and model metadata) with the
kitopsPython library. - Push to Jozu Hub: Uses
ModelKitManagerto package and push the ModelKit tojozu.ml. - Signing: Generates a Cosign key pair and signs the ModelKit in the registry.
- Pull and unpack: Pulls the ModelKit on any machine with
kit pullandkit unpack.
| Layer | Tool |
|---|---|
| Packaging | KitOps ModelKit and Kitfile |
| Registry | Jozu Hub (jozu.ml) |
| Signing | Cosign |
| Model runtime | Unsloth Studio |
| Model source | Hugging Face GGUF |
| Notebook | Jupyter, Python 3.11+ |
- Python 3.11 or later
- Jupyter (
pip install notebook) - Linux or macOS (the notebook installs Homebrew and KitOps through it)
- A free Jozu Hub account
git clone https://github.com/Studio1HQ/modelkit_with_unsloth.git
cd modelkit_with_unsloth
pip install kitops huggingface_hubThe notebook does not read environment variables. It asks you to fill in values inline:
| Value | Description |
|---|---|
| Jozu Hub email and password | Used by kit login jozu.ml, UserCredentials(...) and cosign login. |
modelkit_tag |
Tag in the form jozu.ml/<email-prefix>/qwen3.5_9b_4bit_gguf:latest, all lowercase. |
Replace the placeholders (email-prefix-here, full-email-here, password-here) before running. Do not commit real credentials.
jupyter notebook main.ipynbRun the cells in order. Cells that call the terminal (kit login, Cosign, kit pull) are commented out so you can run them in a shell.
- Install Homebrew and the build dependencies for your distro, then
brew install kitopsand check withkit version. - Install Unsloth Studio, then start it with
unsloth studio -H 127.0.0.1 -p 8888and openhttp://127.0.0.1:8888. - Log in with
kit login jozu.ml. - Download the quantized GGUF into
./Qwen3.5-9B-Q4withhf_hub_download. - Create a
Kitfileobject: manifest version, package name and version, and the model path and license (Apache 2.0). - Push the ModelKit to Jozu Hub with
ModelKitManager. - Install Cosign, run
cosign login jozu.ml,cosign generate-key-pair, thencosign sign --key cosign.key <tag>. - On the target machine,
kit pull <tag>andkit unpack <tag> -d ./, then load the model in Unsloth Studio.
- Jozu docs: Jozu Hub and ModelKit registry documentation.
- KitOps docs: ModelKit, Kitfile and the
kitCLI. - Unsloth docs: Unsloth Studio and fine-tuning guides.
Built by Studio1, the technical content and DevRel partner for devtool teams. Made with Jozu.
Browse more open-source examples at github.com/Studio1HQ.
studio1hq.com · Technical content, docs, video and DevRel for devtools