Instructions to use Flexan/DoodDood-TOMAGPT-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 Flexan/DoodDood-TOMAGPT-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 Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Flexan/DoodDood-TOMAGPT-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 Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Flexan/DoodDood-TOMAGPT-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 Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Flexan/DoodDood-TOMAGPT-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 Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Flexan/DoodDood-TOMAGPT-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Flexan/DoodDood-TOMAGPT-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Flexan/DoodDood-TOMAGPT-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M
- Ollama
How to use Flexan/DoodDood-TOMAGPT-GGUF with Ollama:
ollama run hf.co/Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Flexan/DoodDood-TOMAGPT-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Flexan/DoodDood-TOMAGPT-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": "Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Flexan/DoodDood-TOMAGPT-GGUF with Docker Model Runner:
docker model run hf.co/Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M
- Lemonade
How to use Flexan/DoodDood-TOMAGPT-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.DoodDood-TOMAGPT-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Flexan/DoodDood-TOMAGPT-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 Flexan/DoodDood-TOMAGPT-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 Flexan/DoodDood-TOMAGPT-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Flexan/DoodDood-TOMAGPT-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Flexan/DoodDood-TOMAGPT-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 "Flexan/DoodDood-TOMAGPT-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"
GGUF Files for TOMAGPT
These are the GGUF files for DoodDood/TOMAGPT.
Downloads
| GGUF Link | Quantization | Description |
|---|---|---|
| Download | Q2_K | Lowest quality |
| Download | Q3_K_S | |
| Download | IQ3_S | Integer quant, preferable over Q3_K_S |
| Download | IQ3_M | Integer quant |
| Download | Q3_K_M | |
| Download | Q3_K_L | |
| Download | IQ4_XS | Integer quant |
| Download | Q4_K_S | Fast with good performance |
| Download | Q4_K_M | Recommended: Perfect mix of speed and performance |
| Download | Q5_K_S | |
| Download | Q5_K_M | |
| Download | Q6_K | Very good quality |
| Download | Q8_0 | Best quality |
| Download | f16 | Full precision, don't bother; use a quant |
Note from Flexan
I provide GGUFs and quantizations of publicly available models that do not have a GGUF equivalent available yet. This process is not yet automated and I download, convert, quantize, and upload them by hand, usually for models I deem interesting and wish to try out.
If there are some quants missing that you'd like me to add, you may request one in the community tab. If you want to request a public model to be converted, you can also request that in the community tab. If you have questions regarding the model, please refer to the original model repo.
TOMAGPT
A Qwen3-4B-Instruct-2507 model fine-tuned with GRPO (Group Relative Policy Optimization) to classify legal hearsay by decomposing it into three sub-elements under the U.S. Federal Rules of Evidence.
What It Does
TOMAGPT classifies whether a statement is hearsay by analyzing three sub-elements:
- Assertion -- Is the statement an assertion?
- Out-of-court -- Was the statement made out of court?
- TOMA -- Is the statement offered to prove the truth of the matter asserted?
Hearsay = YES only if all three sub-elements are YES.
Results
Evaluated on the LegalBench hearsay test set (94 examples):
| Metric | Base Model | TOMAGPT | Delta |
|---|---|---|---|
| Overall accuracy | 71.3% | 77.7% | +6.4% |
| TOMA sub-element | 78.0% | 95.1% | +17.1% |
| Assertion sub-element | 90.2% | 95.1% | +4.9% |
| Non-verbal hearsay | 33.3% | 83.3% | +50.0% |
| Standard hearsay | 93.1% | 100.0% | +6.9% |
| Non-assertive conduct | 89.5% | 100.0% | +10.5% |
Training Details
- Method: GRPO (Group Relative Policy Optimization)
- Platform: Prime Intellect Lab
- Environment:
smolclaims/TOMAGPT(v0.3.0) - Base model: Qwen/Qwen3-4B-Instruct-2507
- Training data: DoodDood/HearsayGRPOTrainingData2 (3,140 examples)
- Steps: 500
- Learning rate: 1e-5
- Batch size: 128
- Rollouts per example: 16
LoRA Configuration
- Rank (r): 16
- Alpha: 32
- Dropout: 0.0
- Target modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
Reward Functions
| Function | Weight | Description |
|---|---|---|
| assertion_reward | 1.5 | +1/-1 on assertion accuracy |
| out_of_court_reward | 1.0 | +1/-1 on out-of-court accuracy |
| toma_reward | 2.0 | +1/-1 on TOMA accuracy |
| consistency_penalty | 1.0 | -0.5 for contradictory outputs |
| format_compliance | 1.0 | -0.25 per missing field |
| constraint_penalty | 1.0 | -0.5 for logical violations |
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"DoodDood/TOMAGPT", torch_dtype=torch.bfloat16, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("DoodDood/TOMAGPT")
system_prompt = (
"You are a legal assistant identifying hearsay. Hearsay is defined as "
"an out-of-court statement introduced to prove the truth of the matter "
"asserted.\n\n"
"Respond in EXACTLY this format (semicolon-separated):\n"
"is_hearsay: YES/NO; an_assertion: YES/NO; made_out_of_court: YES/NO; "
"is_for_toma: YES/NO"
)
scenario = "At trial, the prosecution presents testimony from a police officer who states that a bystander at the scene told him, 'The defendant ran the red light.'"
messages = [
{"role": "system", "content": system_prompt},
{"role": "user", "content": scenario}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
with torch.no_grad():
output = model.generate(**inputs, max_new_tokens=128, do_sample=False)
response = tokenizer.decode(output[0][len(inputs.input_ids[0]):], skip_special_tokens=True)
print(response)
# Expected: is_hearsay: YES; an_assertion: YES; made_out_of_court: YES; is_for_toma: YES
Links
- Training data: DoodDood/HearsayGRPOTrainingData2
- GRPO environment:
smolclaims/TOMAGPTon Prime Intellect - Eval benchmark: nguha/legalbench (hearsay subset)
- Downloads last month
- 161
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for Flexan/DoodDood-TOMAGPT-GGUF
Dataset used to train Flexan/DoodDood-TOMAGPT-GGUF
Collection including Flexan/DoodDood-TOMAGPT-GGUF
Evaluation results
- Decomposed Accuracy on LegalBench Hearsaytest set self-reported77.700