Commit 4924455
authored
feat: Make saved state more compact on-disk (#1296)
* State load/save changes
- Only store up to `n_tokens` logits instead of full `(n_ctx, n_vocab)`
sized array.
- Difference between ~350MB and ~1500MB for example prompt with ~300
tokens (makes sense lol)
- Auto-formatting changes
* Back out formatting changes1 parent 9842cbf commit 4924455
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
1791 | 1792 | | |
1792 | 1793 | | |
1793 | 1794 | | |
1794 | | - | |
| 1795 | + | |
1795 | 1796 | | |
1796 | 1797 | | |
1797 | 1798 | | |
| |||
1800 | 1801 | | |
1801 | 1802 | | |
1802 | 1803 | | |
1803 | | - | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
1804 | 1807 | | |
1805 | 1808 | | |
1806 | 1809 | | |
| |||
1951 | 1954 | | |
1952 | 1955 | | |
1953 | 1956 | | |
1954 | | - | |
1955 | 1957 | | |
1956 | 1958 | | |
1957 | 1959 | | |
| |||
0 commit comments