QuietImpostor
commited on
Commit
•
4dedaba
1
Parent(s):
a001288
Update README.md
Browse files
README.md
CHANGED
@@ -102,7 +102,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
102 |
import torch
|
103 |
|
104 |
model_path = "QuietImpostor/OpenELM-270M-Instruct-SonnOpus"
|
105 |
-
model = AutoModelForCausalLM.from_pretrained(model_path, torch_dtype=torch.float16)
|
106 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
107 |
|
108 |
def generate_response(prompt, max_length=256):
|
|
|
102 |
import torch
|
103 |
|
104 |
model_path = "QuietImpostor/OpenELM-270M-Instruct-SonnOpus"
|
105 |
+
model = AutoModelForCausalLM.from_pretrained(model_path, torch_dtype=torch.float16, trust_remote_code=True)
|
106 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
107 |
|
108 |
def generate_response(prompt, max_length=256):
|