mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-24 16:32:12 +00:00
Fix startcode issue
Signed-off-by: yuanwu <yuan.wu@intel.com>
This commit is contained in:
parent
c345c734a7
commit
636cdb4c43
@ -174,12 +174,12 @@ def get_model(
|
||||
model_type = config_dict["model_type"]
|
||||
|
||||
if model_type == "gpt_bigcode":
|
||||
return StarCoder(model_id, revision, dtype)
|
||||
return StarCoder(model_id=model_id, revision=revision, dtype=dtype)
|
||||
|
||||
if model_type == "bloom":
|
||||
return BLOOM(
|
||||
model_id,
|
||||
revision,
|
||||
model_id=model_id,
|
||||
revision=revision,
|
||||
speculator=speculator,
|
||||
dtype=dtype,
|
||||
trust_remote_code=trust_remote_code,
|
||||
|
@ -623,7 +623,7 @@ class CausalLM(Model):
|
||||
def __init__(
|
||||
self,
|
||||
model_id: str,
|
||||
model_class,
|
||||
model_class: Optional[Type[torch.nn.Module]] = None,
|
||||
revision: Optional[str] = None,
|
||||
quantize: Optional[str] = None,
|
||||
speculator: Optional[str] = None,
|
||||
|
Loading…
Reference in New Issue
Block a user