Instructions to use Aminlight/Qwen-AgentWorld-35B-A3B-4bit-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Aminlight/Qwen-AgentWorld-35B-A3B-4bit-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("Aminlight/Qwen-AgentWorld-35B-A3B-4bit-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 Aminlight/Qwen-AgentWorld-35B-A3B-4bit-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 "Aminlight/Qwen-AgentWorld-35B-A3B-4bit-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": "Aminlight/Qwen-AgentWorld-35B-A3B-4bit-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use Aminlight/Qwen-AgentWorld-35B-A3B-4bit-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 "Aminlight/Qwen-AgentWorld-35B-A3B-4bit-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 "Aminlight/Qwen-AgentWorld-35B-A3B-4bit-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"
- MLX LM
How to use Aminlight/Qwen-AgentWorld-35B-A3B-4bit-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 "Aminlight/Qwen-AgentWorld-35B-A3B-4bit-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Aminlight/Qwen-AgentWorld-35B-A3B-4bit-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Aminlight/Qwen-AgentWorld-35B-A3B-4bit-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use Aminlight/Qwen-AgentWorld-35B-A3B-4bit-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 "Aminlight/Qwen-AgentWorld-35B-A3B-4bit-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 Aminlight/Qwen-AgentWorld-35B-A3B-4bit-MLX
Run Hermes
hermes
Qwen-AgentWorld-35B-A3B Uniform 4-bit MLX
This repository contains an MLX-compatible uniform 4-bit quantization of Qwen/Qwen-AgentWorld-35B-A3B.
This is a quantized conversion of the original model, not a fine-tune.
Model Details
Base model:
Qwen/Qwen-AgentWorld-35B-A3BBase model type: Language World Model / causal language model
Total parameters: 35B
Activated parameters: 3B
Context length: 262,144 tokens
Quantization format: MLX
Quantization method: uniform 4-bit
Reference dtype during conversion: bfloat16
Converter-reported bits per weight: 4.503
Output model size: 18,605.3 MB
Quantization Summary
This model was produced as the uniform_4bit output during the MLX conversion process.
The relevant conversion output was:
Converting Qwen/Qwen-AgentWorld-35B-A3B → optiq_output/Qwen-AgentWorld-35B-A3B-OptiQ-6bpw-MLX/uniform_4bit
Quantization: uniform 4-bit
[INFO] Using dtype: bfloat16
[INFO] Quantizing
[INFO] Quantized model with 4.503 bits per weight.
Output model size: 18605.3 MB
Unlike the OptiQ mixed-precision version, this variant uses uniform 4-bit quantization rather than a per-layer mixed 4-bit / 8-bit allocation.
Usage
Install MLX LM:
pip install -U mlx-lm
Run generation:
python -m mlx_lm.generate \
--model YOUR_USERNAME/Qwen-AgentWorld-35B-A3B-Uniform-4bit-MLX \
--prompt "You are a language world model simulating a Linux terminal environment. Given the user's command, predict the terminal output.\n\nAction: execute_bash\nCommand: ls -la"
Python example:
from mlx_lm import load, generate
model, tokenizer = load("YOUR_USERNAME/Qwen-AgentWorld-35B-A3B-Uniform-4bit-MLX")
prompt = """You are a language world model simulating a Linux terminal environment.
Given the user's command, predict the terminal output.
Action: execute_bash
Command: ls -la
"""
response = generate(
model,
tokenizer,
prompt=prompt,
max_tokens=2048,
temp=0.6,
verbose=True,
)
print(response)
Replace YOUR_USERNAME/Qwen-AgentWorld-35B-A3B-Uniform-4bit-MLX with the actual Hugging Face repository path.
Intended Use
This model is intended for local MLX inference and experimentation with agentic environment simulation. Example use cases include:
local Apple Silicon inference
agentic workflow prototyping
terminal, tool-use, and environment-simulation experiments
lightweight local testing compared with larger precision variants
research and development with language world models
Limitations
This is a uniform 4-bit quantized version of the base model. It is expected to be smaller than the mixed-precision OptiQ version, but may show a larger quality drop compared with the original bfloat16 checkpoint or the OptiQ mixed-precision quantization.
Quantization may affect:
factual accuracy
reasoning consistency
long-context behavior
tool-use reliability
environment-simulation fidelity
code and terminal-output prediction quality
No independent benchmark evaluation of this quantized checkpoint is included. Users should evaluate it on their own tasks before relying on it in production or high-stakes settings.
Safety
This model inherits the safety profile and limitations of the original Qwen/Qwen-AgentWorld-35B-A3B model. Quantization does not add alignment, safety training, or new refusal behavior.
Do not use this model for high-stakes decisions without additional evaluation, monitoring, and human oversight.
License
This quantized model is released under the same license as the base model: Apache 2.0.
Please also consult the original model repository for authoritative license and usage details:
https://huggingface.co/Qwen/Qwen-AgentWorld-35B-A3B
Acknowledgements
Base model:
Qwen/Qwen-AgentWorld-35B-A3BOriginal authors: Qwen
Runtime format: MLX
Quantization: uniform 4-bit
- Downloads last month
- 201
4-bit
Model tree for Aminlight/Qwen-AgentWorld-35B-A3B-4bit-MLX
Base model
Qwen/Qwen3.5-35B-A3B-Base