Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

XingChen-AGI
/
Xing4.0-29B-A4B

Text Generation
Transformers
Safetensors
xing4_0
conversational
custom_code
Model card Files Files and versions
xet
Community
11

Instructions to use XingChen-AGI/Xing4.0-29B-A4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use XingChen-AGI/Xing4.0-29B-A4B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="XingChen-AGI/Xing4.0-29B-A4B", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("XingChen-AGI/Xing4.0-29B-A4B", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use XingChen-AGI/Xing4.0-29B-A4B with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "XingChen-AGI/Xing4.0-29B-A4B"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "XingChen-AGI/Xing4.0-29B-A4B",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/XingChen-AGI/Xing4.0-29B-A4B
  • SGLang

    How to use XingChen-AGI/Xing4.0-29B-A4B 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 "XingChen-AGI/Xing4.0-29B-A4B" \
        --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": "XingChen-AGI/Xing4.0-29B-A4B",
    		"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 "XingChen-AGI/Xing4.0-29B-A4B" \
            --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": "XingChen-AGI/Xing4.0-29B-A4B",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use XingChen-AGI/Xing4.0-29B-A4B with Docker Model Runner:

    docker model run hf.co/XingChen-AGI/Xing4.0-29B-A4B
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

When will DeepSeek-Harness be supported? Is there a sparse/linear attnversion available?

3
#11 opened 3 days ago by
crazyofapple

training data knowledge cutoff

1
#10 opened 3 days ago by
khtsly

Minimum number of A100/H100 GPUs to serve Xing4.0-29B-A4B at full 256K context?

2
#9 opened 4 days ago by
rtudriny

All 5 inference framework PRs are still pending — request merge timeline and interim guidance

2
#8 opened 4 days ago by
grow-nexus

Questions on safety alignment approach

1
#7 opened 4 days ago by
mavis8368

Question regarding active parameters, VRAM requirements

1
#6 opened 4 days ago by
LolerPanda

On par with Qwen3.6 35B for thinking mode; slightly weaker without thinking. Advice?

1
#5 opened 4 days ago by
springbarley

wen Xing5.0?

🚀 2
1
#4 opened 4 days ago by
21g

Version of vLLM/SGLang

3
#3 opened 4 days ago by
hahajinbu

Any plans for a larger Xing4.0 model?

🚀 1
1
#2 opened 4 days ago by
summergrove

文本输出质量比同等规模的Qwen好

1
#1 opened 6 days ago by
chinanet-v1
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs