Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -37,6 +37,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
37 |
MODEL_ID,
|
38 |
torch_dtype=torch.bfloat16,
|
39 |
device_map='auto',
|
|
|
40 |
trust_remote_code=True)
|
41 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
|
42 |
|
|
|
37 |
MODEL_ID,
|
38 |
torch_dtype=torch.bfloat16,
|
39 |
device_map='auto',
|
40 |
+
low_cpu_mem_usage=True,
|
41 |
trust_remote_code=True)
|
42 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
|
43 |
|