Text Generation
MLX
Safetensors
qwen3_5
user-representation
user-simulation
conversational
8-bit precision
Instructions to use xquantize/userrepgen-4b-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use xquantize/userrepgen-4b-8bit 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("xquantize/userrepgen-4b-8bit") 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 xquantize/userrepgen-4b-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "xquantize/userrepgen-4b-8bit"
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": "xquantize/userrepgen-4b-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use xquantize/userrepgen-4b-8bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "xquantize/userrepgen-4b-8bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "xquantize/userrepgen-4b-8bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xquantize/userrepgen-4b-8bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use xquantize/userrepgen-4b-8bit 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 "xquantize/userrepgen-4b-8bit"
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 xquantize/userrepgen-4b-8bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use xquantize/userrepgen-4b-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "xquantize/userrepgen-4b-8bit"
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 "xquantize/userrepgen-4b-8bit" \ --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 representation_prompt.txt from xquantize/userrepgen-4b-8bit: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/xquantize/userrepgen-4b-8bit/resolve/main/representation_prompt.txt
- Command line
-
hf download hf://xquantize/userrepgen-4b-8bit/representation_prompt.txt
-
curl -L -o representation_prompt.txt https://huggingface.co/xquantize/userrepgen-4b-8bit/resolve/main/representation_prompt.txt
1.47 kB
| You are an expert at analyzing user behavior in conversations between a user and an AI assistant. Given the conversation below, your task is to produce a representation of the user. | |
| Treat the conversation as evidence about the user, and use it to infer how they generally behave and how they would typically act in other conversations. Focus on stable, general tendencies such as: how they phrase and specify requests, how they decompose goals across turns, how they respond to and give feedback to the assistant, how and when they provide context, their communication style, the dialog acts they use, and their degree and depth of engagement. Keep this description general: do not include topic-specific details or content from the conversation, do not quote or closely paraphrase full user messages, and do not refer to specific moments in this conversation (e.g. "here", "in this conversation", "when they asked about X"). Short distinctive words or phrases may be quoted sparingly when they are useful examples of the user's communication style. Describe their patterns in your own general terms instead. | |
| Separately, you will also describe the task the user is trying to accomplish. Here you may include topic-specific details about what the user is doing in the conversation. | |
| Conversation: | |
| {conversation_history} | |
| Output a single valid JSON object of the form {{"task": "...", "user_behavior": "..."}}. Do not wrap the output in markdown or add any other text. | |