mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
Deprecation message.
This commit is contained in:
parent
d4d4321814
commit
bbbd9a6dd2
@ -555,7 +555,7 @@ def get_model(
|
||||
# TODO: fix how we determine model type for Mamba
|
||||
if "ssm_cfg" in config_dict:
|
||||
# *only happens in Mamba case
|
||||
model_type = "mamba"
|
||||
model_type = "ssm"
|
||||
else:
|
||||
raise RuntimeError(
|
||||
f"Could not determine model type for {model_id} revision {revision}"
|
||||
@ -624,6 +624,10 @@ def get_model(
|
||||
dtype=dtype,
|
||||
trust_remote_code=trust_remote_code,
|
||||
)
|
||||
elif model_type == "ssm":
|
||||
raise RuntimeError(
|
||||
"`ssm` models have been deprecated in favor of `mamba` models, which follow standard HF formats. Check out a list here: https://huggingface.co/models?search=mamba%20-hf"
|
||||
)
|
||||
|
||||
if model_id.startswith("facebook/galactica"):
|
||||
return CausalLM(
|
||||
|
Loading…
Reference in New Issue
Block a user