Spaces:
Sleeping
Sleeping
CyberNative
commited on
Update app.py
Browse files
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")
|
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|>")
|