Text Generation
Transformers
Safetensors
English
Chinese
ernie5_5_moe
ERNIE5.5
MoE
agent
Eval Results
8-bit precision
fp8
Instructions to use baidu/ERNIE-5.5-Flash-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use baidu/ERNIE-5.5-Flash-Preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="baidu/ERNIE-5.5-Flash-Preview")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("baidu/ERNIE-5.5-Flash-Preview", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use baidu/ERNIE-5.5-Flash-Preview with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "baidu/ERNIE-5.5-Flash-Preview" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "baidu/ERNIE-5.5-Flash-Preview", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/baidu/ERNIE-5.5-Flash-Preview
- SGLang
How to use baidu/ERNIE-5.5-Flash-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 "baidu/ERNIE-5.5-Flash-Preview" \ --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": "baidu/ERNIE-5.5-Flash-Preview", "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 "baidu/ERNIE-5.5-Flash-Preview" \ --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": "baidu/ERNIE-5.5-Flash-Preview", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use baidu/ERNIE-5.5-Flash-Preview with Docker Model Runner:
docker model run hf.co/baidu/ERNIE-5.5-Flash-Preview
Update README.md
#2
by bin128 - opened
README.md
CHANGED
|
@@ -69,7 +69,7 @@ ERNIE 5.5 Flash Preview keeps the architecture of ERNIE 5.5 Flash Base and adds
|
|
| 69 |
| Experts | 512 routed (top-10) + 1 shared |
|
| 70 |
| Vocabulary | 201,216 |
|
| 71 |
| Context Length | 1,048,576 |
|
| 72 |
-
| Thinking |
|
| 73 |
| Precision | Blockwise FP8; routed experts in MXFP4 (W4A8, quantization-aware trained); FP8 KV cache; FP4 DSA indexer |
|
| 74 |
|
| 75 |
|
|
|
|
| 69 |
| Experts | 512 routed (top-10) + 1 shared |
|
| 70 |
| Vocabulary | 201,216 |
|
| 71 |
| Context Length | 1,048,576 |
|
| 72 |
+
| Thinking | On by default; turn off with `enable_thinking: false`; when on, `reasoning_effort` is low / medium / high (default high) |
|
| 73 |
| Precision | Blockwise FP8; routed experts in MXFP4 (W4A8, quantization-aware trained); FP8 KV cache; FP4 DSA indexer |
|
| 74 |
|
| 75 |
|