Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

inclusionAI
/
Ring-lite-linear-preview

Text Generation
Transformers
Safetensors
Chinese
English
bailing_moe_linear
conversational
custom_code
Model card Files Files and versions
xet
Community
2

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
Ring-lite-linear-preview
34.1 GB
Ctrl+K
Ctrl+K
  • 7 contributors
History: 16 commits
m1ngcheng's picture
m1ngcheng
ariG23498's picture
ariG23498 HF Staff
Update README.md (#2)
a1f2ea6 verified 9 months ago
  • .gitattributes
    1.63 kB
    Upload 3 files about 1 year ago
  • LICENSE
    1.07 kB
    Upload LICENSE about 1 year ago
  • README.md
    6.13 kB
    Update README.md (#2) 9 months ago
  • ant-bailing.png
    58.7 kB
    Upload 3 files about 1 year ago
  • config.json
    1.41 kB
    init model about 1 year ago
  • configuration_bailing_moe_linear.py
    3.4 kB
    init model about 1 year ago
  • inference_speed.gif
    9.62 MB
    xet
    Update inference speed gif about 1 year ago
  • model-00001-of-00004.safetensors
    8.27 GB
    xet
    init model about 1 year ago
  • model-00002-of-00004.safetensors
    8.27 GB
    xet
    init model about 1 year ago
  • model-00003-of-00004.safetensors
    8.27 GB
    xet
    init model about 1 year ago
  • model-00004-of-00004.safetensors
    9.3 GB
    xet
    init model about 1 year ago
  • model.safetensors.index.json
    529 kB
    init model about 1 year ago
  • modeling_bailing_moe_linear.py
    85.2 kB
    init model about 1 year ago
  • special_tokens_map.json
    330 Bytes
    init model about 1 year ago
  • throughput.png
    467 kB
    xet
    Update throughput chart and improve README about 1 year ago
  • tokenizer.json
    6.1 MB
    init model about 1 year ago
  • tokenizer_config.json
    978 Bytes
    init model about 1 year ago