codys12 commited on
Commit
eb2677f
1 Parent(s): 35a83a6
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ MAX_INPUT_TOKEN_LENGTH = 4096
20
 
21
  if torch.cuda.is_available():
22
  model_id = "codys12/MergeLlama-7b"
23
- model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map=0,)
24
  model.cuda()
25
  tokenizer = AutoTokenizer.from_pretrained(model_id)
26
 
 
20
 
21
  if torch.cuda.is_available():
22
  model_id = "codys12/MergeLlama-7b"
23
+ model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map=0, cache_dir="/Data")
24
  model.cuda()
25
  tokenizer = AutoTokenizer.from_pretrained(model_id)
26