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
Add evaluation results for ERNIE-5.5-Flash-Preview
This PR adds .eval_results/ERNIE-5.5-Flash-Preview.yaml with the scores from the model card that map to official benchmarks on the Hub. Once it's merged, they show on the model page and on each benchmark's leaderboard (eval-results docs).
Benchmarks added
- Terminal-Bench 4.0: 46.5
- DeepSWE: 71.2 (DeepSWE v1.1)
- Terminal-Bench-Science 0.1: 21.0
- APEX-Agents: 64.2 (APEX-Agents 1.1)
- Agents' Last Exam (CLI): 29.0
- SkillsBench v1.1: 73.5 (Text-only)
- Toolathlon-Verified: 75.0
- Humanity's Last Exam: 46.4 (Text-only subset, no tools)
Not added (no registered benchmark on the Hub, or no matching task)
ProgramBench, NL2Repo-Bench, CookieBench, BlenderWorld, AutomationBench, DRACO, SpreadsheetBench V2, OfficeQA Pro V2, MCP-Atlas, BrowseComp, AA-Omniscience, AA-LCR
Notes
Scores are copied from the published model card (ERNIE-5.5-Flash-Preview model card). They are self-reported, not verified runs. Please check: for Agents' Last Exam (CLI) I used the pass-rate task (ale-cli-pass-rate); tell me if the number is the score metric instead.
Docs on how eval results work: https://huggingface.co/docs/hub/eval-results. Leaderboard data guide: https://huggingface.co/docs/hub/leaderboard-data-guide