Skip to content

feat(gf16): validation workflow — roundtrip + size check (5 seeds)#552

Merged
gHashTag merged 1 commit into
mainfrom
feat/531-gf16-validation-workflow
Apr 30, 2026
Merged

feat(gf16): validation workflow — roundtrip + size check (5 seeds)#552
gHashTag merged 1 commit into
mainfrom
feat/531-gf16-validation-workflow

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Summary

GF16 quantization validation workflow per #531 acceptance criteria.

What it does

  • Encodes 1.95M weights to GF16 and decodes back across 5 seeds
  • Checks max roundtrip error < threshold
  • Verifies model size < 16 MB
  • Reports compression ratio vs FP32

Files

  • tests/gf16_roundtrip.zig — Self-contained GF16 encode/decode + validation

Tests

  • gf16 roundtrip zero — zero stays zero
  • gf16 roundtrip positive — 6 positive values within 1% error
  • gf16 roundtrip negative — 4 negative values within 1% error
  • gf16 model size under 16MB — 3.9 MB < 16 MB limit

Usage

zig test tests/gf16_roundtrip.zig
zig run tests/gf16_roundtrip.zig

Closes #531

- Encode/decode GF16 for 1.95M weights across 5 seeds
- Max roundtrip error + average error per seed
- Model size check: GF16 < 16 MB
- 4 unit tests: zero, positive, negative, size limit
- Exit 1 on validation failure

Closes #531
@gHashTag gHashTag merged commit 3177670 into main Apr 30, 2026
9 of 18 checks passed
@gHashTag gHashTag deleted the feat/531-gf16-validation-workflow branch April 30, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🧪 GF16 Validation — encode/decode roundtrip + size check

1 participant