saucam commited on
Commit
03d31e3
β€’
1 Parent(s): 5128e6a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -1
README.md CHANGED
@@ -51,7 +51,7 @@ import transformers
51
  import torch
52
 
53
  model = "saucam/aqua-smaug-0.3-8B"
54
- messages = [{"role": "user", "content": "What is a large language model?"}]
55
 
56
  tokenizer = AutoTokenizer.from_pretrained(model)
57
  prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
@@ -64,4 +64,33 @@ pipeline = transformers.pipeline(
64
 
65
  outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
66
  print(outputs[0]["generated_text"])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  ```
 
51
  import torch
52
 
53
  model = "saucam/aqua-smaug-0.3-8B"
54
+ messages = [{"role": "user", "content": "A carnival snack booth made $50 selling popcorn each day. It made three times as much selling cotton candy. For a 5-day activity, the booth has to pay $30 rent and $75 for the cost of the ingredients. How much did the booth earn for 5 days after paying the rent and the cost of ingredients? How much did the booth make selling cotton candy each day?"}]
55
 
56
  tokenizer = AutoTokenizer.from_pretrained(model)
57
  prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
 
64
 
65
  outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
66
  print(outputs[0]["generated_text"])
67
+ ```
68
+
69
+ output
70
+
71
+ ```
72
+ Loading checkpoint shards: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [00:27<00:00, 13.83s/it]
73
+ Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
74
+ <|begin_of_text|><|start_header_id|>user<|end_header_id|>
75
+
76
+ A carnival snack booth made $50 selling popcorn each day. It made three times as much selling cotton candy. For a 5-day activity, the booth has to pay $30 rent and $75 for the cost of the ingredients. How much did the booth earn for 5 days after paying the rent and the cost of ingredients? How much did the booth make selling cotton candy each day?<|eot_id|><|start_header_id|>assistant<|end_header_id|>
77
+
78
+ The carnival snack booth made $50 selling popcorn each day. Since it made three times as much selling cotton candy, it made $50 * 3 = $150 each day selling cotton candy.
79
+
80
+ For a 5-day activity, the booth made $50 * 5 = $250 selling popcorn and $150 * 5 = $750 selling cotton candy.
81
+
82
+ The booth has to pay $30 rent and $75 for the cost of the ingredients for 5 days, which is a total of $30 + $75 = $105.
83
+
84
+ After paying the rent and the cost of ingredients, the booth earned $250 + $750 - $105 = $895 for 5 days.
85
+
86
+ Therefore, the booth made $150 each day selling cotton candy.
87
+
88
+ So, the total amount earned by selling popcorn is $250 and by selling cotton candy is $750. After deducting the rent and cost of ingredients, the booth earned a total of $895 for the 5-day activity.
89
+
90
+ Hope this helps! Let me know if you have any more questions. 😊
91
+
92
+ ### References
93
+ - [Carnival Booth Earnings Calculation](https://www.calculator.net/calculators/math/equation-calculator.html) (for verifying calculations)
94
+ - [Cotton Candy
95
+
96
  ```