Text Generation
Transformers
Safetensors
English
Chinese
Xing4.1-Preview
conversational
custom_code
Eval Results
Run this model with HF Jobs
Run XingChen-AGI/Xing4.1-Preview on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/XingChen-AGI/Xing4.1-Preview. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/XingChen-AGI/Xing4.1-Preview on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/XingChen-AGI/Xing4.1-Preview. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/XingChen-AGI/Xing4.1-Preview. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use XingChen-AGI/Xing4.1-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use XingChen-AGI/Xing4.1-Preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="XingChen-AGI/Xing4.1-Preview", 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("XingChen-AGI/Xing4.1-Preview", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use XingChen-AGI/Xing4.1-Preview with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "XingChen-AGI/Xing4.1-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": "XingChen-AGI/Xing4.1-Preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/XingChen-AGI/Xing4.1-Preview
- SGLang
How to use XingChen-AGI/Xing4.1-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 "XingChen-AGI/Xing4.1-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": "XingChen-AGI/Xing4.1-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 "XingChen-AGI/Xing4.1-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": "XingChen-AGI/Xing4.1-Preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use XingChen-AGI/Xing4.1-Preview with Docker Model Runner:
docker model run hf.co/XingChen-AGI/Xing4.1-Preview
Commit History
5 days ago
-
Add eval results metadata
Verified signature0b05683 -
Delete eval_results.yaml
Verified signature2e56210 -
Create eval_results.yaml
Verified signature0f3475d -
Update README.md
Verified signature3f17372 -
Add evaluation results to model card metadata
Verified signature5fec925 -
Update README.md
Verified signature1c3a3e8 -
Update README.md
Verified signature2016fb2
10 days ago
-
Update README.md
Verified signature6e54e41 -
Upload model-00046-of-00046.safetensors with huggingface_hub
Verified signaturee510eab -
Upload folder using huggingface_hub
Verified signature4b93260 -
Upload folder using huggingface_hub
Verified signaturee9f6649 -
Upload folder using huggingface_hub
Verified signatureab0dac4 -
update
Verified signature5e68065 -
Upload folder using huggingface_hub
Verified signature19ed735 -
Upload folder using huggingface_hub
Verified signature5fc50dd -
Update README.md
Verified signatureaf89c84 -
Upload model-00021-of-00046.safetensors with huggingface_hub
Verified signaturea9084e7 -
Upload model-00022-of-00046.safetensors with huggingface_hub
Verified signature0f79996 -
Upload model-00024-of-00046.safetensors with huggingface_hub
Verified signatureeab521d -
Upload model-00023-of-00046.safetensors with huggingface_hub
Verified signaturedfd6ddd -
Upload folder using huggingface_hub
Verified signaturee6abd33 -
Upload folder using huggingface_hub
Verified signatureb3ee8fe -
Upload folder using huggingface_hub
Verified signature66cf254 -
Upload model-00026-of-00046.safetensors with huggingface_hub
Verified signaturebdda692 -
Upload model-00027-of-00046.safetensors with huggingface_hub
Verified signature0b7b109 -
Upload model-00025-of-00046.safetensors with huggingface_hub
Verified signature653576e -
Upload folder using huggingface_hub
Verified signatureff2cfd0 -
Upload folder using huggingface_hub
Verified signaturef211bca -
Upload folder using huggingface_hub
Verified signature9766e96 -
Upload model-00020-of-00046.safetensors with huggingface_hub
Verified signaturef023ae3 -
Upload folder using huggingface_hub
Verified signature9c24575 -
Upload folder using huggingface_hub
Verified signature1432c6e -
Upload folder using huggingface_hub
Verified signaturea889c39 -
Upload folder using huggingface_hub
Verified signature7dc4dc1 -
Upload folder using huggingface_hub
Verified signaturee60b360 -
Upload folder using huggingface_hub
Verified signatureaab0e43 -
Upload folder using huggingface_hub
Verified signature741f21b -
Upload folder using huggingface_hub
Verified signature1aa2f61 -
Upload folder using huggingface_hub
Verified signaturedaafe92 -
Upload folder using huggingface_hub
Verified signature9535882 -
Upload folder using huggingface_hub
Verified signaturea56d858 -
Upload folder using huggingface_hub
Verified signature6b2952a -
Update README.md
Verified signature77c8eeb -
Upload folder using huggingface_hub
Verified signatured0ec869 -
Upload folder using huggingface_hub
Verified signatureb76447d -
Upload folder using huggingface_hub
Verified signature088b7dd -
Upload folder using huggingface_hub
Verified signature288b835 -
Upload folder using huggingface_hub
Verified signatured0e9598 -
Upload folder using huggingface_hub
Verified signature832e172 -
Upload folder using huggingface_hub
Verified signaturec0d6d2f