rphrp1985 commited on
Commit
021e949
·
verified ·
1 Parent(s): efb219b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -60,10 +60,10 @@ accelerator = Accelerator()
60
  model = AutoModelForCausalLM.from_pretrained(model_id, token= token,
61
  # torch_dtype= torch.uint8,
62
  torch_dtype=torch.float16,
63
- # load_in_4bit=True,
64
  # # # torch_dtype=torch.fl,
65
  attn_implementation="flash_attention_2",
66
- low_cpu_mem_usage=True,
67
  # device_map='cuda',
68
  # device_map=accelerator.device_map,
69
 
 
60
  model = AutoModelForCausalLM.from_pretrained(model_id, token= token,
61
  # torch_dtype= torch.uint8,
62
  torch_dtype=torch.float16,
63
+ load_in_8bit=True,
64
  # # # torch_dtype=torch.fl,
65
  attn_implementation="flash_attention_2",
66
+ # low_cpu_mem_usage=True,
67
  # device_map='cuda',
68
  # device_map=accelerator.device_map,
69