MLX

Qwen2 7B Instruct 4bit

mlx-community

qwen

Qwen is an open-source model from Alibaba

Model info

Model

Qwen2 7B Instruct 4bit

Author

mlx-community

Arch

qwen

Parameters

7B

Format

safetensors

Size on disk

about 4.30 GB

Download and run Qwen2 7B Instruct 4bit

Open in LM Studio to view download options

Download qwen2-7b from the terminal

Download the model using lms — LM Studio's developer CLI.

lms get qwen2-7b

Call qwen2-7b from your code

curl http://localhost:1234/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen2-7b",
    "messages": [
      { "role": "system", "content": "Always answer in rhymes." },
      { "role": "user", "content": "Introduce yourself." }
    ],
    "temperature": 0.7,
    "max_tokens": -1,
    "stream": true
  }'

Next Steps: Build! 🔨

Learn more


lmmy