mahing commited on
Commit
5a0912d
·
verified ·
1 Parent(s): 9ef4ae1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -4
README.md CHANGED
@@ -42,7 +42,8 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
42
  model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16)
43
 
44
  event = 'The Magna Carta'
45
- prompt = f"Q: Craft a compelling first-person historical narrative that captures the significance of {event} and the essence of its era. Think step by step about the key events, historical accuracy, stylistic prose, emotions, and sensory details that define the period.\nA: "
 
46
 
47
  inputs = tokenizer.encode(prompt, return_tensors = 'pt').to(model.device)
48
  output = model.generate(inputs, max_new_tokens = 750, pad_token_id = tokenizer.pad_token_id, do_sample = True)
@@ -64,8 +65,8 @@ The output format should be a model’s response that provides a first-person hi
64
  Example Response: <br />
65
  ```
66
  A: 1215, England. I am a scribe in the court of King John, a man whose name is synonymous with tyranny and misrule. The land is in turmoil,
67
- the people are restless, and the barons are growing ever more impatient with the king's heavy-handed rule. They demand reforms, and they are
68
- not willing to be silenced any longer. It is a time of great uncertainty, but also one of hope for change.
69
 
70
  The air is thick with tension as I sit at my desk, quill in hand, preparing to record the momentous events unfolding before me.
71
  The Great Charter, or Magna Carta, is being drafted, and I am tasked with ensuring that every word is precise, every clause is clear.
@@ -90,7 +91,8 @@ on the page, each one carrying the hopes and dreams of a nation. As I finish the
90
  taking in the scene around me. The barons are gathered in a circle, their faces etched with determination and resolve.
91
  The king stands at the center, his expression unreadable, but I can see the wheels turning in his mind.
92
 
93
- And then, in a voice that carries across the room, the king speaks. "So be it," he says, his tone both resigned and defiant."Let it be so."
 
94
 
95
  In that moment, I know that history has been made. The Magna Carta is signed, and with it, a new era begins.
96
  An era where the rights of free men are enshrined in law, where justice is not just a word, but a reality.
 
42
  model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16)
43
 
44
  event = 'The Magna Carta'
45
+ prompt = f"Q: Craft a compelling first-person historical narrative that captures the significance of {event} and the essence of its era.
46
+ Think step by step about the key events, historical accuracy, stylistic prose, emotions, and sensory details that define the period.\nA: "
47
 
48
  inputs = tokenizer.encode(prompt, return_tensors = 'pt').to(model.device)
49
  output = model.generate(inputs, max_new_tokens = 750, pad_token_id = tokenizer.pad_token_id, do_sample = True)
 
65
  Example Response: <br />
66
  ```
67
  A: 1215, England. I am a scribe in the court of King John, a man whose name is synonymous with tyranny and misrule. The land is in turmoil,
68
+ the people are restless, and the barons are growing ever more impatient with the king's heavy-handed rule. They demand reforms,
69
+ and they are not willing to be silenced any longer. It is a time of great uncertainty, but also one of hope for change.
70
 
71
  The air is thick with tension as I sit at my desk, quill in hand, preparing to record the momentous events unfolding before me.
72
  The Great Charter, or Magna Carta, is being drafted, and I am tasked with ensuring that every word is precise, every clause is clear.
 
91
  taking in the scene around me. The barons are gathered in a circle, their faces etched with determination and resolve.
92
  The king stands at the center, his expression unreadable, but I can see the wheels turning in his mind.
93
 
94
+ And then, in a voice that carries across the room, the king speaks. "So be it," he says, his tone both resigned and defiant.
95
+ "Let it be so."
96
 
97
  In that moment, I know that history has been made. The Magna Carta is signed, and with it, a new era begins.
98
  An era where the rights of free men are enshrined in law, where justice is not just a word, but a reality.