Skip to content

About

Notebook: package a quantized model as a KitOps ModelKit, sign it on Jozu Hub, run it in Unsloth Studio.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

ModelKits with Unsloth Studio on Jozu Hub: Package a GGUF model as a ModelKit and run it in Unsloth Studio

ModelKits with Unsloth Studio on Jozu Hub

Package a GGUF model as a ModelKit and run it in Unsloth Studio

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.


Built by Studio1 Built with Jozu

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


Overview

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.

Features

  • Tooling setup: Installs Homebrew, the KitOps CLI, the kitops and huggingface_hub Python 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 kitops Python library.
  • Push to Jozu Hub: Uses ModelKitManager to package and push the ModelKit to jozu.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 pull and kit unpack.

Tech stack

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+

Getting started

Prerequisites

  • 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

Installation

git clone https://github.com/Studio1HQ/modelkit_with_unsloth.git
cd modelkit_with_unsloth
pip install kitops huggingface_hub

Environment variables

The 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.

Run

jupyter notebook main.ipynb

Run 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.

How it works

  1. Install Homebrew and the build dependencies for your distro, then brew install kitops and check with kit version.
  2. Install Unsloth Studio, then start it with unsloth studio -H 127.0.0.1 -p 8888 and open http://127.0.0.1:8888.
  3. Log in with kit login jozu.ml.
  4. Download the quantized GGUF into ./Qwen3.5-9B-Q4 with hf_hub_download.
  5. Create a Kitfile object: manifest version, package name and version, and the model path and license (Apache 2.0).
  6. Push the ModelKit to Jozu Hub with ModelKitManager.
  7. Install Cosign, run cosign login jozu.ml, cosign generate-key-pair, then cosign sign --key cosign.key <tag>.
  8. On the target machine, kit pull <tag> and kit unpack <tag> -d ./, then load the model in Unsloth Studio.

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

Notebook: package a quantized model as a KitOps ModelKit, sign it on Jozu Hub, run it in Unsloth Studio.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages