Instructions to use ps1811/advisor-minicpm-finetuned-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ps1811/advisor-minicpm-finetuned-gguf 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 ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M
Use Docker
docker model run hf.co/ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use ps1811/advisor-minicpm-finetuned-gguf with Ollama:
ollama run hf.co/ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M
- Unsloth Desktop
- Pi
How to use ps1811/advisor-minicpm-finetuned-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ps1811/advisor-minicpm-finetuned-gguf: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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ps1811/advisor-minicpm-finetuned-gguf with Docker Model Runner:
docker model run hf.co/ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M
- Lemonade
How to use ps1811/advisor-minicpm-finetuned-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M
Run and chat with the model
lemonade run user.advisor-minicpm-finetuned-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use ps1811/advisor-minicpm-finetuned-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ps1811/advisor-minicpm-finetuned-gguf: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:8080/v1 hermes config set model.default ps1811/advisor-minicpm-finetuned-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ps1811/advisor-minicpm-finetuned-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ps1811/advisor-minicpm-finetuned-gguf: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:8080/v1 \ --custom-model-id "ps1811/advisor-minicpm-finetuned-gguf: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"
Advisor MiniCPM Fine-Tuned GGUF
This model is a fine-tuned MiniCPM model for Advisor, a local-first Google Ads analysis app for small businesses. The model is designed to turn campaign, keyword, and search-term metrics into concise, actionable marketing recommendations.
It is used in the Advisor app here:
https://huggingface.co/spaces/build-small-hackathon/Advisor
Project repository:
https://github.com/PoornimaShridhar/Advisor
Intended Use
The model is tuned for short Google Ads advisory outputs, especially:
- campaign performance summaries
- keyword inspection
- search term cleanup
- concise action bullets grounded in metrics
- small-business-friendly explanations
In the app, the LLM is used for explanation-heavy cards:
- Ads Analyst
- Keyword Inspector
- Search Term Cleaner
Budget-sensitive decisions are intentionally handled by deterministic rule-based logic in the app, not delegated fully to the model.
Fine-Tuning Summary
The model was fine-tuned from:
openbmb/MiniCPM5-1B
The training workflow used QLoRA with 4-bit loading, then merged the LoRA adapter into the base model before converting the merged model to GGUF for local inference.
High-level process:
- Prepared instruction-style chat examples in JSONL format.
- Mixed synthetic Google Ads examples with cleaned campaign-style examples.
- Trained a LoRA adapter with
transformers,peft,trl, andbitsandbytes. - Merged the LoRA adapter into the base model.
- Converted the merged model to GGUF with
llama.cpp. - Quantized the GGUF model to
Q4_K_M. - Loaded the final model locally through
llama-cpp-pythonin the Advisor app.
Training Data Format
Each training record followed a chat-style JSONL structure:
{
"messages": [
{
"role": "system",
"content": "You are a Google Ads analyst. Reply with concise actionable markdown bullets only."
},
{
"role": "user",
"content": "Analyze this Google Ads campaign data..."
},
{
"role": "assistant",
"content": "- Pause weak search terms with spend and no conversions.\n\n- Scale efficient keywords with conversions below target CPA."
}
]
}
The fine-tuning target was not general conversation. The goal was to teach the model to write short, grounded, metric-aware recommendations.
Training Configuration
The project training script uses:
Training method: QLoRA
Max sequence length: 2048
Epochs: 2
Learning rate: 2e-4
Batch size: 2
Gradient accumulation: 8
LoRA rank: 16
LoRA alpha: 32
LoRA dropout: 0.05
Optimizer: paged_adamw_8bit
Quantization during training: 4-bit NF4
LoRA target modules:
q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
Runtime
The Advisor app downloads this GGUF model with hf_hub_download and runs it locally with llama-cpp-python.
Default app configuration:
LLAMA_HF_REPO=ps1811/advisor-minicpm-finetuned-gguf
LLAMA_HF_FILENAME=advisor-minicpm-q4_k_m.gguf
LLAMA_N_CTX=2048
LLAMA_GPU_LAYERS=-1
LLAMA_N_THREADS=4
Example Output Style
The expected output style is concise markdown bullets:
- Treat "preschool near me" as a winning keyword because it produced conversions at an efficient CPA.
- Reduce spend on broad, low-intent terms that generated clicks but no leads.
- Add irrelevant search terms as negatives to protect budget for higher-intent traffic.
Limitations
- The model is specialized for Google Ads-style campaign analysis and may not perform well as a general assistant.
- It should not be used as the only source of truth for financial decisions.
- Budget changes in the Advisor app are handled by rule-based logic because spend decisions need predictable behavior.
- Outputs should be reviewed by a human before applying recommendations to a live ad account.
Privacy
The public repository does not include private Google Ads credentials or private training exports. Users running the app must provide their own Google Ads API credentials.
- Downloads last month
- 6
4-bit
Model tree for ps1811/advisor-minicpm-finetuned-gguf
Base model
openbmb/MiniCPM5-1B