RinInori commited on
Commit
0356490
1 Parent(s): aca0aa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"