Text Generation
Transformers
Safetensors
mixtral
yi
Mixture of Experts
conversational
text-generation-inference
4-bit precision
bitsandbytes
How to use from
SGLangUse 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 "cloudyu/4bit_quant_TomGrc_FusionNet_34Bx2_MoE_v0.1_DPO" \
--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": "cloudyu/4bit_quant_TomGrc_FusionNet_34Bx2_MoE_v0.1_DPO",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'Quick Links
this is a 4 bit DPO fine-tuned MoE model for TomGrc/FusionNet_34Bx2_MoE_v0.1
DPO Trainer
TRL supports the DPO Trainer for training language models from preference data, as described in the paper Direct Preference Optimization: Your Language Model is Secretly a Reward Model by Rafailov et al., 2023.
- Downloads last month
- 70

Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "cloudyu/4bit_quant_TomGrc_FusionNet_34Bx2_MoE_v0.1_DPO" \ --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": "cloudyu/4bit_quant_TomGrc_FusionNet_34Bx2_MoE_v0.1_DPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'