Fix issue when load AutoModelForSeq2SeqLM model (#370)
This commit is contained in:
parent
62f91f78ac
commit
5fde8d9991
|
@ -266,7 +266,7 @@ def get_model(
|
||||||
quantize=quantize,
|
quantize=quantize,
|
||||||
trust_remote_code=trust_remote_code,
|
trust_remote_code=trust_remote_code,
|
||||||
)
|
)
|
||||||
if "AutoModelForSeq2SeqLM" in auto_map.keys:
|
if "AutoModelForSeq2SeqLM" in auto_map.keys():
|
||||||
return Seq2SeqLM(
|
return Seq2SeqLM(
|
||||||
model_id,
|
model_id,
|
||||||
revision,
|
revision,
|
||||||
|
|
Loading…
Reference in New Issue