https://github.com/exodusoss/qwen3-model-js
JS library that downloads Qwen3 somewhat securely.
https://github.com/exodusoss/qwen3-model-js
Last synced: 5 days ago
JSON representation
JS library that downloads Qwen3 somewhat securely.
- Host: GitHub
- URL: https://github.com/exodusoss/qwen3-model-js
- Owner: ExodusOSS
- Created: 2026-05-27T17:51:54.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2026-05-28T18:13:13.000Z (about 1 month ago)
- Last Synced: 2026-05-28T19:27:55.237Z (about 1 month ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @exodus/qwen3-model-js
Pinned Qwen3 1.7B Q8_0 GGUF: artifact metadata, SHA256 verification, and streaming downloader.
## Example
```js
import { ensurePinnedModel, getPinnedModel } from '@exodus/qwen3-model-js'
const { filename } = getPinnedModel()
await ensurePinnedModel(`./models/${filename}`, {
onProgress: ({ fraction }) => console.log(`${(fraction * 100).toFixed(1)}%`),
})
```
## Exports
- `getPinnedModel()` — returns the frozen artifact record (`repo`, `filename`, `sha256`, `sizeBytes`, `downloadUrl`, `license`).
- `verifyPinnedModelFile(path)` — streams the file and throws on size or SHA256 mismatch.
- `ensurePinnedModel(path, opts?)` — verifies if present, otherwise downloads to a temp file, verifies, and atomically renames into place. Returns `{ downloaded }`. Opts: `onProgress`, `signal`, `timeoutMs` (default 30 min, `0` disables).
- `ModelMissingError` — thrown when the file isn't on disk.
- `ModelHashMismatchError` — thrown on size or SHA256 mismatch; carries `path`, `expected`, `actual`.