{"_id":"@cyberlangke/tokkit-tinyllama","name":"@cyberlangke/tokkit-tinyllama","dist-tags":{"latest":"1.11.0"},"versions":{"1.11.0":{"name":"@cyberlangke/tokkit-tinyllama","version":"1.11.0","description":"TinyLlama model aliases for tokkit.","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup","dev":"tsup --watch"},"dependencies":{"@cyberlangke/tokkit-core":"1.11.0","@cyberlangke/tokkit-h2oai":"1.11.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/1cyberlangke1/tokkit.git"},"homepage":"https://github.com/1cyberlangke1/tokkit#readme","bugs":{"url":"https://github.com/1cyberlangke1/tokkit/issues"},"author":{"name":"cyberlangke"},"license":"Apache-2.0","gitHead":"46a09f5fad7bbe1e5e5b802ef6ba7014eb5657bb","_id":"@cyberlangke/tokkit-tinyllama@1.11.0","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-sv/TsU/ScW0SdKjNZgzrhWmKcnXDGD/VrenarlzPNYla0f9qBm94yoyhZp85uAoIGtCuEis68S4pHKoLRZJA6A==","shasum":"6e56bd3d1403e66e6be8b5adfbc749f6e4b39d1b","tarball":"https://registry.npmjs.org/@cyberlangke/tokkit-tinyllama/-/tokkit-tinyllama-1.11.0.tgz","fileCount":8,"unpackedSize":10482,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIF1UMLaKowsiXQL6u8ikbtLwejiDPGgcJxf9nZYeLi8lAiBpqJOCi3Mzn1iiAakzC0mFYNX6RKV3qYtuzlQkaITo3Q=="}]},"_npmUser":{"name":"cyberlangke","email":"3531702083@qq.com"},"directories":{},"maintainers":[{"name":"cyberlangke","email":"3531702083@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tokkit-tinyllama_1.11.0_1775013755883_0.09361639152468637"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-01T03:22:35.768Z","1.11.0":"2026-04-01T03:22:36.025Z","modified":"2026-04-01T03:22:36.275Z"},"maintainers":[{"name":"cyberlangke","email":"3531702083@qq.com"}],"description":"TinyLlama model aliases for tokkit.","homepage":"https://github.com/1cyberlangke1/tokkit#readme","repository":{"type":"git","url":"git+https://github.com/1cyberlangke1/tokkit.git"},"author":{"name":"cyberlangke"},"bugs":{"url":"https://github.com/1cyberlangke1/tokkit/issues"},"license":"Apache-2.0","readme":"# @cyberlangke/tokkit-tinyllama\n\nTinyLlama 官方文本模型的 tokkit 子包。\n\n当前纳入的官方主线模型：\n\n- `TinyLlama/TinyLlama_v1.1`\n- `TinyLlama/TinyLlama-1.1B-Chat-v1.0`\n\n当前不纳入：\n\n- `TinyLlama/TinyLlama-1.1B-python-v0.1`\n- `TinyLlama/TinyLlama_v1.1_chinese`\n- `TinyLlama/TinyLlama_v1.1_math_code`\n- `TinyLlama/TinyLlama-1.1B-step-*`\n- `TinyLlama/TinyLlama-1.1B-intermediate-*`\n- 旧 `Chat-v0.*` 与其他 checkpoint / 量化衍生物\n\n说明：\n\n- 以上纳入模型的 `tokenizer.json` 已验 hash，当前与已支持的 `danube` family 完全一致。\n- 该子包不重复分发 tokenizer 快照，而是复用现有 `danube` family，并注册 TinyLlama 的官方模型别名。\n\n## 使用方法\n\n```bash\nnpm install @cyberlangke/tokkit-tinyllama\n```\n\n```ts\nimport { getEncoding } from \"@cyberlangke/tokkit-tinyllama\"\n\nconst tokenizer = await getEncoding(\"TinyLlama/TinyLlama_v1.1\")\n\nconsole.log(tokenizer.encode(\"Hello, TinyLlama!\"))\n```\n","readmeFilename":"README.md","_rev":"1-50bd652bdad7cae15e610e391c6b1023"}