Update seq2seq_lm.py

This commit is contained in:
Florian Zimmermeister 2023-07-11 18:37:51 +02:00 committed by GitHub
parent 780198b9e4
commit 64accc59f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ class Seq2SeqLM(Model):
device_map="auto"
if torch.cuda.is_available() and torch.cuda.device_count() > 1
else None,
load_in_8bit=quantize == "bitsandbytes",
load_in_4bit=quantize == "bitsandbytes",
trust_remote_code=trust_remote_code,
)
if torch.cuda.is_available() and torch.cuda.device_count() == 1: