feat(brain): GF16/TF3 neuroanatomical modules for format selection#553
Merged
Conversation
…zig-hdc dep Closes #515 - build_minimal.zig: use b.createModule + root_module (Zig 0.16 API) - build.zig.zon: remove zig-hdc (invalid hash) and zodd deps - build.zig.zon: bump version 0.15.2 → 0.16.0 - src/hslm/cli.zig: fix escaped newline literal
- angular_gyrus.zig: format introspection, phi-distance table, golden% comparison, auto-select format per layer - fusiform_gyrus.zig: f32 <-> GF16/BF16 encoding/decoding - orbitofrontal_value.zig: adaptive format selection based on weight statistics (std, range) - weber_tuning.zig: Weber-Fechner logarithmic quantization, ternary encode with adaptive JND All with unit tests. Implements brain module mapping from #386. Refs #386
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the neuroanatomical brain modules from #386 for GF16/TF3 format management.
New Files (4)
src/brain/angular_gyrus.zig— Format introspection, phi-distance table (GF16=95.1% golden), auto-select per layersrc/brain/fusiform_gyrus.zig— f32 <-> GF16/BF16 encoding/decodingsrc/brain/orbitofrontal_value.zig— Adaptive format selection based on weight statisticssrc/brain/weber_tuning.zig— Weber-Fechner logarithmic quantization, ternary encode with adaptive JNDTests (14)
Existing implementations in repo
zig-pkg/golden_float-*/src/formats/golden_float16.zig(357 LOC) — GF16+TF3 structssrc/brain/intraparietal_sulcus.zig(615 LOC) — GF16/TF3 utilitieshardware/rtl-root/gf16_*.v— GF16 Verilog ALU (add, mul, MAC)fpga/openxc7-synth/gf16_*.v— Synthesis + testbenchesRefs #386