Instructions to use rty813/Xing4.0-29B-A4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rty813/Xing4.0-29B-A4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rty813/Xing4.0-29B-A4B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("rty813/Xing4.0-29B-A4B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rty813/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 "rty813/Xing4.0-29B-A4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rty813/Xing4.0-29B-A4B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rty813/Xing4.0-29B-A4B
- SGLang
How to use rty813/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 "rty813/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/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rty813/Xing4.0-29B-A4B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "rty813/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/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rty813/Xing4.0-29B-A4B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rty813/Xing4.0-29B-A4B with Docker Model Runner:
docker model run hf.co/rty813/Xing4.0-29B-A4B
Xing4.0-29B-A4B (bf16)
Full-precision (bf16) PyTorch port of Venastine-Research/Xing4.0-29B-A4B, for vLLM / TGI / Xinference / transformers users who don't want the GGUF quant.
- Format:
pytorch_model.bin(bf16). safetensors conversion in progress. - Architecture: identical to the original — drop-in for
AutoModelForCausalLM.from_pretrained("rty813/Xing4.0-29B-A4B"). - Also loads in vLLM (
vllm serve rty813/Xing4.0-29B-A4B) and Xinference (search "Xing4.0-29B-A4B").
Original model card:
library_name: transformers license: apache-2.0 pipeline_tag: text-generation base_model: - XingChen-AGI/Xing4.0-29B-A4B
Xing4.0-29B-A4B
This repository provides the model weights and configuration files for Xing4.0-29B-A4B in Hugging Face Transformers format, compatible with Transformers, vLLM, SGLang, KTransformers, and other mainstream inference frameworks.
Xing4.0-29B-A4B is a next-generation large language model in the Xing series (formerly TeleChat), developed by China Telecom Artificial Intelligence Technology Co., Ltd. With 29B total parameters and only 4B activated per token, it natively supports a 256K context length, extensible to 512K. It is the first model of this scale trained entirely on the Ascend NPU platform with the MindSpore framework, and deeply optimized for complex engineering tasks.
For more information, please refer to our GitHub repository.
Highlights
- Agent-Oriented Architecture: Built on the mHC + MLA + MTP architecture, supporting multi-step planning, tool calling, and complex reasoning chain execution, ensuring task coherence and execution stability under long contexts.
- Deep Co-optimization with Ascend NPU: Adapted for Ascend 910C clusters using MindSpore/MindFormers, including feature adaptation for mHC and fused operator development, enabling stable and efficient training on the Ascend platform.
- **Significan
- Downloads last month
- 54
Model tree for rty813/Xing4.0-29B-A4B
Base model
XingChen-AGI/Xing4.0-29B-A4B