How to use from
Pi
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "masahiroid/UserRepGen-4B-4bit-mlx"
Configure the model in Pi
# Install Pi:
npm install -g @earendil-works/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "mlx-lm": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "masahiroid/UserRepGen-4B-4bit-mlx"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

UserRepGen-4B-4bit-mlx

microsoft/UserRepGen-4B ใ‚’ Apple Silicon ๅ‘ใ‘ใซ MLX ใฎ 4bit(group size 64)ใธ้‡ๅญๅŒ–ใ—ใŸ้žๅ…ฌๅผใฎๅค‰ๆ›็‰ˆใงใ™ใ€‚M2 16GB ใ‚ฏใƒฉใ‚นใฎ Mac(GPU ใซไฝฟใˆใ‚‹ใƒกใƒขใƒช็ด„ 8GB)ใงๅ‹•ใใ‚ตใ‚คใ‚บใฎใƒขใƒ‡ใƒซใ‚’ๅฏพ่ฑกใซใ—ใฆใ„ใพใ™ใ€‚ใƒ™ใƒผใ‚นใƒขใƒ‡ใƒซใฎ้–‹็™บใƒปๅ…ฌ้–‹่€…ใฎ็š†ๆง˜ใซๆ„Ÿ่ฌใ„ใŸใ—ใพใ™ใ€‚

An unofficial 4-bit MLX conversion of microsoft/UserRepGen-4B for Apple Silicon Macs (sized for 16GB unified memory). All credit goes to the original authors.

  • Parameters: 4.54B / License: mit (same as the base model)

Usage

pip install -U mlx-lm
mlx_lm.generate --model masahiroid/UserRepGen-4B-4bit-mlx --prompt "ๆ—ฅๆœฌใฎ้ฆ–้ƒฝใฏใฉใ“ใงใ™ใ‹๏ผŸ" --max-tokens 256
from mlx_lm import load, generate

model, tokenizer = load("masahiroid/UserRepGen-4B-4bit-mlx")
messages = [{"role": "user", "content": "ๆ—ฅๆœฌใฎ้ฆ–้ƒฝใฏใฉใ“ใงใ™ใ‹๏ผŸ"}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
print(generate(model, tokenizer, prompt=prompt, max_tokens=256))

Security / ใ‚ปใ‚ญใƒฅใƒชใƒ†ใ‚ฃ

ๅ…ฌ้–‹ๅ‰ใซ model-audit-lite ใงๆคœๆŸปใ—ใฆใ„ใพใ™ใ€‚

  • ใƒ•ใ‚กใ‚คใƒซๆคœๆŸป(pickle ๅฝขๅผใฎ้‡ใฟใƒป็‹ฌ่‡ชใ‚ณใƒผใƒ‰ใฎๆœ‰็„กใ€SHA256)
  • ๅค‰ๆ›ๅ‰ๅพŒใฎใƒใƒฃใƒƒใƒˆใƒ†ใƒณใƒ—ใƒฌใƒผใƒˆใฎไธ€่‡ด
  • ๆ—ฅๆœฌ่ชžใฎๅฎ‰ๅ…จๆ€งใƒ—ใƒญใƒผใƒ–(ๅค‰ๆ›ๅพŒใƒขใƒ‡ใƒซ)

็ตๆžœใฏ SECURITY.md ใจ audit/report.md ใ‚’ๅ‚็…งใ—ใฆใใ ใ•ใ„ใ€‚

Downloads last month
28
Safetensors
Model size
4B params
Tensor type
U32
ยท
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for masahiroid/UserRepGen-4B-4bit-mlx

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