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