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"
|
Download README.md from prithivMLmods/Domyn-Edge-Teacher-Math-GGUF: direct link, hf CLI and curl.
- Browser
- Download file 6.1 kB
-
https://huggingface.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/resolve/main/README.md
- Command line
-
hf download hf://prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/README.md
-
curl -L -o README.md https://huggingface.co/prithivMLmods/Domyn-Edge-Teacher-Math-GGUF/resolve/main/README.md
6.1 kB
| library_name: transformers | |
| license: apache-2.0 | |
| pipeline_tag: text-generation | |
| datasets: | |
| - domyn/Domyn-Edge-Teacher-Math-Mix | |
| language: | |
| - en | |
| - it | |
| - es | |
| - fr | |
| - de | |
| - pt | |
| - ru | |
| - zh | |
| - ja | |
| - ar | |
| - nl | |
| - id | |
| - tr | |
| base_model: | |
| - domyn/Domyn-Edge-Teacher-Math | |
| tags: | |
| - text-generation-inference | |
| - llama-cpp | |
| - domyn | |
| - domyn-edge | |
| - teacher | |
| - math | |
| - grpo | |
| - fully-open | |
| # **Domyn-Edge-Teacher-Math-GGUF** | |
| > **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. | |
| ## Model Files | |
| | File Name | Quant Type | File Size | File Link | Description | | |
| |-----------|------------|-----------|-----------|-------------| | |
| | 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. | | |
| | 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. | | |
| | 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. | | |
| | 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*. | | |
| | 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*. | | |
| | 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*. | | |
| | 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*. | | |
| | 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*. | | |
| | 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. | | |
| ## Q3_K_L Test Run | |
| 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. | |
| ### Performance Metrics | |
| | Metric | Value | | |
| | --- | --- | | |
| | Average Prompt Processing Speed | 1,109.73 tokens/s | | |
| | Average Generation Speed | 267.61 tokens/s | | |
| | Total Wall Time | 56.3 seconds | | |
| | Context Length | 16,384 tokens | | |
| | KV Cache (K) | `q8_0` | | |
| | GPU | NVIDIA RTX PRO 6000 Blackwell Server Edition | | |
| | GPU VRAM Capacity | 96 GB | | |
| | Peak GPU VRAM Usage | 4.00 GiB | | |
| | Peak GPU Utilization | 91% | | |
| | GPU Layers Offloaded | 99 (`-ngl 99`) | | |
| | Random Seed | 42 | | |
| | Speculative Decoding | No | | |
| | Test Runs | 5 | | |
| ### Test Shots | |
| | Shot | Test | | |
| | --- | --- | | |
| | Shot 1 | C: Insert Node at End of Singly Linked List | | |
| | Shot 2 | Jogger and Train Passing Time | | |
| | Shot 3 | Two Pipes Filling a Tank | | |
| | Shot 4 | Students in Examination Rooms | | |
| | Shot 5 | Father and Son Ages | | |
| ### Run Inference | |
| ```bash | |
| ./build/bin/llama-cli \ | |
| -m /path/to/models/Domyn-Edge-Teacher-Math.Q3_K_L.gguf \ | |
| -ngl 99 \ | |
| -c 16384 \ | |
| --cache-type-k q8_0 \ | |
| --seed 42 \ | |
| -n 8192 \ | |
| -st \ | |
| -p "Your prompt here" | |
| ``` | |
| *Performance results reflect this specific hardware and inference configuration. Actual throughput may vary depending on the prompt, model, software build, and runtime settings.* | |
| ## Snapshots (5) | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| ## llama.cpp | |
| LLM inference in C/C++ — [https://github.com/ggml-org/llama.cpp](https://github.com/ggml-org/llama.cpp) | |
| Quantized using llama.cpp by [prithivMLmods](https://huggingface.co/prithivMLmods). |