Prot10 commited on
Commit
9a93a48
1 Parent(s): 2c90742

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,8 +24,8 @@ from transformers import LlamaTokenizer, LlamaForCausalLM, GenerationConfig
24
  tokenizer = LlamaTokenizer.from_pretrained("decapoda-research/llama-7b-hf")
25
  model = LlamaForCausalLM.from_pretrained(
26
  "decapoda-research/llama-7b-hf",
27
- load_in_8bit=True,
28
- device_map="auto",
29
  )
30
 
31
  def evaluate(question):
 
24
  tokenizer = LlamaTokenizer.from_pretrained("decapoda-research/llama-7b-hf")
25
  model = LlamaForCausalLM.from_pretrained(
26
  "decapoda-research/llama-7b-hf",
27
+ load_in_8bit_fp32_cpu_offload=True
28
+ device_map="cpu",
29
  )
30
 
31
  def evaluate(question):