Instructions to use inclusionAI/Ring-lite-distill-preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inclusionAI/Ring-lite-distill-preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="inclusionAI/Ring-lite-distill-preview", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("inclusionAI/Ring-lite-distill-preview", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use inclusionAI/Ring-lite-distill-preview with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "inclusionAI/Ring-lite-distill-preview" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "inclusionAI/Ring-lite-distill-preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/inclusionAI/Ring-lite-distill-preview
- SGLang
How to use inclusionAI/Ring-lite-distill-preview 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 "inclusionAI/Ring-lite-distill-preview" \ --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": "inclusionAI/Ring-lite-distill-preview", "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 "inclusionAI/Ring-lite-distill-preview" \ --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": "inclusionAI/Ring-lite-distill-preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use inclusionAI/Ring-lite-distill-preview with Docker Model Runner:
docker model run hf.co/inclusionAI/Ring-lite-distill-preview
Commit History
-
Adding `transformers` as the library tag (#3)
Verified signature- Adding `transformers` as the library tag (4d362a4d136e023d3bc020deac000ece81ff6233) Co-authored-by: Aritra Roy Gosthipaty <ariG23498@users.noreply.huggingface.co>3c06a3b
-
Update README.md
Verified signature2f31ebf -
Update README.md
Verified signatured34921b
-
revert readme file
Verified signature50a1e69 -
create readme file
Verified signaturedcf1105
-
fix(typo): letter case fix in readme (#2)
Verified signature- fix(typo): letter case fix in readme (08aade48813b156c6e5dfbfb77323c9561829ba2)b10835d -
Update README.md
Verified signature89a089a -
Update README.md
Verified signaturef7a58cb
-
Update README.md
Verified signatured708c39 -
Update README.md
Verified signaturee59735f -
Update README.md
Verified signaturea1023d6 -
Update README.md
Verified signature18e44b7
-
Update README.md
Verified signature5003bf1 -
Update README.md
Verified signature9b25d2b
-
Update README.md
Verified signature5c102df -
Upload ant-bailing.png
Verified signature0e2d1d9 -
Update README.md
Verified signatureb6580d0 -
Create LICENSE
Verified signatureLICENSE319c3ff -
Update README.md
Verified signature# Ring-lite-distill <p align="center"> <img src="https://huggingface.co/inclusionAI/Ling-lite/resolve/main/ant-bailing.png" width="100"/> <p> <p align="center"> 🤗 <a href="https://huggingface.co/inclusionAI">Hugging Face</a> <p> ## Introduction Ring-lite-distill is an MoE LLM provided and open-sourced by InclusionAI, which has 16.8B parameters with 2.75B activated parameters. It was fine-tuned from [Ling-lite](https://modelscope.cn/models/inclusionAI/Ling-lite) using extensive reasoning-focused instruction data. This model delivers performance comparable to DeepSeek-R1-Distill-Qwen-7B on reasoning benchmarks while achieving better results on general benchmarks, especially superior performance on function-calling evaluation benchmarks (e.g., TEval, BFCl_v2) and instruction-following benchmarks (e.g., IFEval). This demonstrates that Ring-lite-distill is a more balanced and versatile model. Additionaly, it maintains competitive latency and throughput compared to other r…f990cc4
-
First model version
mattmenglie8aa6e2 -
initial commit
Verified signature93215a8