Chris4K commited on
Commit
695384b
·
verified ·
1 Parent(s): c62a46b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, LocalAgent
7
 
8
 
9
  checkpoint = "mistralai/Mixtral-8x7B-Instruct-v0.1"
10
- model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", torch_dtype=torch.bfloat16)
11
  tokenizer = AutoTokenizer.from_pretrained(checkpoint)
12
 
13
  agent = LocalAgent(model, tokenizer)
 
7
 
8
 
9
  checkpoint = "mistralai/Mixtral-8x7B-Instruct-v0.1"
10
+ model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", torch_dtype=torch.bfloat16, load_in_8bit=True)
11
  tokenizer = AutoTokenizer.from_pretrained(checkpoint)
12
 
13
  agent = LocalAgent(model, tokenizer)