Spaces:
Paused
Paused
storage
Browse files
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 |
|