Uh oh!
There was an error while loading. Please reload this page.
docs(design): host-access sync contract, reset-epoch frees, pinning, dst-form accumulation policy - #139
Merged
Merged
Conversation
…dst-form accumulation policy design.md documents the contracts shipped for the GPU training hardening plan in general terms: - Host-Access Synchronization: host reads/writes of device memory are stream-ordered via per-device registered sync hooks (tensor.RegisterHostAccessSync); the GPU engine registers a capture-guarded stream.Synchronize() (#137). - Arena Reset: pinning (ADR 006 reset floor / MarkStepBoundary) and reset epochs -- FreeAtEpoch drops cross-epoch frees, making GC-finalizer-driven frees safe across Reset (#138). - Engine dst-form accumulation policy: results write into dst's existing storage, never re-homed to the arena. - Graph features: Engine() accessor and the save-for-backward lifetime contract (ADR 006). devlog: end-to-end GB10 validation entry for #137/#138 (two clean runs, zero NaN, accuracy within 0.05pp of the CPU baseline).
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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
Documentation close-out for the gpu-training-hardening plan (zerfoo plan T5.3).
docs/design.mdgains the contracts shipped across #129-#138, stated in general terms:tensor.RegisterHostAccessSync); the GPU engine registers a capture-guardedstream.Synchronize()and unregisters on Close (fix: stream-order GPUStorage host access (Bug 11, Wolf batch-3 gradient NaN) #137).MarkStepBoundary) and reset epochs — pool-backed storage captures its epoch at allocation (gpuapi.EpochMemPool), frees route throughFreeAtEpochwhich atomically drops cross-epoch frees, so GC-finalizer-driven frees are safe acrossResetby construction (fix: arena frees are reset-epoch guarded -- stale GC-finalizer frees dropped (Bug 11 residual) #138).dstkeeps its storage identity — ops never re-home it onto a pool allocation — making dst-form accumulation safe for persistent tensors.Engine()accessor and the save-for-backward lifetime contract (ADR 006).docs/devlog.mdgains the dated entry for the end-to-end GB10 validation of #137/#138 (two consecutive clean f32 training runs, zero NaN, accuracy within 0.05pp of the CPU baseline).Docs-only change.