CyberNative commited on
Commit
3e76fc3
·
verified ·
1 Parent(s): b22d4f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ h1 {
47
 
48
  # Load the tokenizer and model
49
  tokenizer = AutoTokenizer.from_pretrained("CyberNative-AI/Colibri_8b_v0.1")
50
- model = AutoModelForCausalLM.from_pretrained("CyberNative-AI/Colibri_8b_v0.1", device_map="auto") # to("cuda:0")
51
  terminators = [
52
  tokenizer.eos_token_id,
53
  tokenizer.convert_tokens_to_ids("<|eot_id|>")
 
47
 
48
  # Load the tokenizer and model
49
  tokenizer = AutoTokenizer.from_pretrained("CyberNative-AI/Colibri_8b_v0.1")
50
+ model = AutoModelForCausalLM.from_pretrained("CyberNative-AI/Colibri_8b_v0.1", load_in_4bit=False, load_in_8bit=True, device_map="auto")
51
  terminators = [
52
  tokenizer.eos_token_id,
53
  tokenizer.convert_tokens_to_ids("<|eot_id|>")