Requirements
- macOS 13+
- Python 3.10+
- Apple Silicon (M1/M2/M3) recommended
Install
Quick Test
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Setup NexaAI Python SDK on macOS with MLX backend and Apple Silicon optimization.
python3 -m venv .venv
source .venv/bin/activate
pip install 'nexaai[mlx]'
from nexaai import LLM, ModelConfig
llm = LLM.from_(model="NexaAI/Qwen3-1.7B-4bit-MLX", config=ModelConfig())
for t in llm.generate_stream("Hello", None):
print(t, end="")