Instructions to use Mungert/TEN_Turn_Detection-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Mungert/TEN_Turn_Detection-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Mungert/TEN_Turn_Detection-GGUF", filename="TEN_Turn_Detection-bf16.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 Mungert/TEN_Turn_Detection-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Mungert/TEN_Turn_Detection-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Mungert/TEN_Turn_Detection-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Mungert/TEN_Turn_Detection-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Mungert/TEN_Turn_Detection-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 Mungert/TEN_Turn_Detection-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Mungert/TEN_Turn_Detection-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 Mungert/TEN_Turn_Detection-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Mungert/TEN_Turn_Detection-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Mungert/TEN_Turn_Detection-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Mungert/TEN_Turn_Detection-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mungert/TEN_Turn_Detection-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": "Mungert/TEN_Turn_Detection-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Mungert/TEN_Turn_Detection-GGUF:Q4_K_M
- Ollama
How to use Mungert/TEN_Turn_Detection-GGUF with Ollama:
ollama run hf.co/Mungert/TEN_Turn_Detection-GGUF:Q4_K_M
- Unsloth Studio
How to use Mungert/TEN_Turn_Detection-GGUF 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 Mungert/TEN_Turn_Detection-GGUF 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 Mungert/TEN_Turn_Detection-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Mungert/TEN_Turn_Detection-GGUF to start chatting
- Pi
How to use Mungert/TEN_Turn_Detection-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Mungert/TEN_Turn_Detection-GGUF:Q4_K_M
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": "Mungert/TEN_Turn_Detection-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Mungert/TEN_Turn_Detection-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Mungert/TEN_Turn_Detection-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 Mungert/TEN_Turn_Detection-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use Mungert/TEN_Turn_Detection-GGUF with Docker Model Runner:
docker model run hf.co/Mungert/TEN_Turn_Detection-GGUF:Q4_K_M
- Lemonade
How to use Mungert/TEN_Turn_Detection-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Mungert/TEN_Turn_Detection-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.TEN_Turn_Detection-GGUF-Q4_K_M
List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf Mungert/TEN_Turn_Detection-GGUF:# Run inference directly in the terminal:
llama-cli -hf Mungert/TEN_Turn_Detection-GGUF: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 Mungert/TEN_Turn_Detection-GGUF:# Run inference directly in the terminal:
./llama-cli -hf Mungert/TEN_Turn_Detection-GGUF: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 Mungert/TEN_Turn_Detection-GGUF:# Run inference directly in the terminal:
./build/bin/llama-cli -hf Mungert/TEN_Turn_Detection-GGUF:Use Docker
docker model run hf.co/Mungert/TEN_Turn_Detection-GGUF:- TEN Turn Detection
- Introduction
- Key Features
- Prepared Dataset
- Detection Performance
- Quick Start
- Citation
- License
- Quantization beyond the IMatrix
- Choosing the Right Model Format
- BF16 (Brain Float 16) โ Use if BF16 acceleration is available
- F16 (Float 16) โ More widely supported than BF16
- Hybrid Precision Models (e.g.,
bf16_q8_0,f16_q4_K) โ Best of Both Worlds - Quantized Models (Q4_K, Q6_K, Q8, etc.) โ For CPU & Low-VRAM Inference
- Very Low-Bit Quantization (IQ3_XS, IQ3_S, IQ3_M, Q4_K, Q4_0)
- Ultra Low-Bit Quantization (IQ1_S IQ1_M IQ2_S IQ2_M IQ2_XS IQ2_XSS)
- Summary Table: Model Format Selection
- What Iโm Testing
- Other Assistants
- ๐ก Example commands you could test:
- Final Word
- Introduction
- ๐ If you find these models useful
TEN Turn Detection
Turn detection for full-duplex dialogue communication
Introduction
TEN Turn Detection is an advanced intelligent turn detection model designed specifically for natural and dynamic communication between humans and AI agents. This technology addresses one of the most challenging aspects of human-AI conversation: detecting natural turn-taking cues and enabling contextually-aware interruptions. TEN incorporates deep semantic understanding of conversation context and linguistic patterns to create more natural dialogue with AI.
TEN Turn Detection categorizes user's text into three key states:
finished: A finished utterance where the user has expressed a complete thought and expects a response. Example: "Hey there I was wondering can you help me with my order"
wait: An wait utterance where the user has explicitly instructed the AI not to speak. Example: "Shut up"
unfinished: A clearly unfinished utterance where the user has momentarily paused but intends to continue speaking. Example: "Hello I have a question about"
These three classification states allow the TEN system to create natural conversation dynamics by intelligently managing turn-taking, reducing awkward interruptions while maintaining conversation flow.
TEN Turn Detection utilizes a multi-layered approach based on the transformer-based language model๏ผQwen2.5-7B๏ผ for semantic analysis.
Key Features
Context-Aware Turn Management TEN Turn Detection analyzes linguistic patterns and semantic context to accurately identify turn completion points. This capability enables intelligent interruption handling, allowing the system to determine when interruptions are contextually appropriate while maintaining natural conversation flow across various dialogue scenarios.
Multilingual Turn Detection Support TEN Turn Detection provides comprehensive support for both English and Chinese languages. It is engineered to accurately identify turn-taking cues and completion signals across multilingual conversations.
Superior Performance Compared with multiple open-source solutions, TEN achieves superior performance across all metrics on our publicly available test dataset.
Prepared Dataset
We have open-sourced the TEN-Turn-Detection TestSet, a bilingual (Chinese and English) collection of conversational inputs specifically designed to evaluate turn detection capabilities in AI dialogue systems. The dataset consists of three distinct components:
wait.txt: Contains expressions requesting conversation pauses or termination
unfinished.txt: Features incomplete dialogue inputs with truncated utterances
finished.txt: Provides complete conversational inputs across multiple domains
Detection Performance
We conducted comprehensive evaluations comparing several open-source models for turn detection using our test dataset:
| LANGUAGE | MODEL | FINISHED ACCURACY |
UNFINISHED ACCURACY |
WAIT ACCURACY |
|---|---|---|---|---|
| English | Model A | 59.74% | 86.46% | N/A |
| English | Model B | 71.61% | 96.88% | N/A |
| English | TEN Turn Detection | 90.64% | 98.44% | 91% |
| LANGUAGE | MODEL | FINISHED ACCURACY |
UNFINISHED ACCURACY |
WAIT ACCURACY |
|---|---|---|---|---|
| Chinese | Model B | 74.63% | 88.89% | N/A |
| Chinese | TEN Turn Detection | 98.90% | 92.74% | 92% |
Notes:
- Model A doesn't support Chinese language processing
- Neither Model A nor Model B support the "WAIT" state detection
Quick Start
TEN Turn Detection is also available on github TEN-framework/ten-turn-detection
Installation
pip install "transformers>=4.45.0"
pip install "torch>=2.0.0"
Model Weights
The TEN Turn Detection model is available on HuggingFace
Inference
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
model_id = 'TEN-framework/TEN_Turn_Detection'
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True, torch_dtype=torch.bfloat16)
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
# Move model to GPU
model = model.cuda()
model.eval()
# Function for inference
def analyze_text(text, system_prompt=""):
inf_messages = [{"role":"system", "content":system_prompt}] + [{"role":"user", "content":text}]
input_ids = tokenizer.apply_chat_template(
inf_messages,
add_generation_prompt=True,
return_tensors="pt"
).cuda()
with torch.no_grad():
outputs = model.generate(
input_ids,
max_new_tokens=1,
do_sample=True,
top_p=0.1,
temperature=0.1,
pad_token_id=tokenizer.eos_token_id
)
response = outputs[0][input_ids.shape[-1]:]
return tokenizer.decode(response, skip_special_tokens=True)
# Example usage
text = "Hello I have a question about"
result = analyze_text(text)
print(f"Input: '{text}'")
print(f"Turn Detection Result: '{result}'")
Citation
If you use TEN Turn Detection in your research or applications, please cite:
@misc{TEN_Turn_Detection,
author = {TEN Team},
title = {TEN Turn Detection: Turn detection for full-duplex dialogue communication
},
year = {2025},
url = {https://github.com/TEN-framework/ten-turn-detection},
}
License
This project is Apache 2.0 licensed.
Quantization beyond the IMatrix
Testing a new quantization method using rules to bump important layers above what the standard imatrix would use.
I have found that the standard IMatrix does not perform very well at low bit quantiztion and for MOE models. So I am using llama.cpp --tensor-type to bump up selected layers. See Layer bumping with llama.cpp
This does create larger model files but increases precision for a given model size.
Please provide feedback on how you find this method performs
Choosing the Right Model Format
Selecting the correct model format depends on your hardware capabilities and memory constraints.
BF16 (Brain Float 16) โ Use if BF16 acceleration is available
- A 16-bit floating-point format designed for faster computation while retaining good precision.
- Provides similar dynamic range as FP32 but with lower memory usage.
- Recommended if your hardware supports BF16 acceleration (check your device's specs).
- Ideal for high-performance inference with reduced memory footprint compared to FP32.
๐ Use BF16 if:
โ Your hardware has native BF16 support (e.g., newer GPUs, TPUs).
โ You want higher precision while saving memory.
โ You plan to requantize the model into another format.
๐ Avoid BF16 if:
โ Your hardware does not support BF16 (it may fall back to FP32 and run slower).
โ You need compatibility with older devices that lack BF16 optimization.
F16 (Float 16) โ More widely supported than BF16
- A 16-bit floating-point high precision but with less of range of values than BF16.
- Works on most devices with FP16 acceleration support (including many GPUs and some CPUs).
- Slightly lower numerical precision than BF16 but generally sufficient for inference.
๐ Use F16 if:
โ Your hardware supports FP16 but not BF16.
โ You need a balance between speed, memory usage, and accuracy.
โ You are running on a GPU or another device optimized for FP16 computations.
๐ Avoid F16 if:
โ Your device lacks native FP16 support (it may run slower than expected).
โ You have memory limitations.
Hybrid Precision Models (e.g., bf16_q8_0, f16_q4_K) โ Best of Both Worlds
These formats selectively quantize non-essential layers while keeping key layers in full precision (e.g., attention and output layers).
- Named like
bf16_q8_0(meaning full-precision BF16 core layers + quantized Q8_0 other layers). - Strike a balance between memory efficiency and accuracy, improving over fully quantized models without requiring the full memory of BF16/F16.
๐ Use Hybrid Models if:
โ You need better accuracy than quant-only models but canโt afford full BF16/F16 everywhere.
โ Your device supports mixed-precision inference.
โ You want to optimize trade-offs for production-grade models on constrained hardware.
๐ Avoid Hybrid Models if:
โ Your target device doesnโt support mixed or full-precision acceleration.
โ You are operating under ultra-strict memory limits (in which case use fully quantized formats).
Quantized Models (Q4_K, Q6_K, Q8, etc.) โ For CPU & Low-VRAM Inference
Quantization reduces model size and memory usage while maintaining as much accuracy as possible.
- Lower-bit models (Q4_K) โ Best for minimal memory usage, may have lower precision.
- Higher-bit models (Q6_K, Q8_0) โ Better accuracy, requires more memory.
๐ Use Quantized Models if:
โ You are running inference on a CPU and need an optimized model.
โ Your device has low VRAM and cannot load full-precision models.
โ You want to reduce memory footprint while keeping reasonable accuracy.
๐ Avoid Quantized Models if:
โ You need maximum accuracy (full-precision models are better for this).
โ Your hardware has enough VRAM for higher-precision formats (BF16/F16).
Very Low-Bit Quantization (IQ3_XS, IQ3_S, IQ3_M, Q4_K, Q4_0)
These models are optimized for very high memory efficiency, making them ideal for low-power devices or large-scale deployments where memory is a critical constraint.
IQ3_XS: Ultra-low-bit quantization (3-bit) with very high memory efficiency.
- Use case: Best for ultra-low-memory devices where even Q4_K is too large.
- Trade-off: Lower accuracy compared to higher-bit quantizations.
IQ3_S: Small block size for maximum memory efficiency.
- Use case: Best for low-memory devices where IQ3_XS is too aggressive.
IQ3_M: Medium block size for better accuracy than IQ3_S.
- Use case: Suitable for low-memory devices where IQ3_S is too limiting.
Q4_K: 4-bit quantization with block-wise optimization for better accuracy.
- Use case: Best for low-memory devices where Q6_K is too large.
Q4_0: Pure 4-bit quantization, optimized for ARM devices.
- Use case: Best for ARM-based devices or low-memory environments.
Ultra Low-Bit Quantization (IQ1_S IQ1_M IQ2_S IQ2_M IQ2_XS IQ2_XSS)
- *Ultra-low-bit quantization (1 2-bit) with extreme memory efficiency.
- Use case: Best for cases were you have to fit the model into very constrained memory
- Trade-off: Very Low Accuracy. May not function as expected. Please test fully before using.
Summary Table: Model Format Selection
| Model Format | Precision | Memory Usage | Device Requirements | Best Use Case |
|---|---|---|---|---|
| BF16 | Very High | High | BF16-supported GPU/CPU | High-speed inference with reduced memory |
| F16 | High | High | FP16-supported GPU/CPU | Inference when BF16 isnโt available |
| Q4_K | Medium-Low | Low | CPU or Low-VRAM devices | Memory-constrained inference |
| Q6_K | Medium | Moderate | CPU with more memory | Better accuracy with quantization |
| Q8_0 | High | Moderate | GPU/CPU with moderate VRAM | Highest accuracy among quantized models |
| IQ3_XS | Low | Very Low | Ultra-low-memory devices | Max memory efficiency, low accuracy |
| IQ3_S | Low | Very Low | Low-memory devices | Slightly more usable than IQ3_XS |
| IQ3_M | Low-Medium | Low | Low-memory devices | Better accuracy than IQ3_S |
| Q4_0 | Low | Low | ARM-based/embedded devices | Llama.cpp automatically optimizes for ARM inference |
| Ultra Low-Bit (IQ1/2_*) | Very Low | Extremely Low | Tiny edge/embedded devices | Fit models in extremely tight memory; low accuracy |
Hybrid (e.g., bf16_q8_0) |
MediumโHigh | Medium | Mixed-precision capable hardware | Balanced performance and memory, near-FP accuracy in critical layers |
๐ If you find these models useful
Help me test my AI-Powered Quantum Network Monitor Assistant with quantum-ready security checks:
The full Open Source Code for the Quantum Network Monitor Service available at my github repos ( repos with NetworkMonitor in the name) : Source Code Quantum Network Monitor. You will also find the code I use to quantize the models if you want to do it yourself GGUFModelBuilder
๐ฌ How to test:
Choose an AI assistant type:
TurboLLM(GPT-4.1-mini)HugLLM(Hugginface Open-source models)TestLLM(Experimental CPU-only)
What Iโm Testing
Iโm pushing the limits of small open-source models for AI network monitoring, specifically:
- Function calling against live network services
- How small can a model go while still handling:
- Automated Nmap security scans
- Quantum-readiness checks
- Network Monitoring tasks
๐ก TestLLM โ Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):
- โ Zero-configuration setup
- โณ 30s load time (slow inference but no API costs) . No token limited as the cost is low.
- ๐ง Help wanted! If youโre into edge-device AI, letโs collaborate!
Other Assistants
๐ข TurboLLM โ Uses gpt-4.1-mini :
- **It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
- Create custom cmd processors to run .net code on Quantum Network Monitor Agents
- Real-time network diagnostics and monitoring
- Security Audits
- Penetration testing (Nmap/Metasploit)
๐ต HugLLM โ Latest Open-source models:
- ๐ Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.
๐ก Example commands you could test:
"Give me info on my websites SSL certificate""Check if my server is using quantum safe encyption for communication""Run a comprehensive security audit on my server"- '"Create a cmd processor to .. (what ever you want)" Note you need to install a Quantum Network Monitor Agent to run the .net code from. This is a very flexible and powerful feature. Use with caution!
Final Word
I fund the servers used to create these model files, run the Quantum Network Monitor service, and pay for inference from Novita and OpenAIโall out of my own pocket. All the code behind the model creation and the Quantum Network Monitor project is open source. Feel free to use whatever you find helpful.
If you appreciate the work, please consider buying me a coffee โ. Your support helps cover service costs and allows me to raise token limits for everyone.
I'm also open to job opportunities or sponsorship.
Thank you! ๐
- Downloads last month
- 249
1-bit
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf Mungert/TEN_Turn_Detection-GGUF:# Run inference directly in the terminal: llama-cli -hf Mungert/TEN_Turn_Detection-GGUF: