Text Generation
Transformers
Safetensors
GGUF
English
qwen3_5_text
conversational
empathy
emotional-support
qwen3.5
lora
dpo
pocketpal
solace
Run this model with HF Jobs
Run proman007/Solace-2.5-2B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/proman007/Solace-2.5-2B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/proman007/Solace-2.5-2B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/proman007/Solace-2.5-2B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/proman007/Solace-2.5-2B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use proman007/Solace-2.5-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use proman007/Solace-2.5-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="proman007/Solace-2.5-2B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("proman007/Solace-2.5-2B") model = AutoModelForCausalLM.from_pretrained("proman007/Solace-2.5-2B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use proman007/Solace-2.5-2B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf proman007/Solace-2.5-2B:Q4_K_M # Run inference directly in the terminal: llama cli -hf proman007/Solace-2.5-2B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf proman007/Solace-2.5-2B:Q4_K_M # Run inference directly in the terminal: llama cli -hf proman007/Solace-2.5-2B:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf proman007/Solace-2.5-2B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf proman007/Solace-2.5-2B:Q4_K_M
Use Docker
docker model run hf.co/proman007/Solace-2.5-2B:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use proman007/Solace-2.5-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "proman007/Solace-2.5-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "proman007/Solace-2.5-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/proman007/Solace-2.5-2B:Q4_K_M
- SGLang
How to use proman007/Solace-2.5-2B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "proman007/Solace-2.5-2B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "proman007/Solace-2.5-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "proman007/Solace-2.5-2B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "proman007/Solace-2.5-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use proman007/Solace-2.5-2B with Ollama:
ollama run hf.co/proman007/Solace-2.5-2B:Q4_K_M
- Unsloth Desktop
- Pi
How to use proman007/Solace-2.5-2B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf proman007/Solace-2.5-2B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "proman007/Solace-2.5-2B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use proman007/Solace-2.5-2B with Docker Model Runner:
docker model run hf.co/proman007/Solace-2.5-2B:Q4_K_M
- Lemonade
How to use proman007/Solace-2.5-2B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull proman007/Solace-2.5-2B:Q4_K_M
Run and chat with the model
lemonade run user.Solace-2.5-2B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use proman007/Solace-2.5-2B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf proman007/Solace-2.5-2B:Q4_K_M
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:9931/v1 hermes config set model.default proman007/Solace-2.5-2B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use proman007/Solace-2.5-2B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf proman007/Solace-2.5-2B:Q4_K_M
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:9931/v1 \ --custom-model-id "proman007/Solace-2.5-2B:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download scripts/export_gguf.py from proman007/Solace-2.5-2B: direct link, hf CLI and curl.
- Browser
- Download file 3.27 kB
-
https://huggingface.co/proman007/Solace-2.5-2B/resolve/main/scripts/export_gguf.py
- Command line
-
hf download hf://proman007/Solace-2.5-2B/scripts/export_gguf.py
-
curl -L -o export_gguf.py https://huggingface.co/proman007/Solace-2.5-2B/resolve/main/scripts/export_gguf.py
3.27 kB
| #!/usr/bin/env python3 | |
| """ | |
| Export PocketPal-compatible Qwen3.5 GGUFs (Q4_K_M, Q5_K_M, Q8_0) for Solace-2.5-2B | |
| using llama.cpp pinned to b12292 with `--no-mtp`. | |
| Using b12292 --no-mtp ensures `qwen35.block_count=24` with zero missing `blk.24.*` | |
| MTP tensors and clean split tensor packing matching unsloth/Qwen3.5-2B-GGUF for | |
| PocketPal AI (llama.rn 0.13.0-rc.11) and llama.cpp / Ollama runtimes. | |
| """ | |
| import argparse | |
| import glob | |
| import os | |
| import subprocess | |
| def sh(cmd, cwd=None): | |
| print(f"+ {cmd}", flush=True) | |
| subprocess.run(cmd, shell=True, check=True, cwd=cwd) | |
| def main(): | |
| ap = argparse.ArgumentParser() | |
| ap.add_argument("--hf-dir", default="/content/ckpt25/solace_25_2b_final") | |
| ap.add_argument("--out-dir", default="/content/gguf25") | |
| ap.add_argument("--llama-dir", default="/content/llama_b12292") | |
| ap.add_argument("--quants", nargs="+", default=["Q4_K_M", "Q5_K_M", "Q8_0"]) | |
| args = ap.parse_args() | |
| os.makedirs(args.out_dir, exist_ok=True) | |
| if not os.path.exists(args.llama_dir): | |
| sh(f"git clone --depth 1 --branch b12292 https://github.com/ggml-org/llama.cpp.git {args.llama_dir}") | |
| sh("cmake -B build -DGGML_CUDA=OFF", cwd=args.llama_dir) | |
| sh("cmake --build build --config Release -j2 --target llama-quantize llama-completion", cwd=args.llama_dir) | |
| sh("pip install -q gguf sentencepiece protobuf") | |
| bf16_gguf = os.path.join(args.out_dir, "Solace-2.5-2B-BF16.gguf") | |
| sh( | |
| f"python3 {args.llama_dir}/convert_hf_to_gguf.py " | |
| f"{args.hf_dir} --outfile {bf16_gguf} --outtype bf16 --no-mtp" | |
| ) | |
| # Verify GGUF metadata and tensor count before quantizing | |
| sh( | |
| "python3 - <<'PY'\n" | |
| "from gguf import GGUFReader\n" | |
| f"r = GGUFReader({bf16_gguf!r})\n" | |
| "print('GGUF tensor_count:', len(r.tensors))\n" | |
| "for key in ['general.architecture', 'qwen35.block_count', 'qwen35.nextn_predict_layers']:\n" | |
| " if key in r.fields:\n" | |
| " f = r.fields[key]\n" | |
| " print(key, '=', f.parts[-1] if f.parts else f)\n" | |
| "assert 'qwen35.nextn_predict_layers' not in r.fields, 'Unexpected MTP layer present'\n" | |
| "assert len(r.tensors) == 320, f'Expected 320 tensors, got {len(r.tensors)}'\n" | |
| "PY" | |
| ) | |
| qbin = os.path.join(args.llama_dir, "build/bin/llama-quantize") | |
| cli = os.path.join(args.llama_dir, "build/bin/llama-completion") | |
| for q in args.quants: | |
| out_file = os.path.join(args.out_dir, f"Solace-2.5-2B-{q}.gguf") | |
| sh(f"{qbin} {bf16_gguf} {out_file} {q}") | |
| print(f"Quantized {out_file} ({os.path.getsize(out_file)/1e9:.2f} GB)", flush=True) | |
| # Remove intermediate BF16 to save space before HF upload | |
| os.remove(bf16_gguf) | |
| # Smoke-test Q4_K_M using b12292 llama-completion | |
| q4 = os.path.join(args.out_dir, "Solace-2.5-2B-Q4_K_M.gguf") | |
| prompt = "<|im_start|>user\nWho are you and who created you?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n" | |
| out = subprocess.check_output( | |
| f"{cli} -m {q4} -p {prompt!r} -n 120 --temp 0.0 --no-warmup", | |
| shell=True, | |
| text=True, | |
| stderr=subprocess.STDOUT, | |
| ) | |
| print("=== GGUF Q4_K_M Smoke Test (b12292) ===") | |
| print(out[-1200:]) | |
| if __name__ == "__main__": | |
| main() | |