Update README.md
Browse files
README.md
CHANGED
|
@@ -39,8 +39,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 39 |
import torch
|
| 40 |
|
| 41 |
model_name = "mahing/historical-narrative-generator"
|
| 42 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
| 43 |
-
model
|
| 44 |
|
| 45 |
event = 'The Magna Carta'
|
| 46 |
prompt = f"Q: Craft a compelling first-person historical narrative that captures the significance of {event} and the essence of its era.
|
|
|
|
| 39 |
import torch
|
| 40 |
|
| 41 |
model_name = "mahing/historical-narrative-generator"
|
| 42 |
+
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-14B-Instruct-1M")
|
| 43 |
+
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", torch_dtype=torch.bfloat16)
|
| 44 |
|
| 45 |
event = 'The Magna Carta'
|
| 46 |
prompt = f"Q: Craft a compelling first-person historical narrative that captures the significance of {event} and the essence of its era.
|