Update rw.py

This commit is contained in:
Florian Zimmermeister 2023-07-11 18:36:46 +02:00 committed by GitHub
parent 198e6179ef
commit 377c01e21e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ class RW(CausalLM):
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: