Release 1.4.0
Browse files- README.md +57 -27
- config.json +7 -7
- model.onnx +2 -2
- to_cron.py +2 -1
README.md
CHANGED
|
@@ -34,7 +34,17 @@ model-index:
|
|
| 34 |
type: tinycron-template
|
| 35 |
metrics:
|
| 36 |
- type: exact_match
|
| 37 |
-
value: 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
name: Exact match
|
| 39 |
- task:
|
| 40 |
type: text-classification
|
|
@@ -44,7 +54,7 @@ model-index:
|
|
| 44 |
type: tinycron-ai
|
| 45 |
metrics:
|
| 46 |
- type: exact_match
|
| 47 |
-
value: 0.
|
| 48 |
name: Exact match
|
| 49 |
- task:
|
| 50 |
type: text-classification
|
|
@@ -54,7 +64,7 @@ model-index:
|
|
| 54 |
type: topv2
|
| 55 |
metrics:
|
| 56 |
- type: exact_match
|
| 57 |
-
value: 0.
|
| 58 |
name: Exact match
|
| 59 |
- task:
|
| 60 |
type: text-classification
|
|
@@ -64,17 +74,27 @@ model-index:
|
|
| 64 |
type: tinycron-assistant
|
| 65 |
metrics:
|
| 66 |
- type: exact_match
|
| 67 |
-
value: 0.
|
| 68 |
name: Exact match
|
| 69 |
- task:
|
| 70 |
type: text-classification
|
| 71 |
name: Text to cron
|
| 72 |
dataset:
|
| 73 |
-
name: Fresh requests written by an AI model (held out)
|
| 74 |
type: tinycron-fresh
|
| 75 |
metrics:
|
| 76 |
- type: exact_match
|
| 77 |
-
value: 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
name: Exact match
|
| 79 |
- task:
|
| 80 |
type: text-classification
|
|
@@ -84,7 +104,7 @@ model-index:
|
|
| 84 |
type: tinycron-probes
|
| 85 |
metrics:
|
| 86 |
- type: exact_match
|
| 87 |
-
value: 0.
|
| 88 |
name: Exact match
|
| 89 |
- task:
|
| 90 |
type: text-classification
|
|
@@ -94,7 +114,7 @@ model-index:
|
|
| 94 |
type: tinycron-real-text
|
| 95 |
metrics:
|
| 96 |
- type: exact_match
|
| 97 |
-
value: 0.
|
| 98 |
name: Exact match
|
| 99 |
- task:
|
| 100 |
type: text-classification
|
|
@@ -104,7 +124,7 @@ model-index:
|
|
| 104 |
type: tinycron-github
|
| 105 |
metrics:
|
| 106 |
- type: exact_match
|
| 107 |
-
value: 0.
|
| 108 |
name: Exact match
|
| 109 |
---
|
| 110 |
|
|
@@ -173,7 +193,7 @@ Defaults for vague requests:
|
|
| 173 |
|
| 174 |
- No time means midnight: "every Monday" is `0 0 * * 1`.
|
| 175 |
- "Morning" is 9:00. "Every night at 7" is 19:00.
|
| 176 |
-
- A bare hour from 1 to 6 is afternoon: "at 3" is 15:00.
|
| 177 |
- "Weekly" is Sunday at midnight. "Monthly" is the 1st at midnight.
|
| 178 |
- "Between 9 and 5" includes the last hour: `9-17`.
|
| 179 |
- Time zones are ignored.
|
|
@@ -184,21 +204,25 @@ Exact match. None of these rows are in the training data.
|
|
| 184 |
|
| 185 |
| Text | Rows | Accuracy | Wrong per 1,000 |
|
| 186 |
|---|---|---|---|
|
| 187 |
-
| Template requests | 2,
|
| 188 |
-
|
|
| 189 |
-
| Real
|
| 190 |
-
|
|
| 191 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
|
| 193 |
Errors on these sets guided the training data, so they flatter this model:
|
| 194 |
|
| 195 |
| Text | Rows | Accuracy | Wrong per 1,000 |
|
| 196 |
|---|---|---|---|
|
| 197 |
-
| Requests written by an AI model | 1,
|
| 198 |
-
| Hand-written tricky requests | 155 |
|
| 199 |
-
| GitHub issue sentences, never trained on | 2,699 |
|
| 200 |
|
| 201 |
-
Other tools on the
|
| 202 |
|
| 203 |
| System | Template | AI-written | Real requests (TOPv2) | Real text |
|
| 204 |
|---|---|---|---|---|
|
|
@@ -211,9 +235,9 @@ Other tools on the same rows, counting only rows whose answer is a schedule, sco
|
|
| 211 |
| Claude Haiku (October 2026), prompted\*† | 80.2% | 76.9% | 46.9% | 71.5% |
|
| 212 |
| Claude Sonnet (October 2026), prompted\*† | 78.6% | 78.5% | 66.7% | 79.7% |
|
| 213 |
| Claude Opus (October 2026), prompted\*† | 81.7% | 81.8% | 66.7% | 78.9% |
|
| 214 |
-
| this model (1.9M parameters, 1.6 MB) | 98.
|
| 215 |
|
| 216 |
-
\* The language models are too slow for whole splits, so they ran on a seeded sample of 150 rows per column (96 to 126 of them schedules). On the same sample this model scores 98.4%,
|
| 217 |
|
| 218 |
† The Claude models got the same one-paragraph prompt: Vixie cron, up to three lines, or `UNSUPPORTED`, `INCOMPLETE` or `INVALID`. Most of their TOPv2 misses are refusals of requests this model's labeling rules read as schedules. A second Haiku run with the same prompt scored 64.6% on TOPv2 and 61.8% on real text, so treat these scores as rough to 10 points or more. Claude also wrote the AI-written requests and helped label the data, which may favor them.
|
| 219 |
|
|
@@ -226,14 +250,15 @@ This model's errors on the AI-written column guided its training data, so its le
|
|
| 226 |
|
| 227 |
| Text | Wrong per 100 |
|
| 228 |
|---|---|
|
| 229 |
-
| Spoken requests to an assistant ("wake me at 7 on weekdays") |
|
| 230 |
| Sentences from code, forums and Q&A sites | 12 |
|
| 231 |
-
| Short entries typed into an app ("daily except Fridays", "every 4 hrs from 0200") |
|
|
|
|
| 232 |
| Sentences from GitHub issues | 22 |
|
| 233 |
|
| 234 |
-
- The `95%` threshold is fitted on the dev set, and how far to trust it depends on the text. Above it, answers were right 97%
|
| 235 |
- In sentences, the most common mistake is the class: a schedule answered with a class, or a class answered with a schedule. The next is one wrong field. In short requests, one wrong field comes first, then the class.
|
| 236 |
-
- Weakest on different times on different days in one request,
|
| 237 |
- Reads one request at a time, not a whole paragraph.
|
| 238 |
|
| 239 |
## Porting to another language
|
|
@@ -265,7 +290,7 @@ Run one text at a time, as the scores above were. In a batch the texts share the
|
|
| 265 |
|
| 266 |
## Training data
|
| 267 |
|
| 268 |
-
About
|
| 269 |
|
| 270 |
- [Stack Exchange](https://archive.org/details/stackexchange): android, apple, askubuntu.com, dba, devops, drupal, magento, pm, raspberrypi, salesforce, serverfault.com, sharepoint, sqa, superuser.com, unix, webapps, webmasters, wordpress and Stack Overflow ([CC BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/), [3.0](https://creativecommons.org/licenses/by-sa/3.0/) or [4.0](https://creativecommons.org/licenses/by-sa/4.0/), by post date);
|
| 271 |
- [TOPv2](https://dl.fbaipublicfiles.com/topv2/TOPv2_Dataset.zip) (Chen et al. 2020, [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/));
|
|
@@ -274,7 +299,11 @@ About 200,000 labeled rows, plus about 56,000 texts labeled by earlier models of
|
|
| 274 |
- [MTOP](https://fb.me/mtop_dataset) ([CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)), [Multilingual Task-Oriented Dialog](https://fb.me/multilingual_task_oriented_data) ([CC BY-SA](https://creativecommons.org/licenses/by-sa/4.0/)), [SLURP](https://github.com/pswietojanski/slurp) ([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)) and [HWU64](https://github.com/xliuhw/NLU-Evaluation-Data) ([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/));
|
| 275 |
- code comments next to cron lines in public repositories, found with Sourcegraph.
|
| 276 |
|
| 277 |
-
The rest is generated: template requests, and requests and developer prose written by an AI model, checked by blind readings. `microsoft/deberta-v3-xsmall` (MIT) served as
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
|
| 279 |
## Changes
|
| 280 |
|
|
@@ -283,6 +312,7 @@ The rest is generated: template requests, and requests and developer prose writt
|
|
| 283 |
- 1.1.0: weights packed to 3, 5 and 6 bits and unused tokenizer pieces dropped: 3.2 MB to 1.5 MB. Same answers on the test vectors; scores move by at most 0.7 points.
|
| 284 |
- 1.2.0: retrained on app-style requests and prose that names times without asking for a schedule. Same size, speed and test vector answers. Held-out app-style requests 66.9% to 73.9% (counting `UNSUPPORTED` and `INVALID` as one answer); other scores move by at most 1.6 points.
|
| 285 |
- 1.3.0: new weights, trained on more short requests, with new heads for minute steps and for giving each hour its own days. A port must read the new `hour_days` output (steps 4 and 5). 1.6 MB, up from 1.5 MB, and 2.3 ms, up from 2.0 ms. `rules.py` now only reads text that is already a cron line: it no longer fills gaps in the model's hours. Scores against 1.2.0: template 96.0% to 98.4%, AI-written 90.1% to 95.2%, tricky 96.1% to 97.4%, real text 86.5% to 87.9%, GitHub 74.8% to 77.6% (1.2 points of it from corrected labels), TOPv2 level at 96.4%, assistant 94.5% to 94.2% (two rows). Held-out app-style requests 73.9% to 85.9%, counted as in 1.2.0. Answers above the `95%` threshold are a little less reliable on long prose and spoken requests, and more reliable on short app entries. The test vector "remind me sometime" is now `UNSUPPORTED`, was `INVALID`.
|
|
|
|
| 286 |
|
| 287 |
## License
|
| 288 |
|
|
|
|
| 34 |
type: tinycron-template
|
| 35 |
metrics:
|
| 36 |
- type: exact_match
|
| 37 |
+
value: 0.987
|
| 38 |
+
name: Exact match
|
| 39 |
+
- task:
|
| 40 |
+
type: text-classification
|
| 41 |
+
name: Text to cron
|
| 42 |
+
dataset:
|
| 43 |
+
name: Harder template requests, new in 1.4.0 (held out)
|
| 44 |
+
type: tinycron-template-new
|
| 45 |
+
metrics:
|
| 46 |
+
- type: exact_match
|
| 47 |
+
value: 0.745
|
| 48 |
name: Exact match
|
| 49 |
- task:
|
| 50 |
type: text-classification
|
|
|
|
| 54 |
type: tinycron-ai
|
| 55 |
metrics:
|
| 56 |
- type: exact_match
|
| 57 |
+
value: 0.976
|
| 58 |
name: Exact match
|
| 59 |
- task:
|
| 60 |
type: text-classification
|
|
|
|
| 64 |
type: topv2
|
| 65 |
metrics:
|
| 66 |
- type: exact_match
|
| 67 |
+
value: 0.966
|
| 68 |
name: Exact match
|
| 69 |
- task:
|
| 70 |
type: text-classification
|
|
|
|
| 74 |
type: tinycron-assistant
|
| 75 |
metrics:
|
| 76 |
- type: exact_match
|
| 77 |
+
value: 0.957
|
| 78 |
name: Exact match
|
| 79 |
- task:
|
| 80 |
type: text-classification
|
| 81 |
name: Text to cron
|
| 82 |
dataset:
|
| 83 |
+
name: Fresh requests written by an AI model (held out; helped choose the model)
|
| 84 |
type: tinycron-fresh
|
| 85 |
metrics:
|
| 86 |
- type: exact_match
|
| 87 |
+
value: 0.945
|
| 88 |
+
name: Exact match
|
| 89 |
+
- task:
|
| 90 |
+
type: text-classification
|
| 91 |
+
name: Text to cron
|
| 92 |
+
dataset:
|
| 93 |
+
name: Long requests with several clauses (held out; helped choose the model)
|
| 94 |
+
type: tinycron-long
|
| 95 |
+
metrics:
|
| 96 |
+
- type: exact_match
|
| 97 |
+
value: 0.782
|
| 98 |
name: Exact match
|
| 99 |
- task:
|
| 100 |
type: text-classification
|
|
|
|
| 104 |
type: tinycron-probes
|
| 105 |
metrics:
|
| 106 |
- type: exact_match
|
| 107 |
+
value: 0.968
|
| 108 |
name: Exact match
|
| 109 |
- task:
|
| 110 |
type: text-classification
|
|
|
|
| 114 |
type: tinycron-real-text
|
| 115 |
metrics:
|
| 116 |
- type: exact_match
|
| 117 |
+
value: 0.881
|
| 118 |
name: Exact match
|
| 119 |
- task:
|
| 120 |
type: text-classification
|
|
|
|
| 124 |
type: tinycron-github
|
| 125 |
metrics:
|
| 126 |
- type: exact_match
|
| 127 |
+
value: 0.781
|
| 128 |
name: Exact match
|
| 129 |
---
|
| 130 |
|
|
|
|
| 193 |
|
| 194 |
- No time means midnight: "every Monday" is `0 0 * * 1`.
|
| 195 |
- "Morning" is 9:00. "Every night at 7" is 19:00.
|
| 196 |
+
- A bare hour or a time like 5:30, from 1 to 6, is afternoon: "at 3" is 15:00, "start dinner at 5:30" is 17:30. Alarms and wake-ups keep the morning: "set my alarm to 6" is 06:00.
|
| 197 |
- "Weekly" is Sunday at midnight. "Monthly" is the 1st at midnight.
|
| 198 |
- "Between 9 and 5" includes the last hour: `9-17`.
|
| 199 |
- Time zones are ignored.
|
|
|
|
| 204 |
|
| 205 |
| Text | Rows | Accuracy | Wrong per 1,000 |
|
| 206 |
|---|---|---|---|
|
| 207 |
+
| Template requests | 2,598 | 98.7% | 13 |
|
| 208 |
+
| Harder template requests, new in 1.4.0 | 1,934 | 74.5% | 255 |
|
| 209 |
+
| Real alarm and reminder requests (TOPv2) | 1,510 | 96.6% | 34 |
|
| 210 |
+
| Real assistant requests from five more datasets | 745 | 95.7% | 43 |
|
| 211 |
+
| Fresh requests written by an AI model\* | 949 | 94.5% | 55 |
|
| 212 |
+
| Long requests with several clauses, written by an AI model\* | 257 | 78.2% | 218 |
|
| 213 |
+
| Real text from code, forums and Q&A sites | 2,978 | 88.1% | 119 |
|
| 214 |
+
|
| 215 |
+
\* These sets helped choose between candidate models, so they flatter this model a little.
|
| 216 |
|
| 217 |
Errors on these sets guided the training data, so they flatter this model:
|
| 218 |
|
| 219 |
| Text | Rows | Accuracy | Wrong per 1,000 |
|
| 220 |
|---|---|---|---|
|
| 221 |
+
| Requests written by an AI model | 1,763 | 97.6% | 24 |
|
| 222 |
+
| Hand-written tricky requests | 155 | 96.8% | 32 |
|
| 223 |
+
| GitHub issue sentences, never trained on | 2,699 | 78.1% | 219 |
|
| 224 |
|
| 225 |
+
Other tools on the rows and labels they were scored on (those of the 1.3.0 card), counting only rows whose answer is a schedule, scored leniently:
|
| 226 |
|
| 227 |
| System | Template | AI-written | Real requests (TOPv2) | Real text |
|
| 228 |
|---|---|---|---|---|
|
|
|
|
| 235 |
| Claude Haiku (October 2026), prompted\*† | 80.2% | 76.9% | 46.9% | 71.5% |
|
| 236 |
| Claude Sonnet (October 2026), prompted\*† | 78.6% | 78.5% | 66.7% | 79.7% |
|
| 237 |
| Claude Opus (October 2026), prompted\*† | 81.7% | 81.8% | 66.7% | 78.9% |
|
| 238 |
+
| this model (1.9M parameters, 1.6 MB) | 98.8% | 97.7% | 96.6% | 90.8% |
|
| 239 |
|
| 240 |
+
\* The language models are too slow for whole splits, so they ran on a seeded sample of 150 rows per column (96 to 126 of them schedules). On the same sample this model scores 98.4%, 98.3%, 97.9% and 91.1%. leom21/cron has no documented prompt; it got "Convert to cron: " before the text, the best of the prompts tried.
|
| 241 |
|
| 242 |
† The Claude models got the same one-paragraph prompt: Vixie cron, up to three lines, or `UNSUPPORTED`, `INCOMPLETE` or `INVALID`. Most of their TOPv2 misses are refusals of requests this model's labeling rules read as schedules. A second Haiku run with the same prompt scored 64.6% on TOPv2 and 61.8% on real text, so treat these scores as rough to 10 points or more. Claude also wrote the AI-written requests and helped label the data, which may favor them.
|
| 243 |
|
|
|
|
| 250 |
|
| 251 |
| Text | Wrong per 100 |
|
| 252 |
|---|---|
|
| 253 |
+
| Spoken requests to an assistant ("wake me at 7 on weekdays") | 3 to 4 |
|
| 254 |
| Sentences from code, forums and Q&A sites | 12 |
|
| 255 |
+
| Short entries typed into an app ("daily except Fridays", "every 4 hrs from 0200") | 12 |
|
| 256 |
+
| Long requests with several clauses ("water the plants at 7am every day, but at 9 on weekends, and skip mondays") | 22 |
|
| 257 |
| Sentences from GitHub issues | 22 |
|
| 258 |
|
| 259 |
+
- The `95%` threshold is fitted on the dev set, and how far to trust it depends on the text. Above it, answers were right 97% of the time on spoken requests, 93% on sentences from code, forums and Q&A sites, 94% on short app entries and 86% on sentences from GitHub issues, counting `UNSUPPORTED` and `INVALID` as one answer.
|
| 260 |
- In sentences, the most common mistake is the class: a schedule answered with a class, or a class answered with a schedule. The next is one wrong field. In short requests, one wrong field comes first, then the class.
|
| 261 |
+
- Weakest on requests with a detail missing (`INCOMPLETE`), different times on different days in one request, a step inside a window ("every 10 minutes from 9 to 5"), hour windows ("9 to 5"), days of the month, days by exclusion and lists of hours.
|
| 262 |
- Reads one request at a time, not a whole paragraph.
|
| 263 |
|
| 264 |
## Porting to another language
|
|
|
|
| 290 |
|
| 291 |
## Training data
|
| 292 |
|
| 293 |
+
About 240,000 labeled rows, plus about 58,000 texts labeled by earlier models of this design. Real text comes from:
|
| 294 |
|
| 295 |
- [Stack Exchange](https://archive.org/details/stackexchange): android, apple, askubuntu.com, dba, devops, drupal, magento, pm, raspberrypi, salesforce, serverfault.com, sharepoint, sqa, superuser.com, unix, webapps, webmasters, wordpress and Stack Overflow ([CC BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/), [3.0](https://creativecommons.org/licenses/by-sa/3.0/) or [4.0](https://creativecommons.org/licenses/by-sa/4.0/), by post date);
|
| 296 |
- [TOPv2](https://dl.fbaipublicfiles.com/topv2/TOPv2_Dataset.zip) (Chen et al. 2020, [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/));
|
|
|
|
| 299 |
- [MTOP](https://fb.me/mtop_dataset) ([CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)), [Multilingual Task-Oriented Dialog](https://fb.me/multilingual_task_oriented_data) ([CC BY-SA](https://creativecommons.org/licenses/by-sa/4.0/)), [SLURP](https://github.com/pswietojanski/slurp) ([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)) and [HWU64](https://github.com/xliuhw/NLU-Evaluation-Data) ([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/));
|
| 300 |
- code comments next to cron lines in public repositories, found with Sourcegraph.
|
| 301 |
|
| 302 |
+
The rest is generated: template requests, and requests and developer prose written by an AI model, checked by blind readings. `microsoft/deberta-v3-xsmall` and `microsoft/deberta-v3-base` (both MIT) served as training teachers and do not ship with the model. `cross-encoder/ms-marco-MiniLM-L-6-v2` (Apache-2.0) also served as a teacher, and its word piece vectors and a cut-down copy of its tokenizer ship in `model.onnx` and `tokenizer.json`. No dataset under a non-commercial license was used for this model's training rows.
|
| 303 |
+
|
| 304 |
+
## Training compute
|
| 305 |
+
|
| 306 |
+
Trained on one desktop PC (AMD Ryzen 9 5950X, AMD Radeon RX 6700 XT): about 1,870 training runs, about 300 hours.
|
| 307 |
|
| 308 |
## Changes
|
| 309 |
|
|
|
|
| 312 |
- 1.1.0: weights packed to 3, 5 and 6 bits and unused tokenizer pieces dropped: 3.2 MB to 1.5 MB. Same answers on the test vectors; scores move by at most 0.7 points.
|
| 313 |
- 1.2.0: retrained on app-style requests and prose that names times without asking for a schedule. Same size, speed and test vector answers. Held-out app-style requests 66.9% to 73.9% (counting `UNSUPPORTED` and `INVALID` as one answer); other scores move by at most 1.6 points.
|
| 314 |
- 1.3.0: new weights, trained on more short requests, with new heads for minute steps and for giving each hour its own days. A port must read the new `hour_days` output (steps 4 and 5). 1.6 MB, up from 1.5 MB, and 2.3 ms, up from 2.0 ms. `rules.py` now only reads text that is already a cron line: it no longer fills gaps in the model's hours. Scores against 1.2.0: template 96.0% to 98.4%, AI-written 90.1% to 95.2%, tricky 96.1% to 97.4%, real text 86.5% to 87.9%, GitHub 74.8% to 77.6% (1.2 points of it from corrected labels), TOPv2 level at 96.4%, assistant 94.5% to 94.2% (two rows). Held-out app-style requests 73.9% to 85.9%, counted as in 1.2.0. Answers above the `95%` threshold are a little less reliable on long prose and spoken requests, and more reliable on short app entries. The test vector "remind me sometime" is now `UNSUPPORTED`, was `INVALID`.
|
| 315 |
+
- 1.4.0: new weights, trained on more short requests, long requests with several clauses and harder template requests. The graph, its outputs, the tokenizer, the size and the speed are unchanged, so a port needs no change, and the test vectors give the same answers. `to_cron.py` now drops repeated lines before it counts them, as step 5 says; the two disagreed on 2 template rows. Scores against 1.3.0, both on today's labels (some test labels changed as the labeling rules grew): template 98.5% to 98.7%, harder template requests 44.5% to 74.5%, AI-written 95.2% to 97.6%, TOPv2 95.6% to 96.6%, assistant 94.1% to 95.7%, fresh 92.2% to 94.5%, long requests 56.4% to 78.2%, real text 87.9% to 88.1%, GitHub 77.6% to 78.1%, tricky level at 96.8%. Alarms and wake-ups with a bare hour now read as morning ("set my alarm to 6" is 06:00, was 18:00), and spoken times from 1:00 to 6:59 as afternoon ("start dinner at 5:30" is 17:30, was 05:30).
|
| 316 |
|
| 317 |
## License
|
| 318 |
|
config.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"version": "1.
|
| 3 |
-
"created": "2026-11-
|
| 4 |
-
"source": "
|
| 5 |
-
"git_commit": "
|
| 6 |
"members": 1,
|
| 7 |
"weights": "word table 3-bit, GRU 5-bit, heads 6-bit",
|
| 8 |
"classes": [
|
|
@@ -39,11 +39,11 @@
|
|
| 39 |
"word_source": "minilm",
|
| 40 |
"time_grid": true,
|
| 41 |
"sha256": {
|
| 42 |
-
"model.onnx": "
|
| 43 |
"tokenizer.json": "2c5e5ad1331129aa5d9b17e51fa298a56a4c83e96ab6deb9ac42ee54df92bc99"
|
| 44 |
},
|
| 45 |
"confidence_thresholds": {
|
| 46 |
-
"95%": 0.
|
| 47 |
-
"98%": 0.
|
| 48 |
}
|
| 49 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"version": "1.4.0",
|
| 3 |
+
"created": "2026-11-12",
|
| 4 |
+
"source": "soup_2026-11-11_r100ALL.pt",
|
| 5 |
+
"git_commit": "ab113dd828a92da190609cfbbf00ce49f2b7c839",
|
| 6 |
"members": 1,
|
| 7 |
"weights": "word table 3-bit, GRU 5-bit, heads 6-bit",
|
| 8 |
"classes": [
|
|
|
|
| 39 |
"word_source": "minilm",
|
| 40 |
"time_grid": true,
|
| 41 |
"sha256": {
|
| 42 |
+
"model.onnx": "5ca5cb8a160778b67c098ccda8537edf45fd3b185c179b91a0e615c5bbf76a94",
|
| 43 |
"tokenizer.json": "2c5e5ad1331129aa5d9b17e51fa298a56a4c83e96ab6deb9ac42ee54df92bc99"
|
| 44 |
},
|
| 45 |
"confidence_thresholds": {
|
| 46 |
+
"95%": 0.6278,
|
| 47 |
+
"98%": 0.9304
|
| 48 |
}
|
| 49 |
}
|
model.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ca5cb8a160778b67c098ccda8537edf45fd3b185c179b91a0e615c5bbf76a94
|
| 3 |
+
size 1622505
|
to_cron.py
CHANGED
|
@@ -145,9 +145,10 @@ class CronModel:
|
|
| 145 |
lines = [cron_line(minutes[k], hours[k], doms[k], months[k], dows[k], day_or[k], fields) for k in slots]
|
| 146 |
if None in lines:
|
| 147 |
return "UNSUPPORTED", [], confidence
|
|
|
|
| 148 |
if len(lines) > self.config["max_lines"]: # more lines than a crontab answer may hold
|
| 149 |
return "UNSUPPORTED", [], confidence
|
| 150 |
-
return "schedule",
|
| 151 |
|
| 152 |
def to_cron(self, text):
|
| 153 |
"""The cron lines joined by newlines, or the class name."""
|
|
|
|
| 145 |
lines = [cron_line(minutes[k], hours[k], doms[k], months[k], dows[k], day_or[k], fields) for k in slots]
|
| 146 |
if None in lines:
|
| 147 |
return "UNSUPPORTED", [], confidence
|
| 148 |
+
lines = sorted(set(lines), key=line_order) # a repeated line is the same crontab entry
|
| 149 |
if len(lines) > self.config["max_lines"]: # more lines than a crontab answer may hold
|
| 150 |
return "UNSUPPORTED", [], confidence
|
| 151 |
+
return "schedule", lines, confidence
|
| 152 |
|
| 153 |
def to_cron(self, text):
|
| 154 |
"""The cron lines joined by newlines, or the class name."""
|