Views
No views yet
| file | used by | notes |
|---|---|---|
weights.bin | WGSL engine | all tensors as flat little-endian f32 |
manifest.json | WGSL engine | {name: {offset, shape}} index into weights.bin + model config |
tokenizer.json, tokenizer_config.json, special_tokens_map.json | tokenizer | ByteLevel BPE, vocab 4096 |
generation_config.json | reference | bos/eos/pad ids |
model.onnx, model.onnx.data | reference / parity | cache-free full-sequence ONNX export (not used by the WGSL engine) |
weights.bin + manifest.json are produced from the source safetensors by
scripts/export_weights.py; the ONNX pair by scripts/export_onnx.py.1const BASE = "https://huggingface.co/anudit/gpt-s2-5m-wgsl/resolve/main";
2const manifest = await (await fetch(`${BASE}/manifest.json`)).json();
3const weights = await (await fetch(`${BASE}/weights.bin`)).arrayBuffer();
4// slice tensors out of `weights` by manifest offsets, upload to WebGPU, run WGSL.src/gpts3/*).