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/report.md from masahiroid/UserRepGen-4B-4bit-mlx: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/masahiroid/UserRepGen-4B-4bit-mlx/resolve/main/audit/report.md
- Command line
-
hf download hf://masahiroid/UserRepGen-4B-4bit-mlx/audit/report.md
-
curl -L -o report.md https://huggingface.co/masahiroid/UserRepGen-4B-4bit-mlx/resolve/main/audit/report.md
1.32 kB
model-audit-lite scan: masahiroid/UserRepGen-4B-4bit-mlx
配布物としての安全性監査
- pickle形式チェック: pickle形式(
.bin/.pt/.pth/.pklなど)は検出されませんでした。 - 同梱コードチェック:
trust_remote_codeが必要なカスタムPythonコードは検出されませんでした。 - チェックサム (SHA256):
a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715 chat_template.jinja
8591d683d8d132234766399897415b9427967c05e77c1c169a40de3e81177e62 config.json
8696704aeac94f11bae9025aa0f0c365969383b8fe6309b147263a5e568204d0 model.safetensors
5a3779ecc1a94f395f26612fdc9a491c1884250eda9353d214322717564a69c7 model.safetensors.index.json
06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523 tokenizer.json
95c557768e6b88a7128befc7bfd3c7de50e5d51af9b8b33a9f4dee0e04f99679 tokenizer_config.json
Chat Templateの変換完全性チェック
変換元リポジトリ(microsoft/UserRepGen-4B)と変換後リポジトリ(masahiroid/UserRepGen-4B-4bit-mlx)のchat template(chat_template.jinja、またはtokenizer_config.json内のchat_templateフィールド)を比較した結果です。
- ✅ 変換元と完全に一致しています。改変は検出されませんでした。