Update server/text_generation_server/models/__init__.py

This commit is contained in:
Nicolas Patry 2023-05-10 12:30:28 +02:00 committed by GitHub
parent 7e11c5d92b
commit bef3458ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ def get_model(
config = AutoConfig.from_pretrained(model_id, revision=revision) config = AutoConfig.from_pretrained(model_id, revision=revision)
model_type = config.model_type model_type = config.model_type
if model_type == "gpt_bigcode": if model_type == "gpt_bigcode" or model_id.startswith("bigcode/"):
if sharded: if sharded:
if not FLASH_ATTENTION: if not FLASH_ATTENTION:
raise NotImplementedError( raise NotImplementedError(