Instructions to use redponike/Ring-flash-2.0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use redponike/Ring-flash-2.0-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="redponike/Ring-flash-2.0-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("redponike/Ring-flash-2.0-GGUF", dtype="auto") - llama-cpp-python
How to use redponike/Ring-flash-2.0-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="redponike/Ring-flash-2.0-GGUF", filename="Ring-flash-2.0-IQ2_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use redponike/Ring-flash-2.0-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf redponike/Ring-flash-2.0-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf redponike/Ring-flash-2.0-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 redponike/Ring-flash-2.0-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf redponike/Ring-flash-2.0-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 redponike/Ring-flash-2.0-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf redponike/Ring-flash-2.0-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 redponike/Ring-flash-2.0-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf redponike/Ring-flash-2.0-GGUF:Q4_K_M
Use Docker
docker model run hf.co/redponike/Ring-flash-2.0-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use redponike/Ring-flash-2.0-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "redponike/Ring-flash-2.0-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": "redponike/Ring-flash-2.0-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/redponike/Ring-flash-2.0-GGUF:Q4_K_M
- SGLang
How to use redponike/Ring-flash-2.0-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 "redponike/Ring-flash-2.0-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": "redponike/Ring-flash-2.0-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 "redponike/Ring-flash-2.0-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": "redponike/Ring-flash-2.0-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use redponike/Ring-flash-2.0-GGUF with Ollama:
ollama run hf.co/redponike/Ring-flash-2.0-GGUF:Q4_K_M
- Unsloth Studio new
How to use redponike/Ring-flash-2.0-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 redponike/Ring-flash-2.0-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 redponike/Ring-flash-2.0-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for redponike/Ring-flash-2.0-GGUF to start chatting
- Docker Model Runner
How to use redponike/Ring-flash-2.0-GGUF with Docker Model Runner:
docker model run hf.co/redponike/Ring-flash-2.0-GGUF:Q4_K_M
- Lemonade
How to use redponike/Ring-flash-2.0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull redponike/Ring-flash-2.0-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Ring-flash-2.0-GGUF-Q4_K_M
List all available models
lemonade list
GGUF quants of Ring-flash-2.0
Using llama.cpp (commit 6de8ed75196c7cd98c1f34bbf3a7452451ba8ac2)
The importance matrix was generated with eaddario/imatrix-calibration
All quants were generated/calibrated with the imatrix, including the K quants.
🤗 Hugging Face | 🤖 ModelScope | 🚀 Experience Now
Introduction
Today, we are officially open-sourcing Ring-flash-2.0.
This is a high-performance thinking model, deeply optimized based on Ling-flash-2.0-base. Like Ling-flash-2.0, Ring-flash-2.0 has a total of 100B parameters, with only 6.1B activated per inference. Our independently developed icepop algorithm has successfully addressed the challenge of training instability in reinforcement learning (RL) for MoE LLMs after cold-start Long-CoT SFT, enabling the model’s complex reasoning capabilities to continuously improve throughout extended RL training cycles.
Ring-flash-2.0 demonstrates significant breakthroughs across multiple challenging benchmarks, including math competitions, code generation, and logical reasoning. Its performance not only surpasses that of SOTA dense models under 40B parameters but also rivals larger open-weight MoE models and closed-source high-performance thinking model APIs.
leading-level performance in complex reasoning
We selected representative open-source thinking models and closed-source APIs for comparison, including GPT-OSS-120B(medium), Qwen3-32B-Thinking, Seed-OSS-36B-Instruct, and Gemini-2.5-Flash.
The benchmarking results demonstrate that Ring-flash-2.0 exhibits leading performance across multiple challenging general reasoning tasks, including:
- Math competitions (AIME 25, Omni-MATH),
- Code generation (LiveCodeBench, CodeForce-Elo),
- Logical reasoning (ARC-Prize). It also shows strong competitiveness in specialized domains such as:
- Scientific and medical reasoning (GPQA-Diamond, HealthBench).
More surprisingly, although Ring-flash-2.0 is primarily designed for complex reasoning, it outperforms all other compared models in creative writing (Creative Writing v3) and matches the creative capability of its "twin brother"—the non-thinking model Ling-flash-2.0.
Efficient Architecture, High-Speed Inference
Building on the highly efficient MoE architecture of the Ling 2.0 series, and through structural optimizations such as a __1/32 expert activation ratio__ and __MTP layers__, Ring-flash-2.0 activates only 6.1B (4.8B non-embedding) parameters while delivering performance comparable to a ∼40B dense model. Thanks to its low activation and high sparsity design, Ring-flash-2.0 achieves a high generation speed of __200+ tokens/sec__ when deployed on just four H20 GPUs, significantly reducing inference costs for thinking models in high-concurrency scenarios.
IcePop: Cooling Down Training-Inference Gaps in RL for MoE Models
During the RL for MoE models, the discrepancy of precision between the training and inference engines is more pronounced compared to dense models. This gap widens progressively as sequence length and training steps increase—particularly during long-sequence generation and extended training cycles. A more critical issue is that the original GRPO algorithm begins to break down within a limited number of training steps. Specifically, the probabilistic discrepancy for the same token between training and inference phases gradually increases. When this relative difference exceeds 5%, training effectively fails, posing a significant challenge for long-horizon reinforcement learning with lengthy sequences.
To address this issue, we introduced a key solution: distribution calibration via masked bidirectional truncation, which effectively narrows the gap between training and inference.
- Bidirectional Truncation: We truncate not only tokens where the training probability is significantly higher than the inference probability but also the reverse scenario where the training probability is much lower.
- Masking: Tokens with excessively large discrepancies are excluded from gradient computation.
For detailed algorithm introduction, please refer to our technical blog: https://ringtech.notion.site/icepop
SFT + RLVR + RLHF Multi-Stage Training
To comprehensively enhance the capabilities of Ring-flash-2.0, we designed a Two-staged RL pipeline. First, lightweight Long-CoT SFT equips the Ling-flash-2.0-base model with diverse thinking patterns. This is followed by RL training with Verifiable Rewards (RLVR) to continually stimulate the model’s reasoning potential. Finally, an RLHF phase is incorporated to improve the model’s general abilities.
During RL training, we compared directly combining RLVR and RLHF into joint training with the ultimately adopted Two-staged RL pipeline. Both approaches showed relatively similar effectiveness in our experiments. However, due to the differing difficulty levels of RLVR and RLHF tasks—with RLHF involving relatively shorter model rollouts—joint training resulted in more long-tail generations. From an engineering efficiency perspective, we ultimately adopted the Two-staged RL approach.
- Downloads last month
- 26
Model tree for redponike/Ring-flash-2.0-GGUF
Base model
inclusionAI/Ling-flash-base-2.0