Text Generation
MLX
Safetensors
English
llama
llama-3.2
model-united-nations
position-paper
conversational
4-bit precision
Instructions to use Ahmad170412/Diplomat2-Fused-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Ahmad170412/Diplomat2-Fused-3B 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("Ahmad170412/Diplomat2-Fused-3B") 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 Ahmad170412/Diplomat2-Fused-3B with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Ahmad170412/Diplomat2-Fused-3B"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Ahmad170412/Diplomat2-Fused-3B" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use Ahmad170412/Diplomat2-Fused-3B with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Ahmad170412/Diplomat2-Fused-3B"
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 "Ahmad170412/Diplomat2-Fused-3B" \ --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"
- MLX LM
How to use Ahmad170412/Diplomat2-Fused-3B with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Ahmad170412/Diplomat2-Fused-3B"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Ahmad170412/Diplomat2-Fused-3B" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ahmad170412/Diplomat2-Fused-3B", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use Ahmad170412/Diplomat2-Fused-3B 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 "Ahmad170412/Diplomat2-Fused-3B"
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 Ahmad170412/Diplomat2-Fused-3B
Run Hermes
hermes
Diplomat2-Fused-3B
The full 4-bit model for Diplomat2 — a fine-tuned delegate that writes formal Model United Nations position papers. This repo contains the LoRA adapter fused directly into mlx-community/Llama-3.2-3B-Instruct-4bit, so no separate adapter step is needed.
- Base + adapter: LoRA (rank 16, alpha 32, scale 10.0, 8 layers) fused into the 4-bit base
- Format: MLX, Apple-Silicon ready
- Rating: CRA-1 (Human-Centric Reasoning) — see the Diplomat2 model card for the full alignment framework and training details.
Quickstart
pip install mlx-lm
from mlx_lm import generate, load
from mlx_lm.sample_utils import make_sampler
model, tok = load("Ahmad170412/Diplomat2-Fused-3B")
out = generate(
model, tok,
prompt="Write a Model United Nations position paper for Nigeria on the topic: Ocean Plastic Pollution",
max_tokens=600,
sampler=make_sampler(temp=0.45),
)
print(out)
CLI
python3 -m mlx_lm generate \
--model Ahmad170412/Diplomat2-Fused-3B \
--prompt "Write a Model United Nations position paper for Nigeria on the topic: Ocean Plastic Pollution" \
--max-tokens 600 \
--temp 0.45
Notes
- Use temp 0.4–0.5; higher temperatures cause repetition loops.
- For the small adapter upload (~30 MB) instead, use
Diplomat2. - Output is a drafting aid — verify facts before real committee use.
Fused with MLX. Base model under the Llama 3.2 Community License.
- Downloads last month
- -
Model size
0.5B params
Tensor type
F16
·
U32 ·
Hardware compatibility
Log In to add your hardware
4-bit
Model tree for Ahmad170412/Diplomat2-Fused-3B
Base model
meta-llama/Llama-3.2-3B-Instruct Finetuned
mlx-community/Llama-3.2-3B-Instruct Quantized
mlx-community/Llama-3.2-3B-Instruct-4bit