Text Generation
Transformers
Safetensors
MLX
English
qwen2
code
codeqwen
chat
qwen
qwen-coder
conversational
text-generation-inference
Instructions to use TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX") model = AutoModelForCausalLM.from_pretrained("TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - MLX
How to use TheBlueObserver/Qwen2.5-Coder-32B-Instruct-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("TheBlueObserver/Qwen2.5-Coder-32B-Instruct-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
- vLLM
How to use TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX
- SGLang
How to use TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Pi
How to use TheBlueObserver/Qwen2.5-Coder-32B-Instruct-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 "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX"
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": "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use TheBlueObserver/Qwen2.5-Coder-32B-Instruct-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 "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Docker Model Runner
How to use TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX with Docker Model Runner:
docker model run hf.co/TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX
- Hermes Agent
How to use TheBlueObserver/Qwen2.5-Coder-32B-Instruct-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 "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-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 TheBlueObserver/Qwen2.5-Coder-32B-Instruct-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use TheBlueObserver/Qwen2.5-Coder-32B-Instruct-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 "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-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 "TheBlueObserver/Qwen2.5-Coder-32B-Instruct-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"
Commit History
-
086a8df87c2a34ec7d32bcc5b517cd7ed9df9bbe4ef7cec9e2e65902d068448d
Verified signature91d0754 -
fcce49ae24771e651c591a9cf6c2e0c44dc349668ba0258b78481b9b23461fa8
Verified signaturecfb7f6f -
5b7018c55e877195983a72220df6d6afc769c1ad066fb2e2e15bb6db02ad7ac1
Verified signature22419b4 -
a308e25f37f3ced190b28ce06e8339dcf529248d5d3ecb0f71627dbb1ebbe816
Verified signaturee80181f -
e4fb1c38ad503c8a0f4cb81aad95d3829b336ee5e7175f65ae16fd2d570febfd
Verified signature692376e -
be928207faa6182d613dd5d971714134991afee044dc50920c7681d70e25d777
Verified signature71774ec -
d8a8f10b760fcea08f77ae18cf7d21c94e1788dce32a768c5eb447103a023850
Verified signature23f2bdc -
492b746b14ed2e00365118d1b7068f1beba7d0ab266aafff93fbc7b147776f98
Verified signature50c0469 -
c2b7e4ef1778937c2fe576e2a76732a732e5b7f7c58866ea3bdd5ff38832ddcb
Verified signature9e13b63 -
3a912681e01043628ce70bfc1b65ce388fb289de1a48e761d8b4e866c46e32cf
Verified signature7cfa4bc -
bcc0371cd731ca0336bc41c04edd683411e6b4fbff9535b101e4bf48c9e9715b
Verified signatureaea4c70 -
75fec5ebced1ada4148936fe0d92b4a6d683ff58ece2d315faff353586e78e0a
Verified signatureab8ad14 -
f90dd02bd5ce01f9d27e14f3f94333a03bb1e2c5c4c597dea423fa1cd27ac7c7
Verified signaturea0217f6 -
dc100dd45d42711059f7ff464d5472c8ca9e3c00ca5d6c4f11d2153ef07b5ae0
Verified signature28d5b9f -
initial commit
Verified signature7a49cf7