MCPcopy
hub / github.com/lm-sys/FastChat / get_conversation_template

Function get_conversation_template

fastchat/model/model_adapter.py:378–381  ·  view source on GitHub ↗

Get the default conversation template.

(model_path: str)

Source from the content-addressed store, hash-verified

376
377
378def get_conversation_template(model_path: str) -> Conversation:
379 """Get the default conversation template."""
380 adapter = get_model_adapter(model_path)
381 return adapter.get_default_conv_template(model_path)
382
383
384def get_generate_stream_function(model: torch.nn.Module, model_path: str):

Callers 15

mainFunction · 0.90
__init__Method · 0.90
_prepare_text_with_imageFunction · 0.90
make_conv_templateMethod · 0.90
mainFunction · 0.90
new_chatFunction · 0.90
get_model_answersFunction · 0.90
get_answerFunction · 0.90
run_judge_singleFunction · 0.90
run_judge_pairFunction · 0.90
preprocessFunction · 0.90
preprocessFunction · 0.90

Calls 2

get_model_adapterFunction · 0.85

Tested by 1

mainFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…