fix: use already-quantized 4-bit model for test
This commit is contained in:
@@ -31,9 +31,9 @@ def test_model_loading():
|
|||||||
|
|
||||||
print(" Loading model...")
|
print(" Loading model...")
|
||||||
model = AutoModelForCausalLM.from_pretrained(
|
model = AutoModelForCausalLM.from_pretrained(
|
||||||
"/data/models/Ornith-1.0-35B",
|
"/data/models/Ornith-1.0-35B-4bit", # Use already-quantized 4-bit model
|
||||||
quantization_config=bnb_config,
|
|
||||||
device_map="auto",
|
device_map="auto",
|
||||||
|
torch_dtype=torch.float16,
|
||||||
trust_remote_code=True,
|
trust_remote_code=True,
|
||||||
low_cpu_mem_usage=True,
|
low_cpu_mem_usage=True,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user