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

Method get_default_conv_template

fastchat/model/model_adapter.py:722–727  ·  view source on GitHub ↗
(self, model_path: str)

Source from the content-addressed store, hash-verified

720 return False
721
722 def get_default_conv_template(self, model_path: str) -> Conversation:
723 if "-3." in model_path or "-3p" in model_path:
724 return get_conv_template("airoboros_v3")
725 if "spicyboros" in model_path or re.search(r"-(2\.[2-9]+)", model_path):
726 return get_conv_template("airoboros_v2")
727 return get_conv_template("airoboros_v1")
728
729 def load_model(self, model_path: str, from_pretrained_kwargs: dict):
730 if "mpt" not in model_path.lower():

Callers

nothing calls this directly

Calls 1

get_conv_templateFunction · 0.90

Tested by

no test coverage detected