How to use from
MLX LM
Generate or start a chat session
# Install MLX LM
uv tool install mlx-lm
# Interactive chat REPL
mlx_lm.chat --model "Irfanuruchi/Qwen3-4B-Computer-Science-MLX-8bit"
Run an OpenAI-compatible server
# Install MLX LM
uv tool install mlx-lm
# Start the server
mlx_lm.server --model "Irfanuruchi/Qwen3-4B-Computer-Science-MLX-8bit"
# Calling the OpenAI-compatible server with curl
curl -X POST "http://localhost:8000/v1/chat/completions" \
   -H "Content-Type: application/json" \
   --data '{
     "model": "Irfanuruchi/Qwen3-4B-Computer-Science-MLX-8bit",
     "messages": [
       {"role": "user", "content": "Hello"}
     ]
   }'
Quick Links

Qwen3-4B-Computer-Science-MLX-8bit

An Apple MLX 8-bit quantized version of Qwen3-4B-Computer-Science, optimized for efficient local inference on Apple Silicon Macs.

This repository provides an MLX-compatible model for fast inference while maintaining excellent quality with significantly reduced memory usage.

Base Model

  • Base repository: Irfanuruchi/Qwen3-4B-Computer-Science
  • Architecture: Qwen3-4B
  • Format: MLX
  • Quantization: 8-bit
  • Group Size: 64

Features

  • Optimized for Apple Silicon (M-series)
  • Fast local inference using MLX
  • Reduced memory footprint
  • Compatible with mlx-lm

Installation

python3 -m venv .venv
source .venv/bin/activate

pip install mlx mlx-lm

Usage

mlx_lm.generate \
  --model Irfanuruchi/Qwen3-4B-Computer-Science-MLX-8bit \
  --prompt "Write a Python function that validates an IPv4 address." \
  --max-tokens 256

License

This model is released under the Apache 2.0 License.

The original Qwen3 model is licensed under Apache 2.0. This repository contains an MLX quantized version of the original weights.

Acknowledgements

  • Alibaba Qwen Team
  • Apple MLX
  • Hugging Face
Downloads last month
19
Safetensors
Model size
4B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Irfanuruchi/Qwen3-4B-Computer-Science-MLX-8bit

Finetuned
Qwen/Qwen3-4B
Quantized
(4)
this model