bnolton commited on
Commit
1a2d97f
·
verified ·
1 Parent(s): 81649ea

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -213
README.md CHANGED
@@ -8,7 +8,17 @@ base_model:
8
  ---
9
 
10
  ## Introduction
11
-
 
 
 
 
 
 
 
 
 
 
12
 
13
  ## Data
14
  The dataset used in training consists of 1014 question-answer pairs on the topic of inference for the AP Statistics exam created by the owner of this model.
@@ -37,28 +47,28 @@ This may be due to the specific nature of the object of the model itself (infere
37
  So, while the benchmark scores do not indicate success, the model does perform better in real world scenarios indicating the finetuning was a success.
38
  The model was compared to Llama-3.2-3B-Instruct and Mistral7B-Instruct-v0.2 and show superior metrics on the mmlu_high_school_statistics and minerva_math while having a comparable race metric.
39
 
40
- | Model | mmlu_high_school_statistics | minerva_math | race | bert_prec | bert_recall | bert_f1 |
41
- |--------------------------|-----------------------------|--------------|------|-----------|-------------|---------|
42
- | AP_Stat_Inference_Helper | 0.72 | 0.45 | 0.32 | 0.75 | 0.85 | 0.80 |
43
- | Qwen3-4B-Instruct-2507 | 0.72 | 0.45 | 0.32 | 0.75 | 0.85 | 0.80 |
44
- | Llama-3.2-3B-Instruct | 0.30 | 0.29 | 0.38 | x.xx | x.xx | x.xx |
45
- | Mistral7B-Instruct-v0.2 | 0.46 | 0.09 | 0.38 | x.xx | x.xx | x.xx |
46
 
47
  ## Usage and Intended Use
48
 
49
 
50
  ## Prompt Format
51
- pipe = pipeline(
52
- "text-generation",
53
- model = model,
54
- dtype = torch.bfloat16,
55
- device_map = "auto",
56
- tokenizer = tokenizer,
57
- max_new_tokens = 500,
58
- do_sample = False)
59
- formatted_prompt = f"Q: YOUR QUESTION HERE \n\nA: "
60
- text = pipe(formatted_prompt)
61
- print(text[0]['generated_text'])
62
 
63
  ## Expected Output Format
64
  Q: Past experience is that when individuals are approached with a request to fill out and return a particular questionnaire in a provided stamped and addressed envelope, the response rate is 40%. An investigator believes that if the person distributing the questionnaire were stigmatized in some obvious way, potential respondents would feel sorry for the distributor and thus tend to respond at a rate higher than 40%. To test this theory, a distributor wore an eye patch. Of the 200 questionnaires distributed by this individual, 109 were returned. Does this provide evidence that the response rate in this situation is greater than the previous rate of 40%? State and test the appropriate hypotheses using a significance level of 0.05.
@@ -91,199 +101,5 @@ The dataset for this model is solely focus on the inference procedures for the A
91
  The specific inference procedures are 1 and 2 sample means and proportions confidence intervals and significance tests (no chi-sqaure or inference for slope).
92
  While the AP test for some of these problems would require the drawing of a curve, this model is text only.
93
  The model may use some terms that are being phased out due to the source of the problems in the dataset being published before the AP Statistics rework (for example: indepencence instead of 10% check and normality instead of large counts condition).
 
94
 
95
-
96
- # Model Card for Model ID
97
-
98
- <!-- Provide a quick summary of what the model is/does. -->
99
-
100
-
101
-
102
- ## Model Details
103
-
104
- ### Model Description
105
-
106
- <!-- Provide a longer summary of what this model is. -->
107
-
108
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
109
-
110
- - **Developed by:** [More Information Needed]
111
- - **Funded by [optional]:** [More Information Needed]
112
- - **Shared by [optional]:** [More Information Needed]
113
- - **Model type:** [More Information Needed]
114
- - **Language(s) (NLP):** [More Information Needed]
115
- - **License:** [More Information Needed]
116
- - **Finetuned from model [optional]:** [More Information Needed]
117
-
118
- ### Model Sources [optional]
119
-
120
- <!-- Provide the basic links for the model. -->
121
-
122
- - **Repository:** [More Information Needed]
123
- - **Paper [optional]:** [More Information Needed]
124
- - **Demo [optional]:** [More Information Needed]
125
-
126
- ## Uses
127
-
128
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
129
-
130
- ### Direct Use
131
-
132
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
133
-
134
- [More Information Needed]
135
-
136
- ### Downstream Use [optional]
137
-
138
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
139
-
140
- [More Information Needed]
141
-
142
- ### Out-of-Scope Use
143
-
144
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
145
-
146
- [More Information Needed]
147
-
148
- ## Bias, Risks, and Limitations
149
-
150
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
151
-
152
- [More Information Needed]
153
-
154
- ### Recommendations
155
-
156
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
157
-
158
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
159
-
160
- ## How to Get Started with the Model
161
-
162
- Use the code below to get started with the model.
163
-
164
- [More Information Needed]
165
-
166
- ## Training Details
167
-
168
- ### Training Data
169
-
170
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
171
-
172
- [More Information Needed]
173
-
174
- ### Training Procedure
175
-
176
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
177
-
178
- #### Preprocessing [optional]
179
-
180
- [More Information Needed]
181
-
182
-
183
- #### Training Hyperparameters
184
-
185
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
186
-
187
- #### Speeds, Sizes, Times [optional]
188
-
189
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
190
-
191
- [More Information Needed]
192
-
193
- ## Evaluation
194
-
195
- <!-- This section describes the evaluation protocols and provides the results. -->
196
-
197
- ### Testing Data, Factors & Metrics
198
-
199
- #### Testing Data
200
-
201
- <!-- This should link to a Dataset Card if possible. -->
202
-
203
- [More Information Needed]
204
-
205
- #### Factors
206
-
207
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
208
-
209
- [More Information Needed]
210
-
211
- #### Metrics
212
-
213
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
214
-
215
- [More Information Needed]
216
-
217
- ### Results
218
-
219
- [More Information Needed]
220
-
221
- #### Summary
222
-
223
-
224
-
225
- ## Model Examination [optional]
226
-
227
- <!-- Relevant interpretability work for the model goes here -->
228
-
229
- [More Information Needed]
230
-
231
- ## Environmental Impact
232
-
233
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
234
-
235
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
236
-
237
- - **Hardware Type:** [More Information Needed]
238
- - **Hours used:** [More Information Needed]
239
- - **Cloud Provider:** [More Information Needed]
240
- - **Compute Region:** [More Information Needed]
241
- - **Carbon Emitted:** [More Information Needed]
242
-
243
- ## Technical Specifications [optional]
244
-
245
- ### Model Architecture and Objective
246
-
247
- [More Information Needed]
248
-
249
- ### Compute Infrastructure
250
-
251
- [More Information Needed]
252
-
253
- #### Hardware
254
-
255
- [More Information Needed]
256
-
257
- #### Software
258
-
259
- [More Information Needed]
260
-
261
- ## Citation [optional]
262
-
263
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
264
-
265
- **BibTeX:**
266
-
267
- [More Information Needed]
268
-
269
- **APA:**
270
-
271
- [More Information Needed]
272
-
273
- ## Glossary [optional]
274
-
275
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
276
-
277
- [More Information Needed]
278
-
279
- ## More Information [optional]
280
-
281
- [More Information Needed]
282
-
283
- ## Model Card Authors [optional]
284
-
285
- [More Information Needed]
286
-
287
- ## Model Card Contact
288
-
289
- [More Information Needed]
 
8
  ---
9
 
10
  ## Introduction
11
+ Teaching is a lot like herding cats or playing whack-a-mole. Everyone learns in different styles, at different rates, and has different questions.
12
+ While there is much to be said for the valiant effort our teachers gives in addressing all of these and more within a classroom setting, teachers are finite.
13
+ Students need more help than teachers can provide, at times that teachers cannot provide.
14
+ Thus enters the role of tutors, but these are often scheduled and for a specific subject. What heppens when a student needs help outside of their normal scheduled programming?
15
+ Enter the rise of AI tutors. AI tutors can be access at any time, for any subject.
16
+ We do want to ensure that our students are getting accurate information and not a hallucination that will steer our student down a wrong path of knowledge.
17
+ This finetuned LLM, seeks to do just that, specifically for AP Statistics.
18
+ Due to the broad scope of AP Statistics and the text-only nature of this LLM, it was necessary to narrow down the scope of this model.
19
+ The chosen task could be done text only (mostly) and is a super important topic on the AP exam: inference.
20
+ Inference procdures count for about 15% of the mulitple choice and are guaranteed to be one full free response question (in the vain of the example below) plus the possibility of more.
21
+ That makes this topic within AP Statistics perfect for a finetune model to help students understand the topic and score higher on the AP exam.
22
 
23
  ## Data
24
  The dataset used in training consists of 1014 question-answer pairs on the topic of inference for the AP Statistics exam created by the owner of this model.
 
47
  So, while the benchmark scores do not indicate success, the model does perform better in real world scenarios indicating the finetuning was a success.
48
  The model was compared to Llama-3.2-3B-Instruct and Mistral7B-Instruct-v0.2 and show superior metrics on the mmlu_high_school_statistics and minerva_math while having a comparable race metric.
49
 
50
+ | Model | mmlu_high_school_statistics | minerva_math | race | bert: precision | bert: recall | bert: f1 |
51
+ |--------------------------|-----------------------------|--------------|------|-----------------|--------------|----------|
52
+ | AP_Stat_Inference_Helper | 0.72 | 0.45 | 0.32 | 0.75 | 0.85 | 0.80 |
53
+ | Qwen3-4B-Instruct-2507 | 0.72 | 0.45 | 0.32 | 0.75 | 0.85 | 0.80 |
54
+ | Llama-3.2-3B-Instruct | 0.30 | 0.29 | 0.38 | 0.77 | 0.86 | 0.81 |
55
+ | Mistral7B-Instruct-v0.2 | 0.46 | 0.09 | 0.38 | 0.79 | 0.86 | 0.82 |
56
 
57
  ## Usage and Intended Use
58
 
59
 
60
  ## Prompt Format
61
+ pipe = pipeline(
62
+ "text-generation",
63
+ model = model,
64
+ dtype = torch.bfloat16,
65
+ device_map = "auto",
66
+ tokenizer = tokenizer,
67
+ max_new_tokens = 500,
68
+ do_sample = False)
69
+ formatted_prompt = f"Q: YOUR QUESTION HERE \n\nA: "
70
+ text = pipe(formatted_prompt)
71
+ print(text[0]['generated_text'])
72
 
73
  ## Expected Output Format
74
  Q: Past experience is that when individuals are approached with a request to fill out and return a particular questionnaire in a provided stamped and addressed envelope, the response rate is 40%. An investigator believes that if the person distributing the questionnaire were stigmatized in some obvious way, potential respondents would feel sorry for the distributor and thus tend to respond at a rate higher than 40%. To test this theory, a distributor wore an eye patch. Of the 200 questionnaires distributed by this individual, 109 were returned. Does this provide evidence that the response rate in this situation is greater than the previous rate of 40%? State and test the appropriate hypotheses using a significance level of 0.05.
 
101
  The specific inference procedures are 1 and 2 sample means and proportions confidence intervals and significance tests (no chi-sqaure or inference for slope).
102
  While the AP test for some of these problems would require the drawing of a curve, this model is text only.
103
  The model may use some terms that are being phased out due to the source of the problems in the dataset being published before the AP Statistics rework (for example: indepencence instead of 10% check and normality instead of large counts condition).
104
+ The example above was copied from acutal output from this finetuned LLM. And while it is a great improvement on the base model, it still leaves a few things to be desired. It will help the students more than the base model.
105