andreadm commited on
Commit
aba8d3f
·
verified ·
1 Parent(s): 5931f96

Upload infla-reddit-llama3.2_1b-xqdora

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
LICENSE.txt ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ LLAMA 3.2 COMMUNITY LICENSE AGREEMENT
2
+ Llama 3.2 Version Release Date: September 25, 2024
3
+
4
+ “Agreement” means the terms and conditions for use, reproduction, distribution
5
+ and modification of the Llama Materials set forth herein.
6
+
7
+ “Documentation” means the specifications, manuals and documentation accompanying Llama 3.2
8
+ distributed by Meta at https://llama.meta.com/doc/overview.
9
+
10
+ “Licensee” or “you” means you, or your employer or any other person or entity (if you are
11
+ entering into this Agreement on such person or entity’s behalf), of the age required under
12
+ applicable laws, rules or regulations to provide legal consent and that has legal authority
13
+ to bind your employer or such other person or entity if you are entering in this Agreement
14
+ on their behalf.
15
+
16
+ “Llama 3.2” means the foundational large language models and software and algorithms, including
17
+ machine-learning model code, trained model weights, inference-enabling code, training-enabling code,
18
+ fine-tuning enabling code and other elements of the foregoing distributed by Meta at
19
+ https://www.llama.com/llama-downloads.
20
+
21
+ “Llama Materials” means, collectively, Meta’s proprietary Llama 3.2 and Documentation (and
22
+ any portion thereof) made available under this Agreement.
23
+
24
+ “Meta” or “we” means Meta Platforms Ireland Limited (if you are located in or,
25
+ if you are an entity, your principal place of business is in the EEA or Switzerland)
26
+ and Meta Platforms, Inc. (if you are located outside of the EEA or Switzerland).
27
+
28
+
29
+ By clicking “I Accept” below or by using or distributing any portion or element of the Llama Materials,
30
+ you agree to be bound by this Agreement.
31
+
32
+
33
+ 1. License Rights and Redistribution.
34
+
35
+ a. Grant of Rights. You are granted a non-exclusive, worldwide,
36
+ non-transferable and royalty-free limited license under Meta’s intellectual property or other rights
37
+ owned by Meta embodied in the Llama Materials to use, reproduce, distribute, copy, create derivative works
38
+ of, and make modifications to the Llama Materials.
39
+
40
+ b. Redistribution and Use.
41
+
42
+ i. If you distribute or make available the Llama Materials (or any derivative works thereof),
43
+ or a product or service (including another AI model) that contains any of them, you shall (A) provide
44
+ a copy of this Agreement with any such Llama Materials; and (B) prominently display “Built with Llama”
45
+ on a related website, user interface, blogpost, about page, or product documentation. If you use the
46
+ Llama Materials or any outputs or results of the Llama Materials to create, train, fine tune, or
47
+ otherwise improve an AI model, which is distributed or made available, you shall also include “Llama”
48
+ at the beginning of any such AI model name.
49
+
50
+ ii. If you receive Llama Materials, or any derivative works thereof, from a Licensee as part
51
+ of an integrated end user product, then Section 2 of this Agreement will not apply to you.
52
+
53
+ iii. You must retain in all copies of the Llama Materials that you distribute the
54
+ following attribution notice within a “Notice” text file distributed as a part of such copies:
55
+ “Llama 3.2 is licensed under the Llama 3.2 Community License, Copyright © Meta Platforms,
56
+ Inc. All Rights Reserved.”
57
+
58
+ iv. Your use of the Llama Materials must comply with applicable laws and regulations
59
+ (including trade compliance laws and regulations) and adhere to the Acceptable Use Policy for
60
+ the Llama Materials (available at https://www.llama.com/llama3_2/use-policy), which is hereby
61
+ incorporated by reference into this Agreement.
62
+
63
+ 2. Additional Commercial Terms. If, on the Llama 3.2 version release date, the monthly active users
64
+ of the products or services made available by or for Licensee, or Licensee’s affiliates,
65
+ is greater than 700 million monthly active users in the preceding calendar month, you must request
66
+ a license from Meta, which Meta may grant to you in its sole discretion, and you are not authorized to
67
+ exercise any of the rights under this Agreement unless or until Meta otherwise expressly grants you such rights.
68
+
69
+ 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA MATERIALS AND ANY OUTPUT AND
70
+ RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF ANY KIND, AND META DISCLAIMS
71
+ ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES
72
+ OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE
73
+ FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND ASSUME ANY RISKS ASSOCIATED
74
+ WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND RESULTS.
75
+
76
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY,
77
+ WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT,
78
+ FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN
79
+ IF META OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.
80
+
81
+ 5. Intellectual Property.
82
+
83
+ a. No trademark licenses are granted under this Agreement, and in connection with the Llama Materials,
84
+ neither Meta nor Licensee may use any name or mark owned by or associated with the other or any of its affiliates,
85
+ except as required for reasonable and customary use in describing and redistributing the Llama Materials or as
86
+ set forth in this Section 5(a). Meta hereby grants you a license to use “Llama” (the “Mark”) solely as required
87
+ to comply with the last sentence of Section 1.b.i. You will comply with Meta’s brand guidelines (currently accessible
88
+ at https://about.meta.com/brand/resources/meta/company-brand/). All goodwill arising out of your use of the Mark
89
+ will inure to the benefit of Meta.
90
+
91
+ b. Subject to Meta’s ownership of Llama Materials and derivatives made by or for Meta, with respect to any
92
+ derivative works and modifications of the Llama Materials that are made by you, as between you and Meta,
93
+ you are and will be the owner of such derivative works and modifications.
94
+
95
+ c. If you institute litigation or other proceedings against Meta or any entity (including a cross-claim or
96
+ counterclaim in a lawsuit) alleging that the Llama Materials or Llama 3.2 outputs or results, or any portion
97
+ of any of the foregoing, constitutes infringement of intellectual property or other rights owned or licensable
98
+ by you, then any licenses granted to you under this Agreement shall terminate as of the date such litigation or
99
+ claim is filed or instituted. You will indemnify and hold harmless Meta from and against any claim by any third
100
+ party arising out of or related to your use or distribution of the Llama Materials.
101
+
102
+ 6. Term and Termination. The term of this Agreement will commence upon your acceptance of this Agreement or access
103
+ to the Llama Materials and will continue in full force and effect until terminated in accordance with the terms
104
+ and conditions herein. Meta may terminate this Agreement if you are in breach of any term or condition of this
105
+ Agreement. Upon termination of this Agreement, you shall delete and cease use of the Llama Materials. Sections 3,
106
+ 4 and 7 shall survive the termination of this Agreement.
107
+
108
+ 7. Governing Law and Jurisdiction. This Agreement will be governed and construed under the laws of the State of
109
+ California without regard to choice of law principles, and the UN Convention on Contracts for the International
110
+ Sale of Goods does not apply to this Agreement. The courts of California shall have exclusive jurisdiction of
111
+ any dispute arising out of this Agreement.
README.md ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: llama3.2
5
+ library_name: peft
6
+ base_model: meta-llama/Llama-3.2-1B
7
+ base_model_relation: adapter
8
+ pipeline_tag: text-classification
9
+ tags:
10
+ - economics
11
+ - finance
12
+ - inflation
13
+ - inflation-expectations
14
+ - reddit
15
+ - peft
16
+ - lora
17
+ - dora
18
+ - xqdora
19
+ metrics:
20
+ - accuracy
21
+ - f1
22
+ - roc_auc
23
+ model-index:
24
+ - name: infla-reddit-llama3.2_1b-xqdora
25
+ results:
26
+ - task:
27
+ type: text-classification
28
+ name: Directional inflation-expectation classification (up / neutral / down)
29
+ dataset:
30
+ name: Reddit inflation gold set (Del Monaco, Longo, Marcucci & Tafani, 2026), held-out test split
31
+ of seed 1245093080
32
+ type: reddit-inflation-gold-set
33
+ split: test
34
+ metrics:
35
+ - type: accuracy
36
+ value: 0.7122
37
+ - type: f1
38
+ value: 0.7104
39
+ name: F1 (weighted)
40
+ - type: f1
41
+ value: 0.6646
42
+ name: F1 (macro)
43
+ - type: roc_auc
44
+ value: 0.8678
45
+ name: ROC-AUC (macro, one-vs-rest)
46
+ ---
47
+
48
+ <!-- Generated by `reddit upload`. Review before making the repository public: the
49
+ limitations section is generic, and the per-class breakdown of the hand-written
50
+ cards is not produced automatically. -->
51
+
52
+ # infla-reddit-llama3.2_1b-xqdora
53
+
54
+ **infla-reddit-llama3.2_1b-xqdora** is a three-way *directional* inflation-expectation classifier
55
+ for short English texts about the economy, fine-tuned on Reddit submission
56
+ titles: a **xQDoRA+** adapter on [`meta-llama/Llama-3.2-1B`](https://huggingface.co/meta-llama/Llama-3.2-1B) (4-bit NF4 base, DoRA adapters on the attention projections, LoRA+ learning rates). Given a title (or any sentence-length text), it predicts
57
+ whether the text conveys that inflation / prices are going **up**, going
58
+ **down**, or carries **no directional signal** (**neutral**).
59
+
60
+ It is *not* a sentiment model: "inflation falls sharply" is *good* news but
61
+ labelled **down**; "rents are out of control" is *bad* news but labelled
62
+ **up**. The direction is about the price level, not the mood.
63
+
64
+ The checkpoint is one of the small-model classifiers behind the Reddit
65
+ inflation signal in
66
+
67
+ > Del Monaco, A., Longo, L., Marcucci, J. & Tafani, I. (2026).
68
+ > *Reddit's 'pulse' on US inflation: forecasting with large language models.*
69
+ > Journal of Applied Econometrics, forthcoming.
70
+ > Working-paper version: Banca d'Italia, Questioni di Economia e Finanza
71
+ > (Occasional Papers) No. 1028, June 2026, doi:10.32057/0.QEF.2026.1028.
72
+
73
+ The fine-tuning and full-corpus inference code lives at
74
+ [andrea-dm/reddit-pulse](https://github.com/andrea-dm/reddit-pulse).
75
+
76
+ ## Model lineage
77
+
78
+ | Stage | Model | Notes |
79
+ |---|---|---|
80
+ | Base | [`meta-llama/Llama-3.2-1B`](https://huggingface.co/meta-llama/Llama-3.2-1B) | Pre-trained checkpoint |
81
+ | **This checkpoint** | **`andreadm/infla-reddit-llama3.2_1b-xqdora`** | QDoRA+/xQDoRA+ PEFT adapter on Reddit titles, three-way head **down / neutral / up** |
82
+
83
+ ## Labels
84
+
85
+ | id | label | encoding used in the paper's corpus files |
86
+ |---|---|---|
87
+ | 0 | `down` | `-1` |
88
+ | 1 | `neutral` | `+0` |
89
+ | 2 | `up` | `+1` |
90
+
91
+ ## How to use
92
+
93
+ The adapter is loaded on top of the 4-bit quantized base model, exactly as
94
+ it was trained (`bitsandbytes` and `peft` required). `config.json` in this
95
+ repository carries the three-way head, the label names and the pad token,
96
+ so no argument beyond the repository name is needed:
97
+
98
+ ```python
99
+ import torch
100
+ from peft import PeftModel
101
+ from transformers import (
102
+ AutoConfig,
103
+ AutoModelForSequenceClassification,
104
+ AutoTokenizer,
105
+ BitsAndBytesConfig,
106
+ )
107
+
108
+ name = "andreadm/infla-reddit-llama3.2_1b-xqdora"
109
+ tokenizer = AutoTokenizer.from_pretrained(name)
110
+ tokenizer.padding_side = "left"
111
+ config = AutoConfig.from_pretrained(name)
112
+ base = AutoModelForSequenceClassification.from_pretrained(
113
+ "meta-llama/Llama-3.2-1B",
114
+ config=config,
115
+ dtype=torch.bfloat16,
116
+ quantization_config=BitsAndBytesConfig(
117
+ load_in_4bit=True,
118
+ bnb_4bit_quant_type="nf4",
119
+ bnb_4bit_use_double_quant=True,
120
+ bnb_4bit_compute_dtype=torch.bfloat16,
121
+ ),
122
+ device_map="auto",
123
+ )
124
+ model = PeftModel.from_pretrained(base, name).eval()
125
+ encoding = {"down": -1, "neutral": 0, "up": 1}
126
+
127
+ texts = [
128
+ "Inflation expectations drop to lowest level since 2021, NY Fed survey shows",
129
+ "What is the difference between CPI and PCE?",
130
+ ]
131
+ with torch.inference_mode():
132
+ batch = tokenizer(texts, padding=True, truncation=True, max_length=1024, return_tensors="pt")
133
+ ids = model(**batch.to(model.device)).logits.argmax(dim=-1).tolist()
134
+
135
+ print([encoding[config.id2label[i]] for i in ids]) # [-1, 0]
136
+ ```
137
+
138
+ Do **not** hand the repository name to `AutoModelForSequenceClassification`
139
+ directly: transformers' adapter shortcut rebuilds this DoRA adapter with
140
+ different logits than the trained model.
141
+
142
+ ## Intended use and limitations
143
+
144
+ **Intended use.** Labelling large volumes of short, informal, English,
145
+ economy-related texts (Reddit titles and comments, headlines, social media
146
+ posts) with a directional inflation signal that is then *aggregated* over
147
+ time — the paper's use case. The model is a building block for a
148
+ high-frequency indicator, not a stand-alone oracle.
149
+
150
+ **Limitations.**
151
+
152
+ - **Single predictions are noisy.** The value of the model comes from
153
+ averaging thousands of predictions per period, where idiosyncratic errors
154
+ wash out. Do not rely on any single label.
155
+ - **Domain and register.** Trained on r/economy, r/Economics and
156
+ r/wallstreetbets titles about *US* inflation from 2008 to 2022. Other
157
+ countries, other registers and post-2022 vocabulary are out of distribution.
158
+ - **Class imbalance.** `down` is the minority class of the gold set and the
159
+ hardest one; the loss was class-balanced during training, but `down`
160
+ recall remains lower.
161
+ - **Short texts.** Fine-tuned on titles (median 11 words, max 52). Long
162
+ comments are truncated and were not seen during training.
163
+ - **Direction, not stance or sentiment.** The model does not say whether the
164
+ author *wants* inflation to move, nor whether the news is good or bad;
165
+ only which way prices are said to be going.
166
+
167
+ ## Training data
168
+
169
+ The gold set is a hand-labelled sample of **1,383 Reddit submission titles**
170
+ from r/economy, r/Economics and r/wallstreetbets, dated February 2008 to
171
+ December 2022. Labels were produced by a human-in-the-loop protocol (manual
172
+ annotation assisted by zero-shot LLaMA-70B, a fine-tuned LLaMA-8B classifier
173
+ and ChatGPT-assisted adjudication of disagreements) described in the paper.
174
+ The gold set itself is not redistributed here.
175
+
176
+ | label | titles | share |
177
+ |---|---|---|
178
+ | neutral | 623 | 45.0 % |
179
+ | up | 537 | 38.8 % |
180
+ | down | 223 | 16.1 % |
181
+
182
+ ## Training procedure
183
+
184
+ ### Seed protocol and model selection
185
+
186
+ The paper's protocol asks how sensitive the classifier is to *which* titles
187
+ it is trained on, so it separates two sources of randomness:
188
+
189
+ - **19 split seeds** each draw a different stratified
190
+ **71 / 19 / 10 %** train / validation / test
191
+ partition (982 / 263 / 138 titles) of the same gold set.
192
+ - **One fixed seed** governs everything else: adapter and head
193
+ initialisation, batch shuffling and dropout. Every split therefore trains
194
+ *the same model the same way* on different data.
195
+
196
+ Each split is fine-tuned independently; the checkpoint with the **median**
197
+ test weighted-F1 across the runs (the upper median) is kept and the others
198
+ discarded. The result is a *typical* run, not the best one. This checkpoint
199
+ is split seed **1245093080**.
200
+
201
+ ### Hyperparameters
202
+
203
+ | | |
204
+ |---|---|
205
+ | Base model | 4-bit NF4, double-quantized (`bitsandbytes`), frozen |
206
+ | Adapters | DoRA (`use_dora`), rank r = 4, alpha = 32, dropout = 0.05, on `k_proj`, `o_proj`, `q_proj`, `v_proj`; classification head trained in full |
207
+ | Optimizer | AdamW (fused) with LoRA+ (adapter `B` matrices at 5x the base learning rate) |
208
+ | Learning rate | 0.0001, cosine decay, no warm-up |
209
+ | Objective | Cross-entropy with `balanced` class weights (`sklearn.utils.class_weight`) |
210
+ | Batch size | 64 (train and eval), dynamic padding to multiples of 8 |
211
+ | Checkpoint | best epoch by validation weighted-F1 (`load_best_model_at_end`) |
212
+ | Precision | bf16 mixed precision |
213
+ | Weight decay | 0.01 |
214
+ | Gradient accumulation | 8 micro-batches per optimizer step (effective batch 512) |
215
+ | Epochs | up to 40, early stopping with patience 5 on validation weighted-F1 |
216
+ | Gradient checkpointing | off |
217
+ | Max sequence length | 1024 tokens (truncation only) |
218
+
219
+ The exact `TrainingArguments` are in [`training_args.json`](training_args.json)
220
+ and the governing configuration extract in
221
+ [`training_config.yml`](training_config.yml).
222
+
223
+ ## Evaluation
224
+
225
+ ### Selected checkpoint (split seed 1245093080)
226
+
227
+ | split | accuracy | F1 weighted | F1 macro | precision macro | recall macro | ROC-AUC |
228
+ |---|---|---|---|---|---|---|
229
+ | validation | 0.738 | 0.738 | 0.714 | 0.722 | 0.712 | 0.869 |
230
+ | **test** | 0.712 | 0.710 | 0.665 | 0.677 | 0.659 | 0.868 |
231
+
232
+ ### Split sensitivity across the 19 seeds
233
+
234
+ Test metrics of every run, sorted by weighted F1; the selected checkpoint is marked.
235
+
236
+ | seed | accuracy | F1 weighted | F1 macro | precision macro | recall macro | ROC-AUC | |
237
+ |---|---|---|---|---|---|---|---|
238
+ | 2786505123 | 0.755 | 0.754 | 0.713 | 0.719 | 0.709 | 0.875 | |
239
+ | 4203596092 | 0.748 | 0.749 | 0.704 | 0.702 | 0.706 | 0.876 | |
240
+ | 1389303030 | 0.741 | 0.744 | 0.730 | 0.720 | 0.765 | 0.886 | |
241
+ | 3154447144 | 0.741 | 0.738 | 0.729 | 0.753 | 0.715 | 0.859 | |
242
+ | 709964709 | 0.741 | 0.738 | 0.696 | 0.706 | 0.695 | 0.853 | |
243
+ | 3266123502 | 0.719 | 0.722 | 0.678 | 0.675 | 0.685 | 0.857 | |
244
+ | 2565555162 | 0.719 | 0.720 | 0.701 | 0.714 | 0.693 | 0.836 | |
245
+ | 1361883482 | 0.719 | 0.717 | 0.682 | 0.687 | 0.679 | 0.852 | |
246
+ | 2078237541 | 0.719 | 0.715 | 0.663 | 0.684 | 0.656 | 0.857 | |
247
+ | 1245093080 | 0.712 | 0.710 | 0.665 | 0.677 | 0.659 | 0.868 | **selected** |
248
+ | 477284336 | 0.712 | 0.710 | 0.665 | 0.667 | 0.663 | 0.861 | |
249
+ | 4280088979 | 0.712 | 0.709 | 0.673 | 0.686 | 0.665 | 0.856 | |
250
+ | 1329496050 | 0.705 | 0.705 | 0.688 | 0.700 | 0.680 | 0.839 | |
251
+ | 239080115 | 0.705 | 0.702 | 0.655 | 0.661 | 0.650 | 0.852 | |
252
+ | 2928142788 | 0.698 | 0.695 | 0.681 | 0.686 | 0.680 | 0.860 | |
253
+ | 4054871397 | 0.691 | 0.695 | 0.666 | 0.659 | 0.686 | 0.860 | |
254
+ | 228277762 | 0.669 | 0.678 | 0.638 | 0.636 | 0.659 | 0.822 | |
255
+ | 107935903 | 0.669 | 0.664 | 0.624 | 0.642 | 0.614 | 0.822 | |
256
+ | 3144693271 | 0.647 | 0.647 | 0.621 | 0.630 | 0.615 | 0.814 | |
257
+
258
+ The full tables are in [`evaluation/`](evaluation/).
259
+
260
+
261
+
262
+ ## Files
263
+
264
+ | file | content |
265
+ |---|---|
266
+ | `adapter_config.json` | PEFT adapter configuration (base model, rank, target modules) |
267
+ | `adapter_model.safetensors` | DoRA adapter weights and the three-way classification head (base weights are not redistributed) |
268
+ | `config.json` | architecture, three-way head and label map |
269
+ | `tokenizer.json` | tokenizer |
270
+ | `tokenizer_config.json` | tokenizer settings (pad token, padding side) |
271
+ | `LICENSE.txt` | license / use-policy notice of the base model, redistributed as its terms require |
272
+ | `USE_POLICY.md` | license / use-policy notice of the base model, redistributed as its terms require |
273
+ | `evaluation/seeds_test_metrics.csv` | test metrics of every split seed |
274
+ | `evaluation/seeds_validation_metrics.csv` | validation metrics of every split seed |
275
+ | `training_args.json` | the `transformers.TrainingArguments` of the selected run |
276
+ | `training_config.yml` | dataset split, hyperparameters, seed list and label map from the project config |
277
+ | `README.md` | this card |
278
+
279
+ ## Reproducing
280
+
281
+ ```bash
282
+ git clone https://github.com/andrea-dm/reddit-pulse && cd reddit-pulse
283
+ uv venv && uv pip install -e .
284
+ reddit run --model llama3.2_1b --gpu 0 # every split seed, median selection, corpus labelling
285
+ reddit upload --model llama3.2_1b # this repository, from the selected checkpoint
286
+ ```
287
+
288
+ The gold set (`data/labelled.xlsx`) and the subreddit corpus are not part of
289
+ the repository; see the paper for the data-construction stages.
290
+
291
+ ## Citation
292
+
293
+ If you use this model, please cite the paper it was built for:
294
+
295
+ ```bibtex
296
+ @article{delmonaco2026reddit,
297
+ title = {Reddit's `pulse' on {US} inflation: forecasting with large language models},
298
+ author = {Del Monaco, Andrea and Longo, Luigi and Marcucci, Juri and Tafani, Irene},
299
+ journal = {Journal of Applied Econometrics},
300
+ year = {2026},
301
+ note = {forthcoming},
302
+ }
303
+
304
+ @techreport{delmonaco2026reddit_qef,
305
+ title = {Reddit's `pulse' on {US} inflation: forecasting with large language models},
306
+ author = {Del Monaco, Andrea and Longo, Luigi and Marcucci, Juri and Tafani, Irene},
307
+ institution = {Banca d'Italia},
308
+ series = {Questioni di Economia e Finanza (Occasional Papers)},
309
+ number = {1028},
310
+ year = {2026},
311
+ month = jun,
312
+ doi = {10.32057/0.QEF.2026.1028},
313
+ }
314
+ ```
315
+
316
+ ## License
317
+
318
+ The base model is released under the Llama 3.2 Community License, which this adapter inherits (*Built with Llama*). The upstream notices are included: [`LICENSE.txt`](LICENSE.txt), [`USE_POLICY.md`](USE_POLICY.md).
319
+
320
+ The views expressed in the paper are those of the authors and do not
321
+ necessarily reflect those of the Bank of Italy, the Eurosystem, or the
322
+ European Commission.
USE_POLICY.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ **Llama 3.2** **Acceptable Use Policy**
2
+
3
+ Meta is committed to promoting safe and fair use of its tools and features, including Llama 3.2. If you access or use Llama 3.2, you agree to this Acceptable Use Policy (“**Policy**”). The most recent copy of this policy can be found at [https://www.llama.com/llama3_2/use-policy](https://www.llama.com/llama3_2/use-policy).
4
+
5
+ **Prohibited Uses**
6
+
7
+ We want everyone to use Llama 3.2 safely and responsibly. You agree you will not use, or allow others to use, Llama 3.2 to:
8
+
9
+
10
+
11
+ 1. Violate the law or others’ rights, including to:
12
+ 1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
13
+ 1. Violence or terrorism
14
+ 2. Exploitation or harm to children, including the solicitation, creation, acquisition, or dissemination of child exploitative content or failure to report Child Sexual Abuse Material
15
+ 3. Human trafficking, exploitation, and sexual violence
16
+ 4. The illegal distribution of information or materials to minors, including obscene materials, or failure to employ legally required age-gating in connection with such information or materials.
17
+ 5. Sexual solicitation
18
+ 6. Any other criminal activity
19
+ 1. Engage in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying of individuals or groups of individuals
20
+ 2. Engage in, promote, incite, or facilitate discrimination or other unlawful or harmful conduct in the provision of employment, employment benefits, credit, housing, other economic benefits, or other essential goods and services
21
+ 3. Engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices
22
+ 4. Collect, process, disclose, generate, or infer private or sensitive information about individuals, including information about individuals’ identity, health, or demographic information, unless you have obtained the right to do so in accordance with applicable law
23
+ 5. Engage in or facilitate any action or generate any content that infringes, misappropriates, or otherwise violates any third-party rights, including the outputs or results of any products or services using the Llama Materials
24
+ 6. Create, generate, or facilitate the creation of malicious code, malware, computer viruses or do anything else that could disable, overburden, interfere with or impair the proper working, integrity, operation or appearance of a website or computer system
25
+ 7. Engage in any action, or facilitate any action, to intentionally circumvent or remove usage restrictions or other safety measures, or to enable functionality disabled by Meta 
26
+ 2. Engage in, promote, incite, facilitate, or assist in the planning or development of activities that present a risk of death or bodily harm to individuals, including use of Llama 3.2 related to the following:
27
+ 8. Military, warfare, nuclear industries or applications, espionage, use for materials or activities that are subject to the International Traffic Arms Regulations (ITAR) maintained by the United States Department of State or to the U.S. Biological Weapons Anti-Terrorism Act of 1989 or the Chemical Weapons Convention Implementation Act of 1997
28
+ 9. Guns and illegal weapons (including weapon development)
29
+ 10. Illegal drugs and regulated/controlled substances
30
+ 11. Operation of critical infrastructure, transportation technologies, or heavy machinery
31
+ 12. Self-harm or harm to others, including suicide, cutting, and eating disorders
32
+ 13. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
33
+ 3. Intentionally deceive or mislead others, including use of Llama 3.2 related to the following:
34
+ 14. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
35
+ 15. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
36
+ 16. Generating, promoting, or further distributing spam
37
+ 17. Impersonating another individual without consent, authorization, or legal right
38
+ 18. Representing that the use of Llama 3.2 or outputs are human-generated
39
+ 19. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement 
40
+ 4. Fail to appropriately disclose to end users any known dangers of your AI system
41
+ 5. Interact with third party tools, models, or software designed to generate unlawful content or engage in unlawful or harmful conduct and/or represent that the outputs of such tools, models, or software are associated with Meta or Llama 3.2
42
+
43
+ With respect to any multimodal models included in Llama 3.2, the rights granted under Section 1(a) of the Llama 3.2 Community License Agreement are not being granted to you if you are an individual domiciled in, or a company with a principal place of business in, the European Union. This restriction does not apply to end users of a product or service that incorporates any such multimodal models.
44
+
45
+ Please report any violation of this Policy, software “bug,” or other problems that could lead to a violation of this Policy through one of the following means:
46
+
47
+
48
+
49
+ * Reporting issues with the model: [https://github.com/meta-llama/llama-models/issues](https://l.workplace.com/l.php?u=https%3A%2F%2Fgithub.com%2Fmeta-llama%2Fllama-models%2Fissues&h=AT0qV8W9BFT6NwihiOHRuKYQM_UnkzN_NmHMy91OT55gkLpgi4kQupHUl0ssR4dQsIQ8n3tfd0vtkobvsEvt1l4Ic6GXI2EeuHV8N08OG2WnbAmm0FL4ObkazC6G_256vN0lN9DsykCvCqGZ)
50
+ * Reporting risky content generated by the model: [developers.facebook.com/llama_output_feedback](http://developers.facebook.com/llama_output_feedback)
51
+ * Reporting bugs and security concerns: [facebook.com/whitehat/info](http://facebook.com/whitehat/info)
52
+ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Llama 3.2: LlamaUseReport@meta.com
adapter_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "meta-llama/Llama-3.2-1B",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 32,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "lora_ga_config": null,
23
+ "megatron_config": null,
24
+ "megatron_core": "megatron.core",
25
+ "modules_to_save": [
26
+ "classifier",
27
+ "score",
28
+ "classifier",
29
+ "score",
30
+ "classifier",
31
+ "score",
32
+ "classifier",
33
+ "score",
34
+ "classifier",
35
+ "score",
36
+ "classifier",
37
+ "score"
38
+ ],
39
+ "monteclora_config": null,
40
+ "peft_type": "LORA",
41
+ "peft_version": "0.20.0",
42
+ "qalora_group_size": 16,
43
+ "r": 4,
44
+ "rank_pattern": {},
45
+ "revision": null,
46
+ "target_modules": [
47
+ "v_proj",
48
+ "k_proj",
49
+ "o_proj",
50
+ "q_proj"
51
+ ],
52
+ "target_parameters": null,
53
+ "task_type": "SEQ_CLS",
54
+ "trainable_token_indices": null,
55
+ "use_bdlora": null,
56
+ "use_dora": true,
57
+ "use_qalora": false,
58
+ "use_rslora": false,
59
+ "velora_config": null
60
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7dbe6a9dc62d916ded13b70a10430486973bd4b6032c99a43d875f8e7024239
3
+ size 3785696
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 128000,
8
+ "dtype": "bfloat16",
9
+ "eos_token_id": 128001,
10
+ "head_dim": 64,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 2048,
13
+ "id2label": {
14
+ "0": "down",
15
+ "1": "neutral",
16
+ "2": "up"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 8192,
20
+ "label2id": {
21
+ "down": 0,
22
+ "neutral": 1,
23
+ "up": 2
24
+ },
25
+ "max_position_embeddings": 131072,
26
+ "mlp_bias": false,
27
+ "model_type": "llama",
28
+ "num_attention_heads": 32,
29
+ "num_hidden_layers": 16,
30
+ "num_key_value_heads": 8,
31
+ "pad_token_id": 128001,
32
+ "pretraining_tp": 1,
33
+ "problem_type": "single_label_classification",
34
+ "rms_norm_eps": 1e-05,
35
+ "rope_parameters": {
36
+ "factor": 32.0,
37
+ "high_freq_factor": 4.0,
38
+ "low_freq_factor": 1.0,
39
+ "original_max_position_embeddings": 8192,
40
+ "rope_theta": 500000.0,
41
+ "rope_type": "llama3"
42
+ },
43
+ "tie_word_embeddings": true,
44
+ "transformers_version": "5.16.1",
45
+ "use_cache": false,
46
+ "vocab_size": 128256
47
+ }
evaluation/seeds_test_metrics.csv ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ seed,accuracy,f1_weighted,f1_macro,precision_macro,recall_macro,roc_auc,loss,selected
2
+ 2786505123,0.7553956834532374,0.7535489465570401,0.7134314373897707,0.7187084520417854,0.7091550424883758,0.8748820857695986,14.381012916564941,False
3
+ 4203596092,0.7482014388489209,0.7491606714628298,0.7037037037037037,0.7019895070385953,0.7056277056277055,0.8761573880768928,7.489621162414551,False
4
+ 1389303030,0.7410071942446043,0.7440975182383367,0.729687743950039,0.7199271749967489,0.7649510982844316,0.8864876857652915,13.786299705505371,False
5
+ 3154447144,0.7410071942446043,0.7384142090100413,0.7288646382886462,0.7533171469341683,0.7147667147667147,0.8591777255347947,14.864424705505371,False
6
+ 709964709,0.7410071942446043,0.7383406600050092,0.6963239841391102,0.70568700705687,0.695045695045695,0.8533081803721639,20.563291549682617,False
7
+ 3266123502,0.7194244604316546,0.7219092596475296,0.6782659872459621,0.6749835796387521,0.6853455186788521,0.8570476383685879,19.549060821533203,False
8
+ 2565555162,0.7194244604316546,0.7201249881895609,0.7005559029949273,0.7140072403230299,0.6934423601090268,0.8360245485890481,21.884937286376953,False
9
+ 1361883482,0.7194244604316546,0.7170000447434495,0.6816824829920337,0.6865818791284629,0.6791726791726792,0.8524130477174854,16.681535720825195,False
10
+ 2078237541,0.7194244604316546,0.7153218258272858,0.663253905302878,0.6838748894783376,0.6557639890973225,0.8572194508469018,14.835359573364258,False
11
+ 1245093080,0.7122302158273381,0.7104042034885375,0.6645939325419258,0.676801733390033,0.6585698252364919,0.8677530310915245,14.324153900146484,True
12
+ 477284336,0.7122302158273381,0.7095326958469003,0.6645597296760087,0.6670429365776162,0.6631393298059965,0.8608607747410636,13.302623748779297,False
13
+ 4280088979,0.7122302158273381,0.7091690931445158,0.673198918995804,0.6855218855218855,0.6649029982363316,0.8561464144539479,14.535867691040039,False
14
+ 1329496050,0.7050359712230215,0.7052364611447526,0.6882590764246209,0.6995900420682158,0.6802148468815136,0.8392628794589579,17.957786560058594,False
15
+ 239080115,0.7050359712230215,0.7017673439240667,0.6545625792175235,0.6614094157953807,0.6497514830848165,0.8519747232853527,12.964055061340332,False
16
+ 2928142788,0.697841726618705,0.6953591753462902,0.6808774310266847,0.6859934309413794,0.6803751803751803,0.8603107065697365,13.408626556396484,False
17
+ 4054871397,0.6906474820143885,0.6949580694395242,0.6656440149307153,0.6585125448028674,0.6858265191598525,0.8595262265540904,9.929713249206543,False
18
+ 228277762,0.6690647482014388,0.6784735546799568,0.6379619809088685,0.6355542216886755,0.6592111592111592,0.8223340509202223,15.685108184814453,False
19
+ 107935903,0.6690647482014388,0.6642032961344708,0.623849063261548,0.6420454545454546,0.6143177809844477,0.8215026879629562,14.019464492797852,False
20
+ 3144693271,0.6474820143884892,0.6471265635575163,0.6212427409988385,0.6303202388618933,0.6146384479717814,0.8140419646095601,20.009414672851562,False
evaluation/seeds_validation_metrics.csv ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ seed,accuracy,f1_weighted,f1_macro,precision_macro,recall_macro,roc_auc,loss,selected
2
+ 4280088979,0.7832699619771863,0.7783164257528876,0.7427472149453574,0.7658031235750115,0.72980670391925,0.8903430257397296,14.567973136901855,False
3
+ 4054871397,0.7680608365019012,0.7693956907029055,0.7366885341568886,0.7328431372549019,0.7422564348298772,0.8861540114706056,9.165058135986328,False
4
+ 107935903,0.7756653992395437,0.7691280533081905,0.7124515889437105,0.7261072261072261,0.7053348996936838,0.866377658125192,12.371041297912598,False
5
+ 2928142788,0.7680608365019012,0.7660410730736515,0.7298912282718804,0.7353213901561516,0.7301867008792744,0.879532325217033,12.259249687194824,False
6
+ 3266123502,0.7642585551330798,0.7642664862246611,0.7277102436416162,0.7382732636252118,0.7232681799562553,0.8783150970803547,17.135549545288086,False
7
+ 1329496050,0.7642585551330798,0.7634653586336204,0.7362619353671519,0.7423924123565128,0.7317929931136821,0.8730028101453259,17.530553817749023,False
8
+ 3154447144,0.7642585551330798,0.7606334581226903,0.7299137192913127,0.7524559620596206,0.7170117554313803,0.865603427464935,14.514962196350098,False
9
+ 3144693271,0.7604562737642585,0.7578699600712809,0.7295739348370928,0.7502161873746575,0.7168984004060172,0.8889083263029606,13.75479793548584,False
10
+ 1361883482,0.7566539923954373,0.7513841249819043,0.7131453025367304,0.7368240798180313,0.700621649264094,0.8556408737824742,17.082744598388672,False
11
+ 239080115,0.7490494296577946,0.7426059538161922,0.6930081300813008,0.7101284385113269,0.6842315430968077,0.8551307226208119,15.247855186462402,False
12
+ 709964709,0.7414448669201521,0.7406259049472209,0.7258513533201043,0.731409214092141,0.7211530782330012,0.8594303038535255,19.86855697631836,False
13
+ 1245093080,0.7376425855513308,0.7381011362135333,0.7143795729186619,0.7216707021791767,0.7120189818142472,0.8692347150660158,15.106582641601562,True
14
+ 2078237541,0.7376425855513308,0.7343588618924779,0.6946172127426632,0.7232323232323231,0.6828996215487905,0.8284836526509194,18.33102035522461,False
15
+ 2786505123,0.7300380228136882,0.7286993369932853,0.7007203019664079,0.7082085745336794,0.6960719907461078,0.8656406679874108,15.253405570983887,False
16
+ 228277762,0.7110266159695817,0.7120132973563867,0.6784814838373773,0.6755578739501943,0.6824436251967612,0.8203037242333462,16.23491096496582,False
17
+ 2565555162,0.7110266159695817,0.7114095622497135,0.6811516074846673,0.6842453278428887,0.6792890063659152,0.8467613654388274,18.922428131103516,False
18
+ 477284336,0.7110266159695817,0.7090583074883333,0.6849718381976446,0.6970408523961016,0.6806711648001732,0.8417691476149379,17.311111450195312,False
19
+ 4203596092,0.7072243346007605,0.7069995799488301,0.6757645761901289,0.676900412954387,0.674691687212265,0.8514977930594005,8.125739097595215,False
20
+ 1389303030,0.7034220532319392,0.7039543726235741,0.6803954802259887,0.676442665057368,0.6853187208400637,0.8282831443411555,21.047286987304688,False
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52716f60c3ad328509fa37cdded9a2f1196ecae463f5480f5d38c66a25e7a7dc
3
+ size 17210019
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|end_of_text|>",
6
+ "is_local": false,
7
+ "local_files_only": false,
8
+ "model_input_names": [
9
+ "input_ids",
10
+ "attention_mask"
11
+ ],
12
+ "model_max_length": 131072,
13
+ "pad_token": "<|end_of_text|>",
14
+ "tokenizer_class": "TokenizersBackend"
15
+ }
training_args.json ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "output_dir": null,
3
+ "per_device_train_batch_size": 64,
4
+ "num_train_epochs": 40,
5
+ "max_steps": -1,
6
+ "learning_rate": 0.0001,
7
+ "lr_scheduler_type": "cosine",
8
+ "lr_scheduler_kwargs": null,
9
+ "warmup_steps": 0,
10
+ "optim": "adamw_torch_fused",
11
+ "optim_args": null,
12
+ "weight_decay": 0.01,
13
+ "adam_beta1": 0.9,
14
+ "adam_beta2": 0.999,
15
+ "adam_epsilon": 1e-08,
16
+ "optim_target_modules": null,
17
+ "gradient_accumulation_steps": 8,
18
+ "average_tokens_across_devices": true,
19
+ "max_grad_norm": 1.0,
20
+ "label_smoothing_factor": 0.0,
21
+ "bf16": true,
22
+ "fp16": false,
23
+ "bf16_full_eval": false,
24
+ "fp16_full_eval": false,
25
+ "tf32": null,
26
+ "gradient_checkpointing": false,
27
+ "gradient_checkpointing_kwargs": null,
28
+ "torch_compile": false,
29
+ "torch_compile_backend": null,
30
+ "torch_compile_mode": null,
31
+ "use_liger_kernel": false,
32
+ "liger_kernel_config": null,
33
+ "use_cache": false,
34
+ "neftune_noise_alpha": null,
35
+ "torch_empty_cache_steps": null,
36
+ "auto_find_batch_size": false,
37
+ "logging_strategy": "steps",
38
+ "logging_steps": 500,
39
+ "logging_first_step": false,
40
+ "log_on_each_node": true,
41
+ "logging_nan_inf_filter": true,
42
+ "include_num_input_tokens_seen": "no",
43
+ "log_level": "passive",
44
+ "log_level_replica": "warning",
45
+ "disable_tqdm": true,
46
+ "report_to": [],
47
+ "run_name": null,
48
+ "project": "huggingface",
49
+ "trackio_space_id": null,
50
+ "trackio_bucket_id": null,
51
+ "trackio_static_space_id": null,
52
+ "eval_strategy": "epoch",
53
+ "eval_steps": null,
54
+ "eval_delay": 0,
55
+ "per_device_eval_batch_size": 64,
56
+ "prediction_loss_only": false,
57
+ "eval_on_start": false,
58
+ "eval_do_concat_batches": true,
59
+ "eval_use_gather_object": false,
60
+ "eval_accumulation_steps": null,
61
+ "include_for_metrics": [],
62
+ "batch_eval_metrics": false,
63
+ "save_only_model": false,
64
+ "save_strategy": "epoch",
65
+ "save_steps": 500,
66
+ "save_on_each_node": false,
67
+ "save_total_limit": 2,
68
+ "enable_jit_checkpoint": false,
69
+ "push_to_hub": false,
70
+ "hub_token": "<HUB_TOKEN>",
71
+ "hub_private_repo": null,
72
+ "hub_model_id": null,
73
+ "hub_strategy": "every_save",
74
+ "hub_always_push": false,
75
+ "hub_revision": null,
76
+ "load_best_model_at_end": true,
77
+ "metric_for_best_model": "f1_weighted",
78
+ "greater_is_better": true,
79
+ "ignore_data_skip": false,
80
+ "restore_callback_states_from_checkpoint": false,
81
+ "full_determinism": false,
82
+ "seed": 42,
83
+ "data_seed": null,
84
+ "use_cpu": false,
85
+ "accelerator_config": {
86
+ "split_batches": false,
87
+ "dispatch_batches": null,
88
+ "even_batches": true,
89
+ "use_seedable_sampler": true,
90
+ "non_blocking": false,
91
+ "gradient_accumulation_kwargs": null
92
+ },
93
+ "parallelism_config": null,
94
+ "dataloader_drop_last": false,
95
+ "dataloader_num_workers": 0,
96
+ "dataloader_pin_memory": true,
97
+ "dataloader_persistent_workers": false,
98
+ "dataloader_prefetch_factor": null,
99
+ "dataloader_multiprocessing_context": null,
100
+ "dataloader_in_order": true,
101
+ "remove_unused_columns": true,
102
+ "label_names": null,
103
+ "train_sampling_strategy": "random",
104
+ "length_column_name": "length",
105
+ "ddp_find_unused_parameters": null,
106
+ "ddp_bucket_cap_mb": null,
107
+ "ddp_broadcast_buffers": null,
108
+ "ddp_static_graph": null,
109
+ "ddp_backend": null,
110
+ "ddp_timeout": 1800,
111
+ "fsdp": null,
112
+ "fsdp_config": null,
113
+ "deepspeed": null,
114
+ "debug": [],
115
+ "skip_memory_metrics": true,
116
+ "do_train": false,
117
+ "do_eval": true,
118
+ "do_predict": false,
119
+ "resume_from_checkpoint": null,
120
+ "local_rank": -1
121
+ }
training_config.yml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Extract of the project's config.yml that governs this checkpoint.
2
+ # `training.seeds` vary the stratified split only; `training.arguments.seed`
3
+ # fixes model initialisation and the Trainer's shuffling/dropout.
4
+ dataset:
5
+ text_column: title
6
+ label_column: Label
7
+ test_size: 0.1
8
+ validation_size: 0.19
9
+ labels:
10
+ labels:
11
+ down: 0
12
+ neutral: 1
13
+ up: 2
14
+ encodings:
15
+ down: -1
16
+ neutral: 0
17
+ up: 1
18
+ training:
19
+ early_stopping_patience: 5
20
+ learning_rate: 0.0001
21
+ num_train_epochs: 40
22
+ gradient_accumulation_steps: 8
23
+ gradient_checkpointing: false
24
+ arguments:
25
+ save_total_limit: 2
26
+ save_on_each_node: false
27
+ report_to: none
28
+ push_to_hub: false
29
+ disable_tqdm: true
30
+ seed: 42
31
+ bf16: true
32
+ fp16: false
33
+ per_device_train_batch_size: 64
34
+ per_device_eval_batch_size: 64
35
+ weight_decay: 0.01
36
+ dataloader_num_workers: 0
37
+ dataloader_pin_memory: true
38
+ eval_strategy: epoch
39
+ save_strategy: epoch
40
+ load_best_model_at_end: true
41
+ metric_for_best_model: f1_weighted
42
+ greater_is_better: true
43
+ seeds:
44
+ - 107935903
45
+ - 228277762
46
+ - 239080115
47
+ - 477284336
48
+ - 709964709
49
+ - 1245093080
50
+ - 1329496050
51
+ - 1361883482
52
+ - 1389303030
53
+ - 2078237541
54
+ - 2565555162
55
+ - 2786505123
56
+ - 2928142788
57
+ - 3144693271
58
+ - 3154447144
59
+ - 3266123502
60
+ - 4054871397
61
+ - 4203596092
62
+ - 4280088979
63
+ base_model: meta-llama/Llama-3.2-1B
64
+ finetuning_method: xqdora
65
+ selected_seed: 1245093080