Instructions to use baa-ai/Qwen3.6-27B-RAM-28GB-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-28GB-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-28GB-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
- LM Studio
- Pi new
How to use baa-ai/Qwen3.6-27B-RAM-28GB-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-28GB-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-28GB-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use baa-ai/Qwen3.6-27B-RAM-28GB-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-28GB-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-28GB-MLX
Run Hermes
hermes
- MLX LM
How to use baa-ai/Qwen3.6-27B-RAM-28GB-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-28GB-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-28GB-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-28GB-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }'
Qwen3.6-27B — 28GB (MLX)
Mixed-precision MLX build of Qwen/Qwen3.6-27B, prepared by baa.ai.
Built at the predicted global (quality max) operating point.
Metrics
| Metric | Value |
|---|---|
| In-memory footprint | ~28 GiB |
| Size on disk | 27.8 GB |
| Average bits per weight | 7.65 |
| 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) | 4.856 ± 0.028 |
| MMLU-Pro 140Q calibrated | 54.3% |
| GPQA Diamond 198Q overall | 37.9% |
| GPQA Diamond — Biology | 31.6% |
| GPQA Diamond — Chemistry | 40.9% |
| GPQA Diamond — Physics | 36.0% |
| Benchmark (T=0.3, top_p=0.95, seed=123) | Score |
|---|---|
| GPQA Diamond 198Q overall | 40.9% |
| GPQA Diamond — Biology | 52.6% |
| GPQA Diamond — Chemistry | 36.6% |
| GPQA Diamond — Physics | 43.0% |
Notes on decoding regime
This 28 GB build's ranking versus the companion 16 GB build flips between greedy and sampled decoding, particularly on Biology (greedy: this build loses by 16 pp; sampled: this build wins by 11 pp). We recommend evaluating against your specific deployment decoding configuration before committing to a variant. Best PPL and best MMLU-Pro under greedy belong to this build; under sampled decoding it is also the strongest on overall GPQA and the strongest on Biology.
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-28GB-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 ~36 GB unified memory recommended.
Variants
| Variant | Size | Link |
|---|---|---|
| 16 GB | 18.2 GB | baa-ai/Qwen3.6-27B-RAM-16GB-MLX |
- Downloads last month
- 1,306
4-bit
Model tree for baa-ai/Qwen3.6-27B-RAM-28GB-MLX
Base model
Qwen/Qwen3.6-27B