Instructions to use inclusionAI/Ring-lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inclusionAI/Ring-lite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="inclusionAI/Ring-lite", 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", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use inclusionAI/Ring-lite with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "inclusionAI/Ring-lite" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/inclusionAI/Ring-lite
- SGLang
How to use inclusionAI/Ring-lite 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use inclusionAI/Ring-lite with Docker Model Runner:
docker model run hf.co/inclusionAI/Ring-lite
Commit History
-
Update README.md
Verified signaturea668bb4 -
Update README.md
Verified signature4812a9f -
Upload performance.png
Verified signature7b510f5 -
Delete performace.png
Verified signature7b49d4c -
Upload performace.png
Verified signaturefc90f84 -
Update README.md
Verified signature3ba64be
-
delete performace.pdf
LandyGuo428a664 -
add model file
LandyGuo7a5bca7 -
Update README.md
Verified signature4c1ec97 -
Update README.md
Verified signature846cc24 -
Update README.md
Verified signaturecd11c53 -
Update README.md
Verified signature83f881f -
Create LICENSE
Verified signaturecfba75c -
Update README.md
Verified signaturecd23a53 -
Update README.md
Verified signature4652b0b -
Update README.md
Verified signaturec5a9888 -
Update README.md
Verified signature51b0ea1 -
Update README.md
Verified signature210ae1a -
Update README.md
Verified signature8c0aaff -
Update README.md
Verified signature2898468 -
Update README.md
Verified signatureba61b5c -
Update README.md
Verified signatureac80031 -
Update README.md
Verified signature6374879 -
Update README.md
Verified signature8738268 -
Update README.md
Verified signature1446c36 -
Upload performance.png
Verified signaturea1fa2c6 -
Update README.md
Verified signatureed2f740 -
Upload performance.pdf
Verified signature4631e4c -
Update README.md
Verified signature4df46b0 -
Update README.md
Verified signaturea6d0ae3 -
Update README.md
Verified signature0b0286f -
Upload ant-bailing.png
Verified signature66ca3a5 -
Update README.md
Verified signature3fe053d -
Create README.md
Verified signaturee79166d -
initial commit
Verified signaturedae7b6e