Downloads · 30 days
690
100% of all-time downloads
apolloransom/Qwen2.5-Coder-7B-Instruct-MLX
Qwen2.5-Coder-7B-Instruct-MLX is a text generation model from apolloransom. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
This is the MLX-optimized version of Qwen/Qwen2.5-Coder-7B-Instruct. It is ideal for local, privacy-focused coding assistance on Apple Silicon (macOS) using tools like oMLX and the Zed IDE.
Downloads · 30 days
690
100% of all-time downloads
All-time downloads
690
Public
Parameters
7.6B
15.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
This is the MLX-optimized version of Qwen/Qwen2.5-Coder-7B-Instruct. It is ideal for local, privacy-focused coding assistance on Apple Silicon (macOS) using tools like oMLX and the Zed IDE.
This repository is bundled for zero-configuration native loading, meaning the chat templates and tokenizer configs are fully pre-configured to support Zed's tool calling natively over an OpenAI-compatible API.
oMLX provides an extremely fast, tiered-caching inference backend for Apple Silicon and exposes an OpenAI-compatible API that Zed IDE can connect to.
omlx run apolloransom/Qwen2.5-Coder-7B-Instruct-MLX
Note: This starts a local OpenAI-compatible server, typically on port 8000.
Add the following JSON snippet to your Zed settings.json to route the AI assistant to your local oMLX server:
{
"assistant": {
"default_model": {
"provider": "openai",
"model": "apolloransom/Qwen2.5-Coder-7B-Instruct-MLX"
},
"version": "2"
},
"language_models": {
"openai": {
"api_url": "http://localhost:8000/v1"
}
},
"supports_tools": true
}
Once configured, you can use Zed's Agent Panel and Inline Assistant, backed entirely by this local model. Tool calling will work out of the box!
You can also use this model programmatically via the mlx-lm library.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("apolloransom/Qwen2.5-Coder-7B-Instruct-MLX")
prompt = "hello"
if tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_dict=False,
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
For more details on benchmarks, model architecture, and the 32K context window support, please refer to the base model card: Qwen/Qwen2.5-Coder-7B-Instruct.