Instructions to use masahiroid/UserRepGen-4B-4bit-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use masahiroid/UserRepGen-4B-4bit-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("masahiroid/UserRepGen-4B-4bit-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use masahiroid/UserRepGen-4B-4bit-mlx with 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
- MLX LM
How to use masahiroid/UserRepGen-4B-4bit-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "masahiroid/UserRepGen-4B-4bit-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "masahiroid/UserRepGen-4B-4bit-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "masahiroid/UserRepGen-4B-4bit-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use masahiroid/UserRepGen-4B-4bit-mlx with Hermes Agent:
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 Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default masahiroid/UserRepGen-4B-4bit-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use masahiroid/UserRepGen-4B-4bit-mlx with OpenClaw:
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 OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "masahiroid/UserRepGen-4B-4bit-mlx" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download audit/bom.json from masahiroid/UserRepGen-4B-4bit-mlx: direct link, hf CLI and curl.
- Browser
- Download file 4.93 kB
-
https://huggingface.co/masahiroid/UserRepGen-4B-4bit-mlx/resolve/main/audit/bom.json
- Command line
-
hf download hf://masahiroid/UserRepGen-4B-4bit-mlx/audit/bom.json
-
curl -L -o bom.json https://huggingface.co/masahiroid/UserRepGen-4B-4bit-mlx/resolve/main/audit/bom.json
4.93 kB
| { | |
| "bomFormat": "CycloneDX", | |
| "specVersion": "1.6", | |
| "serialNumber": "urn:uuid:3fa0ae39-d832-4030-b7d0-afafa850f1b4", | |
| "version": 1, | |
| "metadata": { | |
| "timestamp": "2026-10-17T18:10:13Z", | |
| "tools": { | |
| "components": [ | |
| { | |
| "type": "application", | |
| "name": "model-audit-lite", | |
| "version": "0.7.0" | |
| } | |
| ] | |
| }, | |
| "component": { | |
| "type": "machine-learning-model", | |
| "bom-ref": "hf:masahiroid/UserRepGen-4B-4bit-mlx@bbc7eb166b2dbfc89a616ac61adfa68af9e2ba5c", | |
| "name": "masahiroid/UserRepGen-4B-4bit-mlx", | |
| "version": "bbc7eb166b2dbfc89a616ac61adfa68af9e2ba5c" | |
| } | |
| }, | |
| "components": [ | |
| { | |
| "type": "machine-learning-model", | |
| "bom-ref": "hf:masahiroid/UserRepGen-4B-4bit-mlx@bbc7eb166b2dbfc89a616ac61adfa68af9e2ba5c", | |
| "name": "masahiroid/UserRepGen-4B-4bit-mlx", | |
| "externalReferences": [ | |
| { | |
| "type": "distribution", | |
| "url": "https://huggingface.co/masahiroid/UserRepGen-4B-4bit-mlx" | |
| } | |
| ], | |
| "version": "bbc7eb166b2dbfc89a616ac61adfa68af9e2ba5c", | |
| "licenses": [ | |
| { | |
| "license": { | |
| "id": "mit" | |
| } | |
| } | |
| ], | |
| "components": [ | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/UserRepGen-4B-4bit-mlx@bbc7eb166b2dbfc89a616ac61adfa68af9e2ba5c#chat_template.jinja", | |
| "name": "chat_template.jinja", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/UserRepGen-4B-4bit-mlx@bbc7eb166b2dbfc89a616ac61adfa68af9e2ba5c#config.json", | |
| "name": "config.json", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "8591d683d8d132234766399897415b9427967c05e77c1c169a40de3e81177e62" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/UserRepGen-4B-4bit-mlx@bbc7eb166b2dbfc89a616ac61adfa68af9e2ba5c#model.safetensors", | |
| "name": "model.safetensors", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "8696704aeac94f11bae9025aa0f0c365969383b8fe6309b147263a5e568204d0" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/UserRepGen-4B-4bit-mlx@bbc7eb166b2dbfc89a616ac61adfa68af9e2ba5c#model.safetensors.index.json", | |
| "name": "model.safetensors.index.json", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "5a3779ecc1a94f395f26612fdc9a491c1884250eda9353d214322717564a69c7" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/UserRepGen-4B-4bit-mlx@bbc7eb166b2dbfc89a616ac61adfa68af9e2ba5c#tokenizer.json", | |
| "name": "tokenizer.json", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/UserRepGen-4B-4bit-mlx@bbc7eb166b2dbfc89a616ac61adfa68af9e2ba5c#tokenizer_config.json", | |
| "name": "tokenizer_config.json", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "95c557768e6b88a7128befc7bfd3c7de50e5d51af9b8b33a9f4dee0e04f99679" | |
| } | |
| ] | |
| } | |
| ], | |
| "pedigree": { | |
| "ancestors": [ | |
| { | |
| "type": "machine-learning-model", | |
| "bom-ref": "hf:microsoft/UserRepGen-4B@bfc905b249365cab00e94ba308f2cea5b23bbc6e", | |
| "name": "microsoft/UserRepGen-4B", | |
| "externalReferences": [ | |
| { | |
| "type": "distribution", | |
| "url": "https://huggingface.co/microsoft/UserRepGen-4B" | |
| } | |
| ], | |
| "version": "bfc905b249365cab00e94ba308f2cea5b23bbc6e" | |
| } | |
| ], | |
| "notes": "Converted/derived from microsoft/UserRepGen-4B. Lineage is declared by the publisher; see properties for checks." | |
| }, | |
| "properties": [ | |
| { | |
| "name": "model-audit-lite:total-files", | |
| "value": "8" | |
| }, | |
| { | |
| "name": "model-audit-lite:risky-pickle-files", | |
| "value": "0" | |
| }, | |
| { | |
| "name": "model-audit-lite:custom-code-files", | |
| "value": "0" | |
| }, | |
| { | |
| "name": "model-audit-lite:formats", | |
| "value": "safetensors,mlx" | |
| }, | |
| { | |
| "name": "model-audit-lite:derived-from", | |
| "value": "microsoft/UserRepGen-4B" | |
| }, | |
| { | |
| "name": "model-audit-lite:chat-template-changed", | |
| "value": "false" | |
| } | |
| ] | |
| } | |
| ] | |
| } |