Text Generation
Transformers
Safetensors
Chinese
English
bailing_moe_linear
conversational
custom_code
Instructions to use inclusionAI/Ring-lite-linear-preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inclusionAI/Ring-lite-linear-preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="inclusionAI/Ring-lite-linear-preview", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("inclusionAI/Ring-lite-linear-preview", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use inclusionAI/Ring-lite-linear-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-linear-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-linear-preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/inclusionAI/Ring-lite-linear-preview
- SGLang
How to use inclusionAI/Ring-lite-linear-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-linear-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-linear-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-linear-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-linear-preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use inclusionAI/Ring-lite-linear-preview with Docker Model Runner:
docker model run hf.co/inclusionAI/Ring-lite-linear-preview
Update README.md (#2)
Browse files- Update README.md (2fd59d49f8284230f77050b2bb24b1c2d53bf929)
Co-authored-by: Aritra Roy Gosthipaty <ariG23498@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -6,6 +6,7 @@ language:
|
|
| 6 |
base_model:
|
| 7 |
- inclusionAI/Ling-lite
|
| 8 |
pipeline_tag: text-generation
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
|
|
@@ -125,4 +126,4 @@ The long reasoning sft data: [Ring-lite-distill-preview-sft-data](https://huggin
|
|
| 125 |
This code repository is licensed under [the MIT License](https://huggingface.co/inclusionAI/Ring-lite-linear-preview/blob/main/LICENSE).
|
| 126 |
|
| 127 |
## Citation
|
| 128 |
-
[TBD]
|
|
|
|
| 6 |
base_model:
|
| 7 |
- inclusionAI/Ling-lite
|
| 8 |
pipeline_tag: text-generation
|
| 9 |
+
library_name: transformers
|
| 10 |
---
|
| 11 |
|
| 12 |
|
|
|
|
| 126 |
This code repository is licensed under [the MIT License](https://huggingface.co/inclusionAI/Ring-lite-linear-preview/blob/main/LICENSE).
|
| 127 |
|
| 128 |
## Citation
|
| 129 |
+
[TBD]
|