Instructions to use aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ 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("aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ") 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 aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ 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 "aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ"
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 aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ
Run Hermes
hermes
- OpenClaw new
How to use aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ"
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 "aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ" \ --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"
- MLX LM
How to use aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ", "messages": [ {"role": "user", "content": "Hello"} ] }'
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 aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQRun Hermes
hermesAlgocean-Qwen3.6-35B-A3B-mlx-OptiQ
Quality-first OptiQ MLX release of the Algocean fine-tune derived from Qwen/Qwen3.6-35B-A3B.
The source model for this quantized release is aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx, which was produced by merging the best LoRA checkpoint from the Algocean SFT run. This artifact keeps the same text-focused MLX scope as the merged MLX release: the current mlx-lm Qwen3.5-MoE conversion stores language-model weights and omits model.visual.
Use
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ")
messages = [{"role": "user", "content": "Create a concise LangGraph plan for a repo refactor."}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
response = generate(model, tokenizer, prompt=prompt, max_tokens=512, verbose=True)
Artifact
| item | value |
|---|---|
| Format | MLX safetensors |
| Quantization | OptiQ mixed precision |
| Shards | 7 |
| Weight size in MLX index | 36,036,335,872 bytes |
| Parameters in MLX index | 34,660,608,768 |
| Converter output size | 34,367.2 MB |
| Visual weights | omitted |
| Integrity file | SHA256SUMS |
OptiQ Settings
| key | value |
|---|---|
| Method | optiq_mixed_precision |
| Source artifact | aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx |
| Target BPW | 4.5 |
| Achieved BPW | 4.733167 |
| Candidate bits | 4, 8 |
| Allocation | 297 tensors at 4-bit, 94 tensors at 8-bit |
| Reference | uniform_4bit |
| Group size | 64 |
| Calibration source | aisamdasu/algocean-fable5-traces train split |
| Calibration mix | 512 train records sampled before eval separation |
| Exact calibration | 24 samples, 48 calibration sequences, seq_len 512 |
| Evaluated tensors | 391 |
| Skipped sensitivity entries | 120 entries without BF16 source match |
This is the quality-first OptiQ export from this run. Instead of publishing a smaller static or uniform 4-bit artifact, the exact OptiQ pass measured layer sensitivity on the FABLE/LangGraph calibration mix and kept the more sensitive tensors at 8-bit. The result is larger than a uniform 4-bit model, but preserves more capacity in the layers that measured as most sensitive for this calibration workload.
Training
| key | value |
|---|---|
| Base model | Qwen/Qwen3.6-35B-A3B |
| Dataset | aisamdasu/algocean-fable5-traces |
| Train / eval rows | 30,265 / 512 |
| Selected source rows | Crownelius 26,938 + kelexine 3,839 |
| Dedup skipped | 1,721 |
| Fine-tune method | LoRA SFT |
| LoRA target modules | q_proj, v_proj |
| LoRA rank / alpha / dropout | 16 / 32 / 0.0 |
| Max sequence length | 16,384 |
| Optimizer / schedule | AdamW fused / cosine |
| Learning rate / warmup | 1e-5 / 0.03 |
| Batch / grad accumulation | 1 / 1 |
| Max steps | 4,000 |
| Eval / save interval | 200 / 200 |
| GPU | Modal B200 x1 |
| Runtime | 7,934.71 sec |
Checkpoint Selection
The published weights use checkpoint 3600, not the final step 4000.
| step | eval loss | eval PPL | note |
|---|---|---|---|
| 200 | 1.300712 | 3.671911 | first eval |
| 3200 | 1.067631 | 2.908480 | near plateau |
| 3400 | 1.067996 | 2.909543 | regression |
| 3600 | 1.066911 | 2.906388 | selected best |
| 3800 | 1.067495 | 2.908084 | worse than best |
| 4000 | 1.067005 | 2.906661 | final, slightly worse |
Best checkpoint rationale:
3600has the lowest validation loss:1.066911.- Final step
4000is very close but still higher:+0.000094eval loss. - The curve flattened after
3200, so selecting3600keeps the best validation point without chasing extra train loss.
Metrics
| metric | value |
|---|---|
| Best eval loss | 1.066911 |
| Best eval perplexity | 2.906388 |
| Final eval loss | 1.067005 |
| Final eval perplexity | 2.906661 |
| Trainer average train loss | 0.494604 |
| Last logged train loss | 0.996137 |
| Train samples/sec | 0.504 |
| Train steps/sec | 0.504 |
| Eval samples/sec at final eval | 2.088 |
Comparison Notes
This OptiQ artifact is selected for fidelity under the available local export options: best validation checkpoint first, then exact OptiQ sensitivity allocation instead of static quantization. It is not claiming a public benchmark win over the base model, the merged MLX model, or the upstream OptiQ model; that would require the same held-out benchmark harness across all models. The comparison recorded here is based on the completed training run's validation curve and the OptiQ allocation metadata.
Intended Use
This model is intended for local MLX inference experiments around agentic coding, tool-use traces, and LangGraph-style planning. It is not a general safety-tuned assistant release.
- Downloads last month
- 129
4-bit
Model tree for aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ
Base model
Qwen/Qwen3.6-35B-A3B


Start the MLX server
# Install MLX LM: uv tool install mlx-lm# Start a local OpenAI-compatible server: mlx_lm.server --model "aisamdasu/Algocean-Qwen3.6-35B-A3B-mlx-OptiQ"