Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import GenerationConfig, LlamaForCausalLM, LlamaTokenizer
|
|
6 |
from transformers import Trainer
|
7 |
|
8 |
BASE_MODEL = "TheBloke/stable-vicuna-13B-HF"
|
9 |
-
model = LlamaForCausalLM.from_pretrained(BASE_MODEL, load_in_8bit=True, torch_dtype=torch.float16, device_map="auto")
|
10 |
tokenizer = LlamaTokenizer.from_pretrained(BASE_MODEL)
|
11 |
tokenizer.pad_token_id = 0
|
12 |
tokenizer.padding_side = "left"
|
|
|
6 |
from transformers import Trainer
|
7 |
|
8 |
BASE_MODEL = "TheBloke/stable-vicuna-13B-HF"
|
9 |
+
model = LlamaForCausalLM.from_pretrained(BASE_MODEL, load_in_8bit=True, torch_dtype=torch.float16, device_map="auto", offload_folder="./cache")
|
10 |
tokenizer = LlamaTokenizer.from_pretrained(BASE_MODEL)
|
11 |
tokenizer.pad_token_id = 0
|
12 |
tokenizer.padding_side = "left"
|