Commit 8580f19
add interruption handling (#169)
* add interruption handling
* fix test
* fix test
* update
* fix test
* lint
* remove step
* use patch instead of monkeypatch
* add n_jobs as param
* change n_jobs to -1
* try fix
* remove old study
* add logging warning
* Update optimizer_config.schema.json
* lint
* try dumping
* lint
* np encoder
* update warning trigger
* Fix/n trials issue (#196)
* try to fix
* fix typing errors
* bug fix
* Update autointent/nodes/_node_optimizer.py
Co-authored-by: Roman Solomatin <[email protected]>
---------
Co-authored-by: Roman Solomatin <[email protected]>
* Fix/context not dumped error (#197)
* try to fix
* dump context constantly and fix serialization issues
* add exclude option to dumper
* fix codestyle and typing errors
* try to fix file exists error
* fix no fixture found error
* Update interruption handling (#198)
* full tuning (#165)
* Added code for full tuning
* work on review
* renaming
* fix ruff
* mypy test
* ignote mypy
* Feat/bert scorer config refactoring (#168)
* refactor configs
* add proper configs to BERTScorer
* fix typing
* fix tokenizer's parameters
* fix transformers and accelerate issue
* Update optimizer_config.schema.json
* bug fix
* update callback test
* fix tests
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* delete validate_task
* report_to
* batches
* Fix/docs building for bert scorer (#171)
* fix
* fix codestyle
---------
Co-authored-by: Алексеев Илья <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* bert-scorer ending (#172)
* batches
* tests check
* fix
* return to torch
* fix for tests
* Fix/bert scorer (#174)
* fix str and float issue and shrinken search space
* update `inference node config` overriding logic
* fix typing
* fix codestyle
* fix multilabel issue
* attempt to fix `inference node config` bugs
* another attempt
---------
Co-authored-by: Алексеев Илья <[email protected]>
* Feat/code carbon each node (#175)
* feat: update codecarbon
* feat: update codecarbon
* feat: added codecarbon
* Update optimizer_config.schema.json
* fix: fixed import mypy
* fix: codecarbon package
* fix: only float\integer log
* fix: codecarbon package
* fix: mypy
* fix: test
* fix: delete emissions
* fix: test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* standartize pyproject & speedup tests (#176)
* speedup tests
* fix pyproject
* Update optimizer_config.schema.json
* move optional dependencies
* fixes
* add xdist
* fix ci
* download data from hub in doc
* add caching
* add doc cache
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: voorhs <[email protected]>
* add proper `omit` definition for tests coverage report (#179)
* add proper `omit` definition
* Update optimizer_config.schema.json
* exclude tmp from coverage report
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* add node validators (#177)
* add node validators
* add comments
* Update optimizer_config.schema.json
* rename bert model
* lint
* fixes
* fix test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: voorhs <[email protected]>
* dumper saving (#180)
* added main code for saving models
* Update optimizer_config.schema.json
* checker fixes
* Revert "checker fixes"
This reverts commit 6e32eb9.
* Revert "added main code for saving models"
This reverts commit 5637fb8.
* drat main code for new dumper
* ruf fix
* comments
* added code for test dumper
* Check dumper (#182)
* Feat/code carbon each node (#175)
* feat: update codecarbon
* feat: update codecarbon
* feat: added codecarbon
* Update optimizer_config.schema.json
* fix: fixed import mypy
* fix: codecarbon package
* fix: only float\integer log
* fix: codecarbon package
* fix: mypy
* fix: test
* fix: delete emissions
* fix: test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* standartize pyproject & speedup tests (#176)
* speedup tests
* fix pyproject
* Update optimizer_config.schema.json
* move optional dependencies
* fixes
* add xdist
* fix ci
* download data from hub in doc
* add caching
* add doc cache
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: voorhs <[email protected]>
* add proper `omit` definition for tests coverage report (#179)
* add proper `omit` definition
* Update optimizer_config.schema.json
* exclude tmp from coverage report
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* add node validators (#177)
* add node validators
* add comments
* Update optimizer_config.schema.json
* rename bert model
* lint
* fixes
* fix test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: voorhs <[email protected]>
* update makefile
* update bert test
* mypy workaround
* attempt to fix windows permission error
* workaround
---------
Co-authored-by: Darinochka <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Roman Solomatin <[email protected]>
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Алексеев Илья <[email protected]>
Co-authored-by: Darinochka <[email protected]>
Co-authored-by: Roman Solomatin <[email protected]>
* Update embedder prompt (#183)
* Add trust remote code (#185)
* lint
* fix trust remote code
* Update optimizer_config.schema.json
* update fix trust remote code
* fix test cllback
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Remove autointent org from docs (#186)
* lint
* update paths
* feat: added crossencoder (#181)
* feat: added crossencoder
* refactor
* feat: added arg similarity
* Update optimizer_config.schema.json
* feat: added tests
* feat: added errors
* fix: scoring test
* fix: description vectors error
* fix: description vectors error
* fix: lint
* fix: test
* add node validators (#177)
* add node validators
* add comments
* Update optimizer_config.schema.json
* rename bert model
* lint
* fixes
* fix test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: voorhs <[email protected]>
* fix: unit tests
* feat: added test for description
* feat: delete encoder_type from the class args
* feat: update assets
* feat: update assets
* fix: fixed test
* Update optimizer_config.schema.json
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Roman Solomatin <[email protected]>
Co-authored-by: voorhs <[email protected]>
* Add few shot (#187)
* init few shot
* Update optimizer_config.schema.json
* apply few shot to all
* Update optimizer_config.schema.json
* fix test
* lint
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* update numpy typing (#188)
* Lora scorer (#170)
* added lora scorer
* fix ruff
* Update __init__.py
* updated after mr #165
* Update pyproject.toml
* fixed requested changes
* fixed ruff failing
* fixed remarks
* Update optimizer_config.schema.json
* added test
* ruff fix
* convert labels to float
* Update autointent/modules/scoring/_lora/lora.py
Co-authored-by: Roman Solomatin <[email protected]>
* Update autointent/modules/scoring/_lora/lora.py
Co-authored-by: Roman Solomatin <[email protected]>
* change model_config name, added trust_remote_code
* Update lora.py
* inherited lora from bert
* fix ruff
* fix search space
* Update lora.py
* Update lora.py
* added dump check
* Update test_lora.py
* Update test_lora.py
* added docstring
* fix ruff
* Update test_lora.py
* Update test_lora.py
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Roman Solomatin <[email protected]>
* PTuningScorer (#178)
* Initial commit of PTuningScorer module
* Added peft (>=0.10.0, <0.15.0) in dependencies
* Implement fit/predict PTuningScorer
* Added PTuningScorer in __init__ file
* Update optimizer_config.schema.json
* Minor fixs
* PGH00
* Refactor clear_cache in fit method
* Refactor typing ignore + remove unnecessary
* Fix fit method status check
* Added test for PTuningScorer
* Fix mypy typing
* Update and fix peft version dependencies
* Fix mypy typing
* Added test in multiclass.yaml, multilabel.yaml
* Update docs strings
* Fix mypy typing
* Added trust_remote_code
* make proper rst reference
* Added test for dump lod
* feat: added crossencoder (#181)
* feat: added crossencoder
* refactor
* feat: added arg similarity
* Update optimizer_config.schema.json
* feat: added tests
* feat: added errors
* fix: scoring test
* fix: description vectors error
* fix: description vectors error
* fix: lint
* fix: test
* add node validators (#177)
* add node validators
* add comments
* Update optimizer_config.schema.json
* rename bert model
* lint
* fixes
* fix test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: voorhs <[email protected]>
* fix: unit tests
* feat: added test for description
* feat: delete encoder_type from the class args
* feat: update assets
* feat: update assets
* fix: fixed test
* Update optimizer_config.schema.json
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Roman Solomatin <[email protected]>
Co-authored-by: voorhs <[email protected]>
* Added fixed seed to test reproduction
* Pull LoraScorer and Bert Refactor
* Refactor PTuningScorer
* Refactor test for ptuning
* Fix typing
* Fix multilabel multiclass tests
* Fix typing
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: voorhs <[email protected]>
Co-authored-by: Darinochka <[email protected]>
Co-authored-by: Roman Solomatin <[email protected]>
* Rerank scorer: опция для выбора источника для расчета вектора вероятностей (#115)
* Enable rerank scorer to use crossencoder scores for the probability vector
* add cross encoder scores range options
* upd test
---------
Co-authored-by: voorhs <[email protected]>
* feat: add DISABLE_EMISSIONS_TRACKING (#191)
* feat: add DISABLE_EMISSIONS_TRACKING
* try to fix docs error
* Update optimizer_config.schema.json
* another attempt
* Update optimizer_config.schema.json
* i give up for now
* Update optimizer_config.schema.json
---------
Co-authored-by: voorhs <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix issue (#194)
* Refactor/embedding caching (#195)
* implement new hashing strategy
* fix codestyle
* Update optimizer_config.schema.json
* minor bug fix
* fix typing error
* refactor similarity calculation
* Update optimizer_config.schema.json
* upd callback test
* solve 429 error
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* forgot something
---------
Co-authored-by: Сергей Малышев <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Darinochka <[email protected]>
Co-authored-by: Roman Solomatin <[email protected]>
Co-authored-by: VALERIA RUBANOVA <[email protected]>
Co-authored-by: nikiduki <[email protected]>
Co-authored-by: Dmitryv-2024 <[email protected]>
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Алексеев Илья <[email protected]>
Co-authored-by: Сергей Малышев <[email protected]>
Co-authored-by: Darinochka <[email protected]>
Co-authored-by: VALERIA RUBANOVA <[email protected]>
Co-authored-by: nikiduki <[email protected]>
Co-authored-by: Dmitryv-2024 <[email protected]>
Co-authored-by: voorhs <[email protected]>1 parent 389eb40 commit 8580f19
File tree
10 files changed
+511
-81
lines changed- autointent
- _pipeline
- context
- optimization_info
- nodes
- schemas
- tests/pipeline
10 files changed
+511
-81
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
182 | 184 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
88 | | - | |
| 92 | + | |
89 | 93 | | |
90 | | - | |
91 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
92 | 100 | | |
93 | 101 | | |
94 | 102 | | |
| |||
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
128 | | - | |
| 136 | + | |
129 | 137 | | |
130 | 138 | | |
131 | 139 | | |
| |||
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
186 | 183 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
196 | 193 | | |
197 | 194 | | |
198 | | - | |
199 | | - | |
200 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
201 | 204 | | |
202 | | - | |
203 | | - | |
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
80 | | - | |
81 | | - | |
82 | 78 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 79 | | |
| 80 | + | |
89 | 81 | | |
90 | 82 | | |
91 | 83 | | |
| |||
95 | 87 | | |
96 | 88 | | |
97 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
98 | 107 | | |
99 | 108 | | |
100 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
55 | 81 | | |
56 | 82 | | |
57 | 83 | | |
| |||
104 | 130 | | |
105 | 131 | | |
106 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
107 | 158 | | |
108 | 159 | | |
109 | 160 | | |
| |||
136 | 187 | | |
137 | 188 | | |
138 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
139 | 199 | | |
140 | 200 | | |
141 | 201 | | |
| |||
Lines changed: 31 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
59 | 78 | | |
60 | 79 | | |
61 | 80 | | |
| |||
73 | 92 | | |
74 | 93 | | |
75 | 94 | | |
76 | | - | |
77 | | - | |
78 | 95 | | |
79 | 96 | | |
80 | 97 | | |
| |||
115 | 132 | | |
116 | 133 | | |
117 | 134 | | |
118 | | - | |
| 135 | + | |
119 | 136 | | |
120 | 137 | | |
121 | 138 | | |
| |||
225 | 242 | | |
226 | 243 | | |
227 | 244 | | |
| 245 | + | |
| 246 | + | |
228 | 247 | | |
229 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
230 | 258 | | |
231 | 259 | | |
232 | 260 | | |
| |||
0 commit comments