Commit
•
3ff7ef4
1
Parent(s):
ec74fce
Code Fix for Inference Example (#1)
Browse files- Code Fix for Inference Example (1c64bc5611cca49ab7261c86d3a5bed3e9abf469)
Co-authored-by: Tyler Odenthal <todenthal@users.noreply.huggingface.co>
README.md
CHANGED
@@ -68,11 +68,11 @@ device = "cuda"
|
|
68 |
model_name = "arcee-ai/Llama-3-SEC"
|
69 |
|
70 |
model = AutoModelForCausalLM.from_pretrained(
|
71 |
-
|
72 |
torch_dtype="auto",
|
73 |
device_map="auto"
|
74 |
)
|
75 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
76 |
|
77 |
prompt = "What are the key regulatory considerations for a company planning to conduct an initial public offering (IPO) in the United States?"
|
78 |
messages = [
|
|
|
68 |
model_name = "arcee-ai/Llama-3-SEC"
|
69 |
|
70 |
model = AutoModelForCausalLM.from_pretrained(
|
71 |
+
model_name,
|
72 |
torch_dtype="auto",
|
73 |
device_map="auto"
|
74 |
)
|
75 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
76 |
|
77 |
prompt = "What are the key regulatory considerations for a company planning to conduct an initial public offering (IPO) in the United States?"
|
78 |
messages = [
|