Instructions to use inclusionAI/Ling-lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inclusionAI/Ling-lite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="inclusionAI/Ling-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/Ling-lite", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use inclusionAI/Ling-lite with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "inclusionAI/Ling-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/Ling-lite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/inclusionAI/Ling-lite
- SGLang
How to use inclusionAI/Ling-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/Ling-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/Ling-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/Ling-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/Ling-lite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use inclusionAI/Ling-lite with Docker Model Runner:
docker model run hf.co/inclusionAI/Ling-lite
Commit History
-
update
2c3e6be -
update
7440363
-
update config.json
5472194 -
add eos token and the end of assistant content
Verified signature1. **Original Implementation Flaw**: Failed to append End-of-Sequence (EOS) tokens to language model assistant responses in each conversation turn. 2. **Resulting Issue**: During inference, model couldn't recognize termination signals, leading to continuous text generation beyond the expected output end. 3. **Impact**: Compromised the integrity and controllability of conversational interactions.8dcffca
-
Update README.md
Verified signaturee2cad8a -
Update README.md
Verified signatureed7d815 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature8cd99d3 -
Upload model-00004-of-00004.safetensors with huggingface_hub
Verified signature5961890 -
Upload model-00003-of-00004.safetensors with huggingface_hub
Verified signaturecac4ee3 -
Upload model-00002-of-00004.safetensors with huggingface_hub
Verified signature5fcee37 -
Upload model-00001-of-00004.safetensors with huggingface_hub
Verified signature31ac832 -
Upload config.json with huggingface_hub
Verified signaturee738b25
-
Update README.md (#6)
Verified signature- Update README.md (d8ddd610214ce2e4d6edadf02cbd2b7134094e2d)dd55c8d
-
Update modeling_bailing_moe.py
Verified signaturee0f9154 -
Change Technical Report Link to permanent link (#5)
Verified signature- Change Technical Report Link to permanent link (a86b11914489d675f2e918403e398dcfe0663cbd) Co-authored-by: Xu Wang <gnawux@users.noreply.huggingface.co>d61eb8b
-
Update configuration_bailing_moe.py
Verified signaturea80ae6c
-
Add pipeline tag, library name and paper link (#1)
Verified signature- Add pipeline tag, library name and paper link (a86b628255b0ec8c7dfbf472d7979a402fa06e5f) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>07949ef
-
Update config.json
Verified signaturec315222
-
Update config.json
Verified signature6eeeb0e
-
Update README.md
Verified signaturef224e77 -
Update README.md
Verified signaturede46049
-
update model
5050103
-
Update modeling_bailing_moe.py
Verified signature671ff9b -
Update README.md
Verified signatureee5855c
-
Update README.md
Verified signature0e36218 -
Rename LICENCE.txt to LICENCE
Verified signature2152495 -
Upload LICENCE.txt
Verified signaturedd4d364 -
Update README.md
Verified signatureeea45e4 -
Upload ant-bailing.png
Verified signature412ef11 -
Update README.md
Verified signaturef87b53d -
Update README.md
Verified signature4fdc65c
-
init model repo
72f561e -
initial commit
Verified signatureac309a7