Text Generation
Transformers
GGUF
text-generation-inference
llama-cpp
domyn
domyn-edge
teacher
math
grpo
fully-open
conversational
Instructions to use prithivMLmods/Domyn-Edge-Teacher-Math-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Domyn-Edge-Teacher-Math-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/Domyn-Edge-Teacher-Math-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/Domyn-Edge-Teacher-Math-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/Domyn-Edge-Teacher-Math-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 prithivMLmods/Domyn-Edge-Teacher-Math-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/Domyn-Edge-Teacher-Math-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 prithivMLmods/Domyn-Edge-Teacher-Math-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/Domyn-Edge-Teacher-Math-GGUF: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 prithivMLmods/Domyn-Edge-Teacher-Math-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf prithivMLmods/Domyn-Edge-Teacher-Math-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/Domyn-Edge-Teacher-Math-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Domyn-Edge-Teacher-Math-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": "prithivMLmods/Domyn-Edge-Teacher-Math-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/Domyn-Edge-Teacher-Math-GGUF 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 "prithivMLmods/Domyn-Edge-Teacher-Math-GGUF" \ --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": "prithivMLmods/Domyn-Edge-Teacher-Math-GGUF", "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 "prithivMLmods/Domyn-Edge-Teacher-Math-GGUF" \ --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": "prithivMLmods/Domyn-Edge-Teacher-Math-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use prithivMLmods/Domyn-Edge-Teacher-Math-GGUF with Ollama:
ollama run hf.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use prithivMLmods/Domyn-Edge-Teacher-Math-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prithivMLmods/Domyn-Edge-Teacher-Math-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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "prithivMLmods/Domyn-Edge-Teacher-Math-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use prithivMLmods/Domyn-Edge-Teacher-Math-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/Domyn-Edge-Teacher-Math-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/Domyn-Edge-Teacher-Math-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Domyn-Edge-Teacher-Math-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use prithivMLmods/Domyn-Edge-Teacher-Math-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 prithivMLmods/Domyn-Edge-Teacher-Math-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:9931/v1 hermes config set model.default prithivMLmods/Domyn-Edge-Teacher-Math-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use prithivMLmods/Domyn-Edge-Teacher-Math-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prithivMLmods/Domyn-Edge-Teacher-Math-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:9931/v1 \ --custom-model-id "prithivMLmods/Domyn-Edge-Teacher-Math-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"
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,4 +1,99 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
base_model:
|
| 3 |
- domyn/Domyn-Edge-Teacher-Math
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
datasets:
|
| 6 |
+
- domyn/Domyn-Edge-Teacher-Math-Mix
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
- it
|
| 10 |
+
- es
|
| 11 |
+
- fr
|
| 12 |
+
- de
|
| 13 |
+
- pt
|
| 14 |
+
- ru
|
| 15 |
+
- zh
|
| 16 |
+
- ja
|
| 17 |
+
- ar
|
| 18 |
+
- nl
|
| 19 |
+
- id
|
| 20 |
+
- tr
|
| 21 |
base_model:
|
| 22 |
- domyn/Domyn-Edge-Teacher-Math
|
| 23 |
+
tags:
|
| 24 |
+
- text-generation-inference
|
| 25 |
+
- llama-cpp
|
| 26 |
+
- domyn
|
| 27 |
+
- domyn-edge
|
| 28 |
+
- teacher
|
| 29 |
+
- math
|
| 30 |
+
- grpo
|
| 31 |
+
- fully-open
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
# **Domyn-Edge-Teacher-Math-GGUF**
|
| 35 |
+
|
| 36 |
+
> **Domyn Edge Teacher Math** (`domyn/Domyn-Edge-Teacher-Math`) is a fully open, 4B-parameter dense transformer built by Domyn on top of **Domyn Edge SFT** to serve as the specialized mathematics domain teacher in its Multi-Teacher On-Policy Distillation (MOPD) post-training pipeline. Released in bfloat16 as part of the second Domyn Edge bundle alongside its training dataset (`Domyn-Edge-Teacher-Math-Mix`), it was trained via asynchronous Group Relative Policy Optimization (GRPO) on math problems with verifiable final answers—using `math-verify` to award format-sensitive rewards (1.0 for a properly formatted correct answer, 0.5 for an unformatted correct answer, and 0 otherwise). Intended to score student rollouts token-by-token rather than operate as a general-purpose assistant, it boosts AIME 2026 avg@10 performance by +17.7 points over Domyn Edge SFT (from 61.3% to 79.0%) and outperforms Qwen3.5 4B on HMMT Feb 2025 (76.1%) and Feb 2026 (65.9%). Retaining the exact architecture, tokenizer, 13-language support, and `<think>` reasoning chat template of Domyn Edge SFT, it is released under an **Apache 2.0** license.
|
| 37 |
+
|
| 38 |
+
## Model Files
|
| 39 |
+
|
| 40 |
+
| File Name | Quant Type | File Size | File Link | Description |
|
| 41 |
+
|-----------|------------|-----------|-----------|-------------|
|
| 42 |
+
| Domyn-Edge-Teacher-Math.BF16.gguf | BF16 | 7.87 GB | [Link](https://huggingface.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/blob/main/Domyn-Edge-Teacher-Math.BF16.gguf) | Full BF16 weights. Highest quality, largest file size. |
|
| 43 |
+
| Domyn-Edge-Teacher-Math.Q3_K_L.gguf | Q3_K_L | 2.16 GB | [Link](https://huggingface.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/blob/main/Domyn-Edge-Teacher-Math.Q3_K_L.gguf) | Lower quality but usable, good for low RAM availability. |
|
| 44 |
+
| Domyn-Edge-Teacher-Math.Q3_K_M.gguf | Q3_K_M | 2 GB | [Link](https://huggingface.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/blob/main/Domyn-Edge-Teacher-Math.Q3_K_M.gguf) | Low quality, smallest file size. |
|
| 45 |
+
| Domyn-Edge-Teacher-Math.Q4_K_M.gguf | Q4_K_M | 2.42 GB | [Link](https://huggingface.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/blob/main/Domyn-Edge-Teacher-Math.Q4_K_M.gguf) | Good quality, default size for most use cases, *recommended*. |
|
| 46 |
+
| Domyn-Edge-Teacher-Math.Q4_K_S.gguf | Q4_K_S | 2.31 GB | [Link](https://huggingface.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/blob/main/Domyn-Edge-Teacher-Math.Q4_K_S.gguf) | Slightly lower quality with more space savings, *recommended*. |
|
| 47 |
+
| Domyn-Edge-Teacher-Math.Q5_K_M.gguf | Q5_K_M | 2.81 GB | [Link](https://huggingface.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/blob/main/Domyn-Edge-Teacher-Math.Q5_K_M.gguf) | High quality, *recommended*. |
|
| 48 |
+
| Domyn-Edge-Teacher-Math.Q5_K_S.gguf | Q5_K_S | 2.75 GB | [Link](https://huggingface.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/blob/main/Domyn-Edge-Teacher-Math.Q5_K_S.gguf) | High quality with slight space savings, *recommended*. |
|
| 49 |
+
| Domyn-Edge-Teacher-Math.Q6_K.gguf | Q6_K | 3.23 GB | [Link](https://huggingface.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/blob/main/Domyn-Edge-Teacher-Math.Q6_K.gguf) | Very high quality, near perfect, *recommended*. |
|
| 50 |
+
| Domyn-Edge-Teacher-Math.Q8_0.gguf | Q8_0 | 4.18 GB | [Link](https://huggingface.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/blob/main/Domyn-Edge-Teacher-Math.Q8_0.gguf) | Extremely high quality, generally unneeded but max available standard quant. |
|
| 51 |
+
|
| 52 |
+
## Q3_K_L Test Run
|
| 53 |
+
|
| 54 |
+
Tested `Domyn-Edge-Teacher-Math.Q3_K_L.gguf` on an NVIDIA RTX PRO 6000 Blackwell Server Edition GPU with `96 GB` of VRAM, using `llama-cli` with full GPU offloading.
|
| 55 |
+
|
| 56 |
+
### Performance Metrics
|
| 57 |
+
|
| 58 |
+
| Metric | Value |
|
| 59 |
+
| --- | --- |
|
| 60 |
+
| Average Prompt Processing Speed | 1,109.73 tokens/s |
|
| 61 |
+
| Average Generation Speed | 267.61 tokens/s |
|
| 62 |
+
| Total Wall Time | 56.3 seconds |
|
| 63 |
+
| Context Length | 16,384 tokens |
|
| 64 |
+
| KV Cache (K) | `q8_0` |
|
| 65 |
+
| GPU | NVIDIA RTX PRO 6000 Blackwell Server Edition |
|
| 66 |
+
| GPU VRAM Capacity | 96 GB |
|
| 67 |
+
| Peak GPU VRAM Usage | 4.00 GiB |
|
| 68 |
+
| Peak GPU Utilization | 91% |
|
| 69 |
+
| GPU Layers Offloaded | 99 (`-ngl 99`) |
|
| 70 |
+
| Random Seed | 42 |
|
| 71 |
+
| Speculative Decoding | No |
|
| 72 |
+
| Test Runs | 5 |
|
| 73 |
+
|
| 74 |
+
### Test Shots
|
| 75 |
+
|
| 76 |
+
| Shot | Test |
|
| 77 |
+
| --- | --- |
|
| 78 |
+
| Shot 1 | C: Insert Node at End of Singly Linked List |
|
| 79 |
+
| Shot 2 | Jogger and Train Passing Time |
|
| 80 |
+
| Shot 3 | Two Pipes Filling a Tank |
|
| 81 |
+
| Shot 4 | Students in Examination Rooms |
|
| 82 |
+
| Shot 5 | Father and Son Ages |
|
| 83 |
+
|
| 84 |
+
### Run Inference
|
| 85 |
+
|
| 86 |
+
```bash
|
| 87 |
+
./build/bin/llama-cli \
|
| 88 |
+
-m /path/to/models/Domyn-Edge-Teacher-Math.Q3_K_L.gguf \
|
| 89 |
+
-ngl 99 \
|
| 90 |
+
-c 16384 \
|
| 91 |
+
--cache-type-k q8_0 \
|
| 92 |
+
--seed 42 \
|
| 93 |
+
-n 8192 \
|
| 94 |
+
-st \
|
| 95 |
+
-p "Your prompt here"
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
*Performance results reflect this specific hardware and inference configuration. Actual throughput may vary depending on the prompt, model, software build, and runtime settings.*
|
| 99 |
+
|