MCPcopy
hub / github.com/ymcui/Chinese-LLaMA-Alpaca-2 / generate_prompt

Function generate_prompt

scripts/inference/speculative_sample.py:423–424  ·  view source on GitHub ↗
(instruction, system_prompt=DEFAULT_SYSTEM_PROMPT)

Source from the content-addressed store, hash-verified

421 )
422
423 def generate_prompt(instruction, system_prompt=DEFAULT_SYSTEM_PROMPT):
424 return TEMPLATE.format_map({'instruction': instruction,'system_prompt': system_prompt})
425
426 inputs = ["我能用lightning数据线给安卓手机充电吗?"]
427

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected