Update README.md
Browse files
README.md
CHANGED
@@ -53,7 +53,7 @@ import torch
|
|
53 |
tokenizer = AutoTokenizer.from_pretrained("Zyphra/Zamba2-1.2B")
|
54 |
model = AutoModelForCausalLM.from_pretrained("Zyphra/Zamba2-1.2B", device_map="cuda", torch_dtype=torch.bfloat16)
|
55 |
|
56 |
-
input_text = "
|
57 |
input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
|
58 |
|
59 |
outputs = model.generate(**input_ids, max_new_tokens=100)
|
|
|
53 |
tokenizer = AutoTokenizer.from_pretrained("Zyphra/Zamba2-1.2B")
|
54 |
model = AutoModelForCausalLM.from_pretrained("Zyphra/Zamba2-1.2B", device_map="cuda", torch_dtype=torch.bfloat16)
|
55 |
|
56 |
+
input_text = "What factors contributed to the fall of the Roman Empire?"
|
57 |
input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
|
58 |
|
59 |
outputs = model.generate(**input_ids, max_new_tokens=100)
|