Instructions to use inclusionAI/Ring-flash-2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inclusionAI/Ring-flash-2.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="inclusionAI/Ring-flash-2.0", 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-flash-2.0", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use inclusionAI/Ring-flash-2.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "inclusionAI/Ring-flash-2.0" # 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-flash-2.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/inclusionAI/Ring-flash-2.0
- SGLang
How to use inclusionAI/Ring-flash-2.0 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-flash-2.0" \ --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-flash-2.0", "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-flash-2.0" \ --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-flash-2.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use inclusionAI/Ring-flash-2.0 with Docker Model Runner:
docker model run hf.co/inclusionAI/Ring-flash-2.0
Commit History
-
Update README.md
Verified signature9c6cd94 -
Update README.md (#1)
Verified signature- Update README.md (efdb71b87c4746590942a56957cd65491a61e0d1) Co-authored-by: Ye Zhenjie <thinkthinking@users.noreply.huggingface.co>53a6fd9 -
Update README.md (#2)
Verified signature- Update README.md (864af67b878ff105b0258aada0ef903e33fc734c) Co-authored-by: Ye Zhenjie <thinkthinking@users.noreply.huggingface.co>487dd5b
-
Upload modeling_bailing_moe_v2.py with huggingface_hub
Verified signature3289614
-
Update README.md
Verified signatureb9e93f0
-
Add files using upload-large-folder tool
Verified signature55705cc -
Delete model-00020-of-00022.safetensors
Verified signature292fca7 -
Update README.md
Verified signature1d9ae33 -
Delete model-00015-of-00016.safetensors
Verified signature54a0493 -
Delete model-00014-of-00016.safetensors
Verified signaturee8e53b1 -
Delete model-00012-of-00016.safetensors
Verified signature3f5995b -
Delete model-00013-of-00016.safetensors
Verified signature7e3750f -
Delete model-00011-of-00016.safetensors
Verified signatureeeb2133 -
Delete model-00010-of-00016.safetensors
Verified signature6285422 -
Delete model-00009-of-00016.safetensors
Verified signature2a151be -
Delete model-00008-of-00016.safetensors
Verified signature887314b -
Delete model-00007-of-00016.safetensors
Verified signature44540b3 -
Delete model-00006-of-00016.safetensors
Verified signature7773e39 -
Delete model-00005-of-00016.safetensors
Verified signature2bf653b -
Delete model-00004-of-00016.safetensors
Verified signaturece00050 -
Delete model-00003-of-00016.safetensors
Verified signature8f85f3e -
Delete model-00002-of-00016.safetensors
Verified signature0f8fad4 -
Delete model-00001-of-00016.safetensors
Verified signature9a564e7 -
Delete model-00000-of-00016.safetensors
Verified signature8d7e50c -
Add files using upload-large-folder tool
Verified signature0fedb9c
-
Update README.md
Verified signature6b9e9d5 -
Update README.md
Verified signaturebb11c0b -
Update README.md
Verified signature9a8ed08 -
Update README.md
Verified signaturefacdb74 -
Add files using upload-large-folder tool
Verified signature4589f02 -
initial commit
Verified signaturef8f5202