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 "AlphaOxO/Maincoder-1B-8bits-mlx"
Run an OpenAI-compatible server
# Install MLX LM
uv tool install mlx-lm
# Start the server
mlx_lm.server --model "AlphaOxO/Maincoder-1B-8bits-mlx"
# Calling the OpenAI-compatible server with curl
curl -X POST "http://localhost:8080/v1/chat/completions" \
   -H "Content-Type: application/json" \
   --data '{
     "model": "AlphaOxO/Maincoder-1B-8bits-mlx",
     "messages": [
       {"role": "user", "content": "Hello"}
     ]
   }'
Quick Links

Maincoder-1B โ€” MLX 8bits

Quantized to 8bits format.

Converted from Maincode/Maincoder-1B using mlx-lm.

Requirements

The Maincoder model type is support in my mlx-lm fork(AlphaKure/mlx-lm).

Update at: 2026/09/09

pip install git+https://github.com/AlphaKure/mlx-lm.git@19ed84b1e3333bc9c320109b15dec38fe0784d29

Use

  • use --extra-eos-token '<|im_end|>' to avoid loop response
mlx_lm.generate --model AlphaOxO/Maincoder-1B-8bits-mlx --prompt "def insert_sort(nums: list[int]):" --max-tokens 2048 --extra-eos-token '<|im_end|>'
Downloads last month
34
Safetensors
Model size
1B 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 AlphaOxO/Maincoder-1B-8bits-mlx

Quantized
(7)
this model

Collection including AlphaOxO/Maincoder-1B-8bits-mlx