Instructions to use baa-ai/Qwen3.6-27B-RAM-16GB-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use baa-ai/Qwen3.6-27B-RAM-16GB-MLX 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("baa-ai/Qwen3.6-27B-RAM-16GB-MLX") 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 baa-ai/Qwen3.6-27B-RAM-16GB-MLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "baa-ai/Qwen3.6-27B-RAM-16GB-MLX"
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": "baa-ai/Qwen3.6-27B-RAM-16GB-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use baa-ai/Qwen3.6-27B-RAM-16GB-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "baa-ai/Qwen3.6-27B-RAM-16GB-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "baa-ai/Qwen3.6-27B-RAM-16GB-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "baa-ai/Qwen3.6-27B-RAM-16GB-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use baa-ai/Qwen3.6-27B-RAM-16GB-MLX 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 "baa-ai/Qwen3.6-27B-RAM-16GB-MLX"
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 baa-ai/Qwen3.6-27B-RAM-16GB-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use baa-ai/Qwen3.6-27B-RAM-16GB-MLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "baa-ai/Qwen3.6-27B-RAM-16GB-MLX"
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 "baa-ai/Qwen3.6-27B-RAM-16GB-MLX" \ --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"
Qwen3.6-27B — 16GB (MLX)
Mixed-precision MLX build of Qwen/Qwen3.6-27B, prepared by baa.ai.
Built at the predicted local (capability) operating point.
Metrics
| Metric | Value |
|---|---|
| In-memory footprint | ~16 GiB |
| Size on disk | 18.2 GB |
| Average bits per weight | 4.23 |
| Group size | 64 |
| Framework | MLX (Apple Silicon) |
| Source | Qwen/Qwen3.6-27B (BF16, 55.6 GB) |
Benchmarks
Reported under both decoding regimes following our internal evaluation policy that decoding choice can materially shift per-task accuracy on quantized checkpoints (see Notes).
| Benchmark (greedy decode) | Score |
|---|---|
| WikiText-2 PPL (128×2048, seed 42) | 5.221 ± 0.031 |
| MMLU-Pro 140Q calibrated | 52.1% |
| GPQA Diamond 198Q overall | 37.9% |
| GPQA Diamond — Biology | 47.4% |
| GPQA Diamond — Chemistry | 35.5% |
| GPQA Diamond — Physics | 38.4% |
| Benchmark (T=0.3, top_p=0.95, seed=123) | Score |
|---|---|
| GPQA Diamond 198Q overall | 43.4% |
| GPQA Diamond — Biology | 42.1% |
| GPQA Diamond — Chemistry | 33.3% |
| GPQA Diamond — Physics | 54.7% |
Notes on decoding regime
Sampled decoding adds ~5 pp to overall GPQA accuracy on this checkpoint and reorders per-subject performance versus greedy. Specifically, the per-subject ranking between this 16 GB build and the companion 28 GB build inverts under T=0.3 sampling on Biology (greedy: 16 GB wins by 16 pp; sampled: 28 GB wins by 11 pp). Both checkpoints are public for two reasons: (a) the inversion is an interesting empirical demonstration that quantization × decoding produce coupled effects we are still characterising, and (b) Physics accuracy on this 16 GB build under sampled decoding (54.7%) exceeds the 28 GB build under either regime, so this checkpoint genuinely wins on at least one task in at least one regime. We recommend evaluating against your specific deployment decoding configuration before committing to a variant.
Recommended inference settings
sampler_params = {
"temperature": 1.0,
"top_p": 0.95,
"top_k": 40,
"repetition_penalty": 1.1,
"max_tokens": 8192,
}
Usage
from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler, make_logits_processors
model, tokenizer = load("baa-ai/Qwen3.6-27B-RAM-16GB-MLX")
sampler = make_sampler(temp=1.0, top_p=0.95, top_k=40)
logits_processors = make_logits_processors(repetition_penalty=1.1)
prompt = tokenizer.apply_chat_template(
[{"role": "user", "content": "Write a Python function that reverses a string."}],
tokenize=False,
add_generation_prompt=True,
)
response = generate(model, tokenizer, prompt=prompt, max_tokens=8192,
sampler=sampler, logits_processors=logits_processors)
print(response)
Hardware
- Apple Silicon Mac with ~21 GB unified memory recommended.
Variants
| Variant | Size | Link |
|---|---|---|
| 28 GB | 27.8 GB | baa-ai/Qwen3.6-27B-RAM-28GB-MLX |
- Downloads last month
- 163
4-bit
Model tree for baa-ai/Qwen3.6-27B-RAM-16GB-MLX
Base model
Qwen/Qwen3.6-27B