quancute commited on
Commit
a1a5866
·
verified ·
1 Parent(s): 9cd88d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -12,12 +12,10 @@ print('device =', device)
12
  model = AutoModelForCausalLM.from_pretrained(
13
  'Viet-Mistral/Vistral-7B-Chat',
14
  torch_dtype=torch.bfloat16, # change to torch.float16 if you're using V100
15
- device_map="auto",
16
- use_cache=True,
17
- cache_dir='./hf_cache'
18
  )
19
 
20
- tokenizer = AutoTokenizer.from_pretrained(MODEL, cache_dir='./hf_cache')
21
 
22
  # def generate_output(input_text:str,
23
  # top_p:float=0.95,
 
12
  model = AutoModelForCausalLM.from_pretrained(
13
  'Viet-Mistral/Vistral-7B-Chat',
14
  torch_dtype=torch.bfloat16, # change to torch.float16 if you're using V100
15
+ device_map="auto"
 
 
16
  )
17
 
18
+ tokenizer = AutoTokenizer.from_pretrained(MODEL)
19
 
20
  # def generate_output(input_text:str,
21
  # top_p:float=0.95,