Update server/text_generation_server/models/__init__.py

This commit is contained in:
OlivierDehaene 2023-05-15 10:20:20 +02:00 committed by GitHub
parent cd8477bcf8
commit 05f98e8a33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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