-
-
Notifications
You must be signed in to change notification settings - Fork 16
fix: 140x optimizer speedup — lazy stats, in-place updates, skip redundant Train() #1124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
164 commits
Select commit
Hold shift + click to select a range
235f10a
fix: RBMLayer Forward uses FusedLinear for tape-tracked gradients (#1…
ooples beaa596
fix: rewrite HyperbolicLinearLayer Forward with batched tape-tracked …
ooples acdcca8
fix: HopeNetwork deterministic Predict + modern Hopfield recall (#1086)
ooples cec3733
perf: eliminate all tensor allocations in HyperbolicLinearLayer Forward
ooples e463bf1
fix: address 11 PR review comments — perf, correctness, configurability
ooples 8bcfbce
fix: address 8 review comments — cache invalidation, validation, stat…
ooples f67868c
Merge branch 'master' into fix/nn-test-failures-1086
ooples 3920d95
fix: remove dead blend/buffer-scan code from AssociativeMemory.Retrieve
ooples cd77623
Merge branch 'fix/nn-test-failures-1086' of https://github.com/ooples…
ooples f8e03bb
Merge branch 'master' into fix/nn-test-failures-1086
ooples e75fc9b
fix: address 5 review comments — cache, validation, dead code, API co…
ooples 8efc422
Merge branch 'fix/nn-test-failures-1086' of https://github.com/ooples…
ooples 17f4e74
Merge branch 'master' into fix/nn-test-failures-1086
ooples d4c16b5
fix: address 5 review comments + add website vercel ignoreCommand
ooples ab5cb94
Merge branch 'fix/nn-test-failures-1086' of https://github.com/ooples…
ooples addf8e7
fix: restore GetAssociationMatrix as computed view, fix test build er…
ooples 275c9f6
refactor: add NestedLearningBase<T> with Engine/NumOps, fix bias shape
ooples e9b8816
Merge branch 'master' into fix/nn-test-failures-1086
ooples fb63de7
fix: address 9 review comments — validation, tests, base class, dupli…
ooples 06d30e3
Merge branch 'fix/nn-test-failures-1086' of https://github.com/ooples…
ooples 5f9db05
fix: address 8 review comments — engine acceleration, validation, docs
ooples dbe8219
fix: address 10 review comments — math correctness, determinism, perf
ooples 30c0824
fix: resolve 30 CI test failures across 6 categories
franklinic 0e36cb0
fix: resolve test failures across 4 categories in PR #1088
franklinic 5e18411
fix: wrap Serving model load operations in InternalOperation scope
franklinic a2e9ed2
fix: MoE CombineExpertOutputs use TensorGather instead of TensorSlice…
franklinic fbc3015
chore: remove temporary test failure report
franklinic 32f6f8f
fix: resolve 6 PR review comments on #1088
franklinic 5abfe13
fix: add SetTrainingMode toggle to Physics/ScientificML Train overrides
franklinic c39b8a4
fix: address 7 new review comments on PR #1088
franklinic 45bc996
fix: make GetOrCreateBaseOptimizer protected for subclass access
ooples e0eeb12
fix: address 15 review comments — Poincaré projection, test coverage,…
ooples 8261519
fix: named constants, fail-fast gradient validation, clean tensor cre…
ooples 49f8fe5
fix: address 8 review comments — c==0 guard, pre-mutation validation,…
ooples 84bad91
fix: reset contextFlow in Predict, efficient constant tensor creation
ooples 179d863
Merge branch 'master' into fix/nn-test-failures-1086
ooples 20262cb
fix: use configured optimizer, preserve metaState, cache MoE index te…
ooples fe10363
Merge branch 'fix/nn-test-failures-1086' of https://github.com/ooples…
ooples b4accb7
fix: project Euclidean input into Poincaré ball before Möbius matmul
ooples a347917
fix: MoE use GetSliceAlongDimension instead of TensorGather axis=1
ooples d646596
fix: FNO pass configured optimizer, SparseLinearLayer skip tape regis…
ooples 88b988a
fix: DGP variance estimation, HDBSCAN tree walk, MoE gather workaround
ooples 4d9677b
fix: HDBSCAN stability computation, clustering test configurations
ooples 72f4425
fix: add blame-hang-timeout for slow test detection + reporter upgrade
ooples d4c20b7
test: add per-test xunit timeouts to all 1156 test files
ooples 29d7a8c
fix: resolve 3 FederatedCoordinator test failures
ooples 89e629f
fix: address 6 PR review comments — docs, training flags, perf
ooples 771c64b
revert: remove per-test xunit timeouts — incompatible with sync tests
ooples cca2db3
test: add per-test xunit timeouts with async task conversion
ooples 0da3b1b
ci: fix build timeout — exclude obj/ from artifacts, bump to 40min
ooples 4b64704
fix: call base.Dispose in VoyageAI test mock override
ooples d7767b8
fix: resolve 27 CI test failures across 9 categories
franklinic c005906
chore: remove temp failure report
franklinic b856b4a
fix: MoE gradient flow — use TensorMatMul for tape-tracked column ext…
franklinic ea44465
merge: resolve conflicts with master (ResearchPaper rename)
franklinic 1144d16
fix: resolve 6 new PR review comments
franklinic d126974
fix: resolve round 3 regressions — Serving JSON + TFT shape mismatch
franklinic 2278949
fix: resolve round 3 remaining — VideoCLIP, DeepGP, HDBSCAN, MappedRF…
franklinic 07b6f14
fix: VideoCLIP tape-tracked forward + NBEATS TrainWithTape migration
franklinic 6847ac9
perf: replace scalar loops with Engine ops in shared layers + networks
franklinic a153270
perf: Engine acceleration for BGE, SoundStorm, MATCHA + shared layers
franklinic b30649a
fix: paper-aligned fixes for NBEATS, VideoCLIP, DiT/Oasis
franklinic 1e60615
fix: SimCSE outputs [CLS] embeddings per Gao et al. 2021, not vocab l…
franklinic 51f6517
fix: TFT full paper rewrite per Lim et al. 2021
franklinic 1e27864
fix: ControlNet encoder uses ConvolutionalLayer per Zhang et al. 2023
franklinic ec25a83
fix: Hopfield metadata, Hyperbolic NN gradients, Tanh test tolerance
franklinic 26e9139
fix: ViLBERT numHeads 12→16 per Lu et al. 2019
franklinic 3bb1bd6
fix: paper-aligned fixes for HDBSCAN, WaveRNN, MoE, VGG Clone
franklinic d2f189c
fix: NBEATS use MAE loss per Oreshkin et al. 2020
franklinic 541e262
fix: add TFT constructor validation per paper constraints
franklinic ab2ab72
fix: replace remaining TensorSliceAxis calls in VideoCLIP
franklinic 0fb39ed
revert: undo HDBSCAN changes that caused 3 new test failures
franklinic d2ca0f9
fix: remove duplicate SetTrainableParameters conflicting with generator
franklinic 9ce3d4c
fix: use Engine.Reshape for tape-tracked gradient flow
franklinic 9dc48b7
fix: tape-tracked Engine.Reshape in NBEATS training loop
franklinic f0d2e7d
fix: NBEATS uses observed data for in-sample prediction per paper
franklinic ef1ce26
fix: VideoCLIP tape-tracked Engine.Reshape for gradient flow
franklinic 951d3b4
fix: Engine.Reshape in DenseLayer, BatchNorm, TransformerEncoder, GRU
franklinic f442ed1
fix: Engine.Reshape in LSTMLayer for tape-tracked gradient flow
franklinic 40f0ad0
fix: Engine.Reshape in MultiHeadAttentionLayer for gradient flow
franklinic 86355d4
fix: Engine.Reshape in AttentionLayer and CrossAttentionLayer
franklinic 9a76327
fix: restore correct numHeads defaults per each model's paper
franklinic 105ef02
fix: TFT tape-based training + Tensors 0.31.0 + Engine.Reshape throug…
franklinic 7360d63
fix: TFT optimizer uses Tensor<T> generic params for tape compatibility
franklinic 0acb488
fix: Engine.Reshape in ConvolutionalLayer for gradient tape flow
franklinic a970e37
fix: Tensors 0.31.1 + ConvLayer Engine.Reshape + Adam gradient reshape
franklinic b319593
fix: HDBSCAN AllowSingleCluster in EOM + default true per paper
franklinic 81f8183
fix: NBEATS CollectParameters uses version -1 to avoid stale cache
franklinic 07008cc
revert: undo HDBSCAN AllowSingleCluster changes (caused regressions)
franklinic a61e2c1
fix: HDBSCAN stability per scikit-learn + AllowSingleCluster support
franklinic d1534d9
fix: N-BEATS generic blocks use learned basis per Oreshkin et al. 2020
ooples 7906e23
perf: replace SPSA with tape-based training for diffusion models
ooples d50733e
perf: enable xunit parallel test collections
ooples 20b1d66
fix: make [Fact(Timeout)] actually fire on fake-async tests
ooples 31bce28
perf: tighten coverlet instrumentation to cut per-shard finalization
ooples b4a1686
fix: moe combineexpertoutputs uses tensorgather axis=1 directly
ooples d412e37
perf: wire up tensorarena at diffusion + nn training entry points
ooples 1a6a010
perf: scope each modelfamily test in a tensorarena
ooples b30c59d
Revert "perf: wire up tensorarena at diffusion + nn training entry po…
ooples b37b912
fix: diffusion tape training actually runs (3 real perf bugs)
ooples 46738ab
fix: diffusion tape training — 6 tape-break sites in forward path
ooples c456633
fix: more tape-break sites across core layer forward paths
ooples 8c5dbb6
fix: more activations override activate(tensor<t>) via engine ops
ooples f464152
fix: decompose 13 exotic activations into tape-tracked engine primitives
ooples 2a3e897
perf: tape-direct diffusion train, flashattention tensor<t> migration
ooples f682acc
fix: 5 more critical layers tape-tracked via engine ops
ooples 5548960
fix: tape-track more layer forwards — convlstm, capsule, graph, etc.
ooples aa2a187
fix: tape-track forward in 40 ssm layers (mamba, rwkv, hyena, etc.)
ooples 4a1c0e0
fix: tape-track forward in 45 more neuralnetworks layers
ooples 1037f3e
perf: zero-alloc shape access + tape-track neuralnetworkbase train
ooples d450e07
perf: zero-alloc shape in DETR/DINO/RTDETR forward methods
ooples 192295a
fix: tape-track chained engine.op().reshape() calls in layer forwards
ooples df0c86b
perf: replace Shape.ToArray() with zero-alloc _shape field access
ooples 50bf8e4
fix: route remaining forward-path reshapes through Engine for tape tr…
ooples d9903c4
fix: more forward-path tape breaks (bias reshapes, concat, conv slice)
ooples 75ac8ed
perf: hoist bias add in Mamba/GatedDeltaNet conv1d forward loops
ooples 1cbf97c
fix: tape-track 5 more activations via engine primitives
ooples ba79f7b
fix: tape-track 6 hard activations via engine primitives
ooples 28ebd69
refactor: delete orphaned manual-backward helpers (ConvLSTM, LSTM, STN)
ooples ae9efe6
refactor: delete orphaned manual-backward helpers across 12 layers
ooples 01cb8d2
fix: use native engine.tensorsquash instead of hand-decomposed formula
ooples 887979e
feat: add prelulayer with learnable per-channel alpha
ooples 5a9a96b
refactor: delete dead spsa fallback from flashattentionlayer
ooples 22da9cd
feat: fno 2d spectral conv uses engine.fft2d on the gradient tape
ooples 6ff6dbe
feat: fno n-d spectral conv uses separable engine.fft on the tape
ooples c40a981
feat: fno training runs on gradient tape via tapetrainstep
ooples f893737
refactor: delete orphaned fno fourierlayer backward + fft helpers
ooples 4f77a5f
refactor: delete fno legacy complex-tensor scaffolding
ooples 932fc6a
refactor: fno pointwise mixing runs on the gradient tape
ooples 3e04f05
fix: use net471-compatible reference comparer in diffusion collectparams
ooples 7954817
perf: zero-alloc engine acceleration for EBM, AdaBoost, NGBoost, Easy…
ooples c4c0858
fix: remove broken LSTM Train override that skipped backward pass
ooples 94c16d1
fix: gracefully handle parameter size changes from lazy layer initial…
ooples 7a8b73d
fix: use net471-compatible reference comparer in diffusion collectparams
ooples 6ce81be
fix: HDBSCAN EOM cluster selection matched to Campello et al. 2013
ooples 28e944d
perf: DeepANT FC forward uses Engine.DotProduct instead of scalar loop
ooples 317733e
ci: trigger CI after force-push
ooples 16cf443
perf: keep parameter buffer across training iterations instead of reb…
ooples edfa009
perf: zero-alloc TensorAllocator for DenseLayer and EmbeddingLayer we…
ooples 1b86c42
perf: TensorArena in TrainWithTape + bulk TensorCopy + unskip trainin…
ooples 2105acb
fix: DenseNet outputs raw logits per Huang et al. 2017 + Clone preser…
ooples a5a59a9
fix: AVEL layer factory produces correct layer types matching Initial…
ooples bdf7ae4
chore: update AiDotNet.Tensors to 0.35.2
ooples 896fa12
merge: resolve conflicts with master — keep Engine ops, take new back…
ooples 9d6bb5d
fix: RBFLayer register widths with Biases role to avoid role-based dedup
ooples 2c92465
fix: skip redundant model.Train() + lazy stats + in-place updates (Is…
ooples f21269b
fix: clone tensor shape arrays before mutation to prevent source corr…
ooples e650893
fix: address 12 PR review comments — mask validation, activation bugs…
ooples 01f0248
fix: in-place SetParameters for 4 layers + GRU validation + mask dispose
ooples 995645f
fix: hdbscan — iterative descendant walk, leaf fallback, root cluster…
ooples a0a4009
fix: t5 conditioner allocs + controlnet stride formula
ooples c02421b
fix: hyperbolic layer alloc cache, lstm bias hoist, hope predict/train
ooples 539e029
fix: autodiff numerical gradient uses output shape + controlnet xml docs
ooples f2909b0
fix: net471 build errors — tensor shape types, interface default impl
ooples cc4fb4f
fix: mixture of experts uses non-deterministic noise in gating
ooples cc4b7f2
fix: narrow coverlet exclusion pattern for serving interfaces
ooples 2b3f6cc
fix: 6 more review comments — rbf role, slow-test script, builder, la…
ooples 356c8ac
fix: reservoir layer engine ops for tape tracking + dense/flux alloc fix
ooples 4b56523
fix: rbflayer in-place setparameters + rrelu tape-tracked training path
ooples 2b848e9
fix: add CrossEntropyWithLogitsLoss + DenseNet logits fix + builder c…
ooples 57791f2
feat: add ParallelStreamsLayer for dual-stream architectures
ooples 784309a
fix: PR #1124 review comments — T5 encoder rewrite, BCE-with-logits, …
franklinic 27cd710
Merge origin/master into fix/issue-1123-optimizer-perf
franklinic f7955d0
fix: PR #1124 round-2 review comments — 32 issues across optimizer, s…
franklinic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.