Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,12 +12,11 @@ BASE_MODEL = "TheBloke/stable-vicuna-13B-HF"
|
|
12 |
device_map = {0: [0, 1, 2], 1: [3, 4, 5]}
|
13 |
|
14 |
model = LlamaForCausalLM.from_pretrained(
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
offload_folder="./cache"
|
21 |
)
|
22 |
|
23 |
tokenizer = LlamaTokenizer.from_pretrained(BASE_MODEL)
|
|
|
12 |
device_map = {0: [0, 1, 2], 1: [3, 4, 5]}
|
13 |
|
14 |
model = LlamaForCausalLM.from_pretrained(
|
15 |
+
MODEL_NAME,
|
16 |
+
torch_dtype=torch.float16,
|
17 |
+
load_in_8bit=True,
|
18 |
+
device_map="auto",
|
19 |
+
offload_folder="./cache",
|
|
|
20 |
)
|
21 |
|
22 |
tokenizer = LlamaTokenizer.from_pretrained(BASE_MODEL)
|