Text Generation
MLX
Safetensors
qwen3_5_moe
Mixture of Experts
edge-inference
prerouter
lora
ssd-offload
conversational
4-bit precision
Instructions to use Edge0/Edge0-35B-A3B-preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Edge0/Edge0-35B-A3B-preview 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("Edge0/Edge0-35B-A3B-preview") 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
- Pi
How to use Edge0/Edge0-35B-A3B-preview with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Edge0/Edge0-35B-A3B-preview"
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": "Edge0/Edge0-35B-A3B-preview" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use Edge0/Edge0-35B-A3B-preview with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Edge0/Edge0-35B-A3B-preview"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Edge0/Edge0-35B-A3B-preview" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Edge0/Edge0-35B-A3B-preview", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use Edge0/Edge0-35B-A3B-preview 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 "Edge0/Edge0-35B-A3B-preview"
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 Edge0/Edge0-35B-A3B-preview
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Edge0/Edge0-35B-A3B-preview with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Edge0/Edge0-35B-A3B-preview"
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 "Edge0/Edge0-35B-A3B-preview" \ --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"
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -31,9 +31,20 @@ pipeline_tag: text-generation
|
|
| 31 |
**Edge0-35b-a3b** — an 35B MoE LLM that runs at viable speed on portable devices in under **2.9 GiB of active memory** (1/8 of its 23 GB weight footprint),
|
| 32 |
via the [edge0](https://github.com/Edge0-AI/edge0) streaming inference framework.
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
> **Preview status:** this is an early preview release of the edge0
|
| 39 |
> pipeline. The checkpoint ships as int4 quantization plus LoRA and
|
|
@@ -54,12 +65,11 @@ The LoRA and prerouter adapters are co-located with the base checkpoint
|
|
| 54 |
and load automatically — this repository is a complete, ready-to-run
|
| 55 |
model directory for `edge0`.
|
| 56 |
|
| 57 |
-
## Quality
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
(int4 + adapters) relative to the fp16 base model is small: **3.9 points on average** (max 100):
|
| 63 |
|
| 64 |
| Benchmark | edge0-35b (int4) | Qwen3.5-MoE 35B-A3B (fp16) |
|
| 65 |
|---|---:|---:|
|
|
|
|
| 31 |
**Edge0-35b-a3b** — an 35B MoE LLM that runs at viable speed on portable devices in under **2.9 GiB of active memory** (1/8 of its 23 GB weight footprint),
|
| 32 |
via the [edge0](https://github.com/Edge0-AI/edge0) streaming inference framework.
|
| 33 |
|
| 34 |
+
Three mechanisms make this work:
|
| 35 |
+
|
| 36 |
+
- **SSD expert offload**: expert weights are streamed from storage on
|
| 37 |
+
demand — fetched only as routed, so RAM holds just the active
|
| 38 |
+
weights. Peak memory is bounded by the active set, not the
|
| 39 |
+
parameter count.
|
| 40 |
+
- **Prerouter**: a trained head predicts expert routing one step
|
| 41 |
+
ahead, so expert loads overlap the forward pass instead of stalling
|
| 42 |
+
it — **up to +59%** decode throughput; the gain grows with storage
|
| 43 |
+
latency, model size, and routed width *K*.
|
| 44 |
+
- **Recover-LoRA**: the int4 base is frozen and LoRA adapters are
|
| 45 |
+
trained by distillation from the FP teacher, recovering most of the
|
| 46 |
+
quantization loss at 4-bit (see Quality below). Adapters stay
|
| 47 |
+
unmerged: one read-only base serves multiple adapter sets.
|
| 48 |
|
| 49 |
> **Preview status:** this is an early preview release of the edge0
|
| 50 |
> pipeline. The checkpoint ships as int4 quantization plus LoRA and
|
|
|
|
| 65 |
and load automatically — this repository is a complete, ready-to-run
|
| 66 |
model directory for `edge0`.
|
| 67 |
|
| 68 |
+
## Quality (self-evaluation)
|
| 69 |
|
| 70 |
+
Internal self-evaluation of this checkpoint (int4 + adapters) relative to
|
| 71 |
+
the fp16 base model — the loss of the edge0 pipeline is small: **3.9
|
| 72 |
+
points on average** (max 100, all self-run):
|
|
|
|
| 73 |
|
| 74 |
| Benchmark | edge0-35b (int4) | Qwen3.5-MoE 35B-A3B (fp16) |
|
| 75 |
|---|---:|---:|
|