mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-25 00:42: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"]
|
model_type = config_dict["model_type"]
|
||||||
|
|
||||||
if model_type == "gpt_bigcode":
|
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":
|
if model_type == "bloom":
|
||||||
return BLOOM(
|
return BLOOM(
|
||||||
model_id,
|
model_id=model_id,
|
||||||
revision,
|
revision=revision,
|
||||||
speculator=speculator,
|
speculator=speculator,
|
||||||
dtype=dtype,
|
dtype=dtype,
|
||||||
trust_remote_code=trust_remote_code,
|
trust_remote_code=trust_remote_code,
|
||||||
|
@ -623,7 +623,7 @@ class CausalLM(Model):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
model_id: str,
|
model_id: str,
|
||||||
model_class,
|
model_class: Optional[Type[torch.nn.Module]] = None,
|
||||||
revision: Optional[str] = None,
|
revision: Optional[str] = None,
|
||||||
quantize: Optional[str] = None,
|
quantize: Optional[str] = None,
|
||||||
speculator: Optional[str] = None,
|
speculator: Optional[str] = None,
|
||||||
|
Loading…
Reference in New Issue
Block a user