Text Generation
Transformers
GGUF
English
llama
summarization
fine-tuned
unsloth
trl
sft
conversational
Instructions to use rkevan/leader-comment-summarizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rkevan/leader-comment-summarizer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rkevan/leader-comment-summarizer") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("rkevan/leader-comment-summarizer", dtype="auto") - llama-cpp-python
How to use rkevan/leader-comment-summarizer with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="rkevan/leader-comment-summarizer", filename="model-q4km.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use rkevan/leader-comment-summarizer with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf rkevan/leader-comment-summarizer # Run inference directly in the terminal: llama-cli -hf rkevan/leader-comment-summarizer
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf rkevan/leader-comment-summarizer # Run inference directly in the terminal: llama-cli -hf rkevan/leader-comment-summarizer
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 rkevan/leader-comment-summarizer # Run inference directly in the terminal: ./llama-cli -hf rkevan/leader-comment-summarizer
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 rkevan/leader-comment-summarizer # Run inference directly in the terminal: ./build/bin/llama-cli -hf rkevan/leader-comment-summarizer
Use Docker
docker model run hf.co/rkevan/leader-comment-summarizer
- LM Studio
- Jan
- vLLM
How to use rkevan/leader-comment-summarizer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rkevan/leader-comment-summarizer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rkevan/leader-comment-summarizer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rkevan/leader-comment-summarizer
- SGLang
How to use rkevan/leader-comment-summarizer 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 "rkevan/leader-comment-summarizer" \ --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": "rkevan/leader-comment-summarizer", "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 "rkevan/leader-comment-summarizer" \ --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": "rkevan/leader-comment-summarizer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use rkevan/leader-comment-summarizer with Ollama:
ollama run hf.co/rkevan/leader-comment-summarizer
- Unsloth Studio
How to use rkevan/leader-comment-summarizer with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rkevan/leader-comment-summarizer to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rkevan/leader-comment-summarizer to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for rkevan/leader-comment-summarizer to start chatting
- Pi
How to use rkevan/leader-comment-summarizer with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf rkevan/leader-comment-summarizer
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "rkevan/leader-comment-summarizer" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use rkevan/leader-comment-summarizer with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf rkevan/leader-comment-summarizer
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 rkevan/leader-comment-summarizer
Run Hermes
hermes
- Docker Model Runner
How to use rkevan/leader-comment-summarizer with Docker Model Runner:
docker model run hf.co/rkevan/leader-comment-summarizer
- Lemonade
How to use rkevan/leader-comment-summarizer with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull rkevan/leader-comment-summarizer
Run and chat with the model
lemonade run user.leader-comment-summarizer-{{QUANT_TAG}}List all available models
lemonade list
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 14 |
+
- sft
|
| 15 |
+
model_name: leader-comment-summarizer
|
| 16 |
+
pipeline_tag: text-generation
|
| 17 |
+
quantized_by: llama.cpp
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# leader-comment-summarizer — Ecclesiastical Comment Summarization (GGUF)
|
| 21 |
+
|
| 22 |
+
A fine-tuned Llama 3.2 3B Instruct model that summarizes ecclesiastical leader comments into concise, assignment-relevant summaries for missionary placement meetings. Strips endorsement boilerplate, focuses on actionable details (languages, health, skills, concerns).
|
| 23 |
+
|
| 24 |
+
## Model Details
|
| 25 |
+
|
| 26 |
+
| Property | Value |
|
| 27 |
+
|----------|-------|
|
| 28 |
+
| **Base model** | `meta-llama/Llama-3.2-3B-Instruct` |
|
| 29 |
+
| **Fine-tuning method** | QLoRA via Unsloth (rank=16, alpha=32) |
|
| 30 |
+
| **Training framework** | TRL SFTTrainer, completion-only loss |
|
| 31 |
+
| **Training data** | 1,464 PII-obfuscated leader comments with gold-standard summaries |
|
| 32 |
+
| **Quantization** | Q4_K_M (1.9 GB) via llama.cpp |
|
| 33 |
+
| **VRAM requirement** | ~3 GB (Q4_K_M) |
|
| 34 |
+
| **Output format** | 30-40 word plain-text summary |
|
| 35 |
+
|
| 36 |
+
## Files
|
| 37 |
+
|
| 38 |
+
| File | Size | Description |
|
| 39 |
+
|------|------|-------------|
|
| 40 |
+
| `model-q4km.gguf` | 1.9 GB | Q4_K_M quantization (recommended) |
|
| 41 |
+
| `Modelfile` | — | Ollama Modelfile with system prompt embedded |
|
| 42 |
+
| `system_prompt.txt` | — | System prompt (for API usage without Modelfile) |
|
| 43 |
+
|
| 44 |
+
## Quick Start — Ollama
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
# Download the GGUF and Modelfile, then:
|
| 48 |
+
ollama create leader-summarizer -f Modelfile
|
| 49 |
+
|
| 50 |
+
# Call via API:
|
| 51 |
+
curl -s http://localhost:11434/api/chat -d '{
|
| 52 |
+
"model": "leader-summarizer",
|
| 53 |
+
"stream": false,
|
| 54 |
+
"messages": [
|
| 55 |
+
{"role": "user", "content": "[[Name]] is a wonderful young man with a strong testimony. He speaks fluent Spanish from living in [[City]] for three years. Has mild anxiety that is well-managed with medication. Very independent and hardworking. Parents served in the [[Mission]] mission."}
|
| 56 |
+
]
|
| 57 |
+
}'
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
Expected response:
|
| 61 |
+
```
|
| 62 |
+
Fluent Spanish from three years in a Spanish-speaking city. Mild anxiety, well-managed with medication. Independent and hardworking. Family mission service background.
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
## Quick Start — Python
|
| 66 |
+
|
| 67 |
+
```python
|
| 68 |
+
from llama_cpp import Llama
|
| 69 |
+
|
| 70 |
+
llm = Llama(model_path="model-q4km.gguf", n_ctx=2048, n_gpu_layers=-1)
|
| 71 |
+
response = llm.create_chat_completion(
|
| 72 |
+
messages=[
|
| 73 |
+
{"role": "system", "content": open("system_prompt.txt").read()},
|
| 74 |
+
{"role": "user", "content": leader_comment_text},
|
| 75 |
+
],
|
| 76 |
+
temperature=0.3,
|
| 77 |
+
top_p=0.9,
|
| 78 |
+
max_tokens=128,
|
| 79 |
+
)
|
| 80 |
+
print(response["choices"][0]["message"]["content"])
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
## Input/Output Format
|
| 84 |
+
|
| 85 |
+
**Input:** Raw leader comment text (may contain PII placeholders like `[[Name]]`, `[[City]]`).
|
| 86 |
+
|
| 87 |
+
**Output:** A 30-40 word plain-text summary focusing on assignment-relevant details.
|
| 88 |
+
|
| 89 |
+
### What the Model Keeps
|
| 90 |
+
- Languages spoken and proficiency
|
| 91 |
+
- Health/medical conditions and management
|
| 92 |
+
- Specific skills (musical, technical, athletic)
|
| 93 |
+
- Concerns about independence or readiness
|
| 94 |
+
- Personality traits affecting placement
|
| 95 |
+
- Service preferences
|
| 96 |
+
|
| 97 |
+
### What the Model Strips
|
| 98 |
+
- General endorsement ("strong testimony", "wonderful young man")
|
| 99 |
+
- Worthiness/recommend statements
|
| 100 |
+
- Boilerplate language that applies to all candidates
|
| 101 |
+
|
| 102 |
+
## Important Usage Notes
|
| 103 |
+
|
| 104 |
+
- **The Modelfile embeds the system prompt.** When using Ollama with the provided Modelfile, you don't need to send a separate system message — just send the comment as the user message.
|
| 105 |
+
- **If using the raw GGUF** (without Modelfile), include `system_prompt.txt` as the system message in every request.
|
| 106 |
+
- **Temperature 0.3** produces consistent, focused summaries. Higher values introduce variability.
|
| 107 |
+
- **max_tokens 128** is sufficient — summaries are typically 30-40 words.
|
| 108 |
+
|
| 109 |
+
## Training Details
|
| 110 |
+
|
| 111 |
+
- **Method:** QLoRA with Unsloth on WSL2 Ubuntu 24.04
|
| 112 |
+
- **GPU:** NVIDIA RTX 1000 Ada (6 GB VRAM)
|
| 113 |
+
- **Epochs:** 3
|
| 114 |
+
- **Learning rate:** 2e-4 with cosine scheduler
|
| 115 |
+
- **Effective batch size:** 8 (batch=2, grad_accum=4)
|
| 116 |
+
- **Final training loss:** 0.4296
|
| 117 |
+
- **Final eval loss:** 0.7495
|
| 118 |
+
- **Loss type:** Completion-only (only trains on assistant response tokens)
|
| 119 |
+
- **LoRA targets:** q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
|
| 120 |
+
|
| 121 |
+
## Evaluation Results (258 held-out examples)
|
| 122 |
+
|
| 123 |
+
| Metric | Fine-tuned | Baseline (untuned 3B) |
|
| 124 |
+
|--------|------------|----------------------|
|
| 125 |
+
| Word count avg | 36.4 | 33.9 |
|
| 126 |
+
| In 25-45 word range | 69.0% | 91.9% |
|
| 127 |
+
| Endorsement boilerplate leak | **10.1%** | 18.6% |
|
| 128 |
+
| Format compliance | 100% | 100% |
|
| 129 |
+
|
| 130 |
+
Key win: the fine-tuned model filters endorsement boilerplate significantly better (10% vs 19% leak rate).
|
| 131 |
+
|
| 132 |
+
## Privacy Note
|
| 133 |
+
|
| 134 |
+
All training data was PII-obfuscated before use. Names, locations, schools, wards, and missions are replaced with `[[Name]]`, `[[City]]`, etc. The model has never seen real PII during training.
|
| 135 |
+
|
| 136 |
+
## Limitations
|
| 137 |
+
|
| 138 |
+
- Trained on a specific style of ecclesiastical leader comments. May not generalize to other summarization tasks without additional training.
|
| 139 |
+
- Endorsement leak rate is 10% — some boilerplate still passes through.
|
| 140 |
+
- Word count compliance (69% in 25-45 range) is lower than the untuned model (92%), though this is a tradeoff for better filtering.
|
| 141 |
+
|
| 142 |
+
## Source Code
|
| 143 |
+
|
| 144 |
+
Training scripts and data pipeline:
|
| 145 |
+
[github.com/rkevan/AI-Experiments](https://github.com/rkevan/AI-Experiments)
|
| 146 |
+
|
| 147 |
+
## Citation
|
| 148 |
+
|
| 149 |
+
```bibtex
|
| 150 |
+
@misc{leader-comment-summarizer-2026,
|
| 151 |
+
title={leader-comment-summarizer: Fine-tuned Llama 3.2 3B for Ecclesiastical Comment Summarization},
|
| 152 |
+
author={Robert Kevan},
|
| 153 |
+
year={2026},
|
| 154 |
+
url={https://huggingface.co/rkevan/leader-comment-summarizer}
|
| 155 |
+
}
|
| 156 |
+
```
|