Skip to content

Fix flaky quantization round-trip test - #24

Merged
ausimian merged 1 commit into
mainfrom
fix-flaky-quantization-roundtrip
Apr 16, 2026
Merged

Fix flaky quantization round-trip test#24
ausimian merged 1 commit into
mainfrom
fix-flaky-quantization-roundtrip

Conversation

@ausimian

Copy link
Copy Markdown
Owner

Summary

  • Pin Axon init to a fixed seed (42) so glorot_uniform produces deterministic weights — the 15% relative-error threshold was borderline for some random initialisations
  • Split Axon.build into separate init (Evaluator + seed) and predict (target compiler) calls to avoid :seed bleeding through to Emily.Compiler
  • Remove resolved known-issue note from PLAN.md

Test plan

  • mix precommit passes (all 361 tests, credo, format, compile)
  • Round-trip test verified deterministic across 5 different ExUnit seeds

Pin Axon init to a fixed seed so glorot_uniform produces deterministic
weights. The 15 % relative-error threshold sat right at the boundary
for some random initialisations. Split Axon.build into separate init
(Evaluator + seed) and predict (target compiler) calls so the :seed
option doesn't bleed through to Emily.Compiler.
@ausimian
ausimian merged commit 5984e57 into main Apr 16, 2026
1 check passed
@ausimian
ausimian deleted the fix-flaky-quantization-roundtrip branch April 16, 2026 07:22
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.

1 participant