mahing commited on
Commit
3bd4864
·
verified ·
1 Parent(s): 738cb58

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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(model_name)
43
- model = AutoModelForCausalLM.from_pretrained(model_name, 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.
 
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.