Update README.md
Browse files
README.md
CHANGED
@@ -42,7 +42,7 @@ import torch
|
|
42 |
tokenizer = AutoTokenizer.from_pretrained("Zyphra/Zamba2-2.7B")
|
43 |
model = AutoModelForCausalLM.from_pretrained("Zyphra/Zamba2-2.7B", device_map="cuda", torch_dtype=torch.bfloat16)
|
44 |
|
45 |
-
input_text = "
|
46 |
input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
|
47 |
|
48 |
outputs = model.generate(**input_ids, max_new_tokens=100)
|
|
|
42 |
tokenizer = AutoTokenizer.from_pretrained("Zyphra/Zamba2-2.7B")
|
43 |
model = AutoModelForCausalLM.from_pretrained("Zyphra/Zamba2-2.7B", device_map="cuda", torch_dtype=torch.bfloat16)
|
44 |
|
45 |
+
input_text = "What factors contributed to the fall of the Roman Empire?"
|
46 |
input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
|
47 |
|
48 |
outputs = model.generate(**input_ids, max_new_tokens=100)
|