Views
No views yet
| Key | Value |
|---|---|
| Modality | Text |
| Training Stage | Pretraining |
| Params(Total / Activated) | 300B / 47B |
| Layers | 54 |
| Heads(Q/KV) | 64 / 8 |
| Text Experts(Total / Activated) | 64 / 8 |
| Vision Experts(Total / Activated) | 64 / 8 |
| Context Length | 131072 |
--quantization wint4. If you specify --quantization wint8, then resources for 8 GPUs are required.1python -m fastdeploy.entrypoints.openai.api_server \
2 --model baidu/ERNIE-4.5-300B-A47B-Paddle \
3 --port 8180 \
4 --metrics-port 8181 \
5 --quantization wint4 \
6 --tensor-parallel-size 8 \
7 --engine-worker-queue-port 8182 \
8 --max-model-len 32768 \
9 --max-num-seqs 321python -m fastdeploy.entrypoints.openai.api_server \
2 --model baidu/ERNIE-4.5-300B-A47B-W4A8C8-TP4-Paddle \
3 --port 8180 \
4 --metrics-port 8181 \
5 --engine-worker-queue-port 8182 \
6 --tensor-parallel-size 4 \
7 --max-model-len 32768 \
8 --max-num-seqs 321python -m fastdeploy.entrypoints.openai.api_server \
2 --model "baidu/ERNIE-4.5-300B-A47B-2Bits-Paddle" \
3 --port 8180 \
4 --metrics-port 8181 \
5 --engine-worker-queue-port 8182 \
6 --tensor-parallel-size 1 \
7 --max-model-len 32768 \
8 --max-num-seqs 1281from fastdeploy import LLM, SamplingParams
2
3prompts = [
4 "Hello, my name is",
5]
6
7sampling_params = SamplingParams(temperature=0.8, top_p=0.95, max_tokens=128)
8
9model = "baidu/ERNIE-4.5-300B-A47B-FP8-Paddle"
10llm = LLM(model=model, tensor_parallel_size=8, max_model_len=8192, num_gpu_blocks_override=1024, engine_worker_queue_port=9981)
11
12outputs = llm.generate(prompts, sampling_params)
13
14for output in outputs:
15 prompt = output.prompt
16 generated_text = output.outputs.text
17 print("generated_text", generated_text)Temperature=0.8, TopP=0.8.1ernie_search_zh_prompt = \
2'''下面你会收到当前时间、多个不同来源的参考文章和一段对话。你的任务是阅读多个参考文章,并根据参考文章中的信息回答对话中的问题。
3以下是当前时间和参考文章:
4---------
5#当前时间
6{date}
7
8#参考文章
9{references}
10
11---------
12请注意:
131. 回答必须结合问题需求和当前时间,对参考文章的可用性进行判断,避免在回答中使用错误或过时的信息。
142. 当参考文章中的信息无法准确地回答问题时,你需要在回答中提供获取相应信息的建议,或承认无法提供相应信息。
153. 你需要优先根据百科、官网、权威机构、专业网站等高权威性来源的信息来回答问题。
164. 回复需要综合参考文章中的相关数字、案例、法律条文、公式等信息,使你的答案更专业。
175. 当问题属于创作类任务时,需注意以下维度:
18 - 态度鲜明:观点、立场清晰明确,避免模棱两可,语言果断直接
19 - 文采飞扬:用词精准生动,善用修辞手法,增强感染力
20 - 有理有据:逻辑严密递进,结合权威数据/事实支撑论点
21---------
22下面请结合以上信息,回答问题,补全对话
23{question}'''1ernie_search_en_prompt = \
2'''
3Below you will be given the current time, multiple references from different sources, and a conversation. Your task is to read the references and use the information in them to answer the question in the conversation.
4Here are the current time and the references:
5---------
6#Current Time
7{date}
8
9#References
10{references}
11
12---------
13Please note:
141. Based on the question’s requirements and the current time, assess the usefulness of the references to avoid using inaccurate or outdated information in the answer.
152. If the references do not provide enough information to accurately answer the question, you should suggest how to obtain the relevant information or acknowledge that you are unable to provide it.
163. Prioritize using information from highly authoritative sources such as encyclopedias, official websites, authoritative institutions, and professional websites when answering questions.
174. Incorporate relevant numbers, cases, legal provisions, formulas, and other details from the references to make your answer more professional.
185. For creative tasks, keep these dimensions in mind:
19 - Clear attitude: Clear views and positions, avoid ambiguity, and use decisive and direct language
20 - Brilliant writing: Precise and vivid words, good use of rhetoric, and enhance the appeal
21 - Well-reasoned: Rigorous logic and progressive, combined with authoritative data/facts to support the argument
22
23---------
24Now, using the information above, answer the question and complete the conversation:
25{question}'''1##参考文章1
2标题:周杰伦
3文章发布时间:2025-04-20
4内容:周杰伦(Jay Chou),1979年1月18日出生于台湾省新北市,祖籍福建省永春县,华语流行乐男歌手、音乐人、演员、导演、编剧,毕业于淡江中学。2000年,发行个人首张音乐专辑《Jay》。...
5来源网站网址:baike.baidu.com
6来源网站的网站名:百度百科
7
8##参考文章2
9...1@misc{ernie2025technicalreport,
2 title={ERNIE 4.5 Technical Report},
3 author={Baidu ERNIE Team},
4 year={2025},
5 eprint={},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={}
9}