Fix issue when load AutoModelForSeq2SeqLM model

This commit is contained in:
CL-Shang 2023-05-25 15:12:05 +00:00
parent 951930fbff
commit 208e380ea8

View File

@ -266,7 +266,7 @@ def get_model(
quantize=quantize,
trust_remote_code=trust_remote_code,
)
if "AutoModelForSeq2SeqLM" in auto_map.keys:
if "AutoModelForSeq2SeqLM" in auto_map.keys():
return Seq2SeqLM(
model_id,
revision,