Instructions to use monkiey/StarSupernova with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use monkiey/StarSupernova with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("monkiey/StarSupernova") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Unsloth Desktop
- Pi
How to use monkiey/StarSupernova with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "monkiey/StarSupernova"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "monkiey/StarSupernova" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use monkiey/StarSupernova with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "monkiey/StarSupernova"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "monkiey/StarSupernova" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "monkiey/StarSupernova", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use monkiey/StarSupernova with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "monkiey/StarSupernova"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default monkiey/StarSupernova
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use monkiey/StarSupernova with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "monkiey/StarSupernova"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "monkiey/StarSupernova" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Star Supernova: Gemma-4 MoE (12 Experts, Sparse Top-4 Routing, 4-bit)
Star Supernova is a high-capacity, sparse Mixture-of-Experts (MoE) model built on Gemma-4 with 12 routed experts and a shared dense feed-forward network. It dynamically activates Top-4 experts per token, expanding total model capacity to ~13.47 Billion parameters while maintaining high inference speed and zero swap thrashing on 16 GB Apple Silicon Macs.
Quantized to 4-bit affine precision, it runs natively on Apple Silicon Metal GPU via MLX with a memory footprint of only ~8.7 GB VRAM, leaving >3.4 GB of free GPU headroom under macOS's 12.1 GB Metal limit.
Architecture & Specifications
| Feature | Specification |
|---|---|
| Model Name | Star Supernova |
| Base Architecture | Gemma-4 (35 Layers, Hidden Dim 1536) |
| Total Parameters | ~13.47 Billion |
| Active Parameters / Token | ~5.54 Billion (41.1% active / 58.9% sparse) |
| Routing Mechanism | Sparse Top-4 Routing across 12 Experts + 1 Shared Dense MLP |
| Quantization | 4-bit affine quantization (group_size=64, routers in 8-bit) |
| Memory Footprint | ~8.7 GB VRAM (Leaves >3.4 GB free on 16 GB Macs) |
| Inference Framework | MLX / Unsloth Studio / Apple Silicon Metal GPU |
| Context Length | 131,072 tokens |
Key Features
Massive Capacity, Compact Footprint:
- Total expert parameter capacity expanded from 4 to 12 experts.
- Operates in ~8.7 GB of Metal VRAM, allowing the entire model and KV cache to run purely in physical RAM without relying on macOS SSD virtual swap.
Dynamic Top-4 Sparse Routing:
- Each token routes through the top 4 most specialized experts in each layer in addition to the shared base MLP.
- High parameter density and expressive specialization across math, logic, creative writing, and systems engineering.
Native CoT Reasoning:
- Native
<|channel>thoughtChain-of-Thought reasoning support.
- Native
Quickstart with MLX
Installation
pip install mlx-lm
Generation
from mlx_lm import load, generate
model, tokenizer = load("monkiey/StarSupernova")
prompt = "<start_of_turn>user\nExplain how sparse Mixture-of-Experts routing optimizes memory and throughput.<end_of_turn>\n<start_of_turn>model\n"
response = generate(
model,
tokenizer,
prompt=prompt,
max_tokens=512,
verbose=True
)
print(response)
Deployment in Unsloth Studio
To use Star Supernova in Unsloth Studio:
- Clone or download this repository into your Unsloth Studio outputs directory:
git clone https://huggingface.co/monkiey/StarSupernova ~/.unsloth/studio/outputs/Star_Supernova - Open Unsloth Studio and select Star Supernova from the model dropdown.
- Recommended inference settings:
- Temperature:
0.3 - Top-P:
0.9 - Repetition Penalty:
1.15 - Max Tokens:
17280
- Temperature:
License
Apache 2.0
- Downloads last month
- -
4-bit
Model tree for monkiey/StarSupernova
Base model
google/gemma-4-E2B