Commit 0d50d0e
refactor: move GGUFTokenizer to llm-core, add TokenizerFactory
Phase 3 of the unified pipeline plan. Tokenization is now a standalone
pipeline stage in llm-core, independent of any specific runner.
- Move GGUFTokenizer from kllama to llm-core/tokenizer package
- Add typealias in kllama for backwards compatibility
- Create TokenizerFactory with fromGGUF(), fromTokenizerJson(), fromHuggingFace()
- Add skainet-io-gguf and kotlinx-io-core dependencies to llm-core
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f42617a commit 0d50d0e
5 files changed
Lines changed: 818 additions & 769 deletions
File tree
- llm-core
- src/commonMain/kotlin/sk/ainet/apps/llm/tokenizer
- llm-runtime/kllama/src/commonMain/kotlin/sk/ainet/apps/kllama
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
104 | 96 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
109 | 101 | | |
110 | | - | |
| 102 | + | |
111 | 103 | | |
112 | 104 | | |
113 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
0 commit comments