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

Method load_compress_model

fastchat/model/model_adapter.py:114–121  ·  view source on GitHub ↗
(self, model_path, device, torch_dtype, revision="main")

Source from the content-addressed store, hash-verified

112 return model, tokenizer
113
114 def load_compress_model(self, model_path, device, torch_dtype, revision="main"):
115 return load_compress_model(
116 model_path,
117 device,
118 torch_dtype,
119 use_fast=self.use_fast_tokenizer,
120 revision=revision,
121 )
122
123 def get_default_conv_template(self, model_path: str) -> Conversation:
124 return get_conv_template("one_shot")

Callers 1

load_modelFunction · 0.80

Calls 1

load_compress_modelFunction · 0.90

Tested by

no test coverage detected