| 1 | # Changelog |
| 2 | |
| 3 | Changes to what this repository publishes. Version numbers start with 0.1.0, the first release; until then |
| 4 | everything is listed under Unreleased. |
| 5 | |
| 6 | ## Unreleased |
| 7 | |
| 8 | ### Fixed |
| 9 | |
| 10 | - Sampling with a temperature above zero could return the least likely candidate about half of the time, because |
| 11 | the random draw fell outside its range; consecutive seeds also gave correlated draws. The draw is now uniform. |
| 12 | - `js/tokenizer.js` is plain text: three literal NUL characters are written as `'\u0000'`, which is the same string. |
| 13 | |
| 14 | ### Changed |
| 15 | |
| 16 | - The sampler follows llama.cpp's order: penalties, top-k, top-p, min-p, then temperature. Top-p and min-p are now |
| 17 | computed before the temperature is applied. |
| 18 | - The seed advances with every generated token. |
| 19 | - When the app sets no sampling, the engine uses the one the registry declares for the model, if any; otherwise it |
| 20 | decodes greedily with its default repeat penalty (1.1 over the last 64 tokens). `setSampling()` merges into that. |
| 21 | - The published tree is the import closure of `js/provider.js` (19 modules) and the files around it. The README |
| 22 | and `package.json` were rewritten for this repository; `package.json` declares `Apache-2.0 AND MIT`, as |
| 23 | `js/quant-tables.js` does, and lists `assets/`. |
| 24 | |
| 25 | ### Added |
| 26 | |
| 27 | - `setSampling()` accepts `minP`, `presence` and `repeatPenalty`. |
| 28 | - Models that reason get an open reasoning block and a reply budget of their own; `setSampling({ razonar })` forces |
| 29 | reasoning on (`true`) or off (`false`), and `null` leaves it to the registry. |
| 30 | - `NOTICE`, and the complete MIT licence of the ggml authors at the top of `js/quant-tables.js`. |
| 31 | |
| 32 | ### Removed |
| 33 | |
| 34 | - The two articles in `docs/`, which were in Spanish. They will come back rewritten in English. |