Repository navigation
Add comprehensive improvement plan and fix documentation drift - #2
Merged
Merged
Conversation
Full review of the autograd core, ops, layers, optimizers, storage, and GPU paths. Documents verified bugs (Storage cache use-after-free hazard, silent gradient drops in GPU backward fallbacks, unstable bce_with_logits_loss, xavier_uniform rank panic, load_state_dict device desync, Sequential prefix collision), design issues (silent-skip indexing idiom, GPU feature defaults vs docs, CI feature-matrix gaps), and a phased remediation sequence. Also corrects two stale claims in CLAUDE.md (transformer layers exist; gpu/accelerate are default features). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019R5yozqJu6wTXCNgMhNqKt
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
This PR adds a detailed, evidence-based improvement plan (
dev-docs/IMPROVEMENT_PLAN.md) documenting concrete bugs, design issues, and a prioritized roadmap for the Volta project. It also updatesCLAUDE.mdto correct documentation drift and clarify feature flag behavior.Key Changes
New Document:
dev-docs/IMPROVEMENT_PLAN.mdStorageGPU cache (invalidate_cpu_cachetakes&selfbut invalidates borrowed slices)bce_with_logits_losslacks numerical stability despite docstring claimsindexing_slicing = denyproduces silent-skip numerics instead of loud panicsUpdated:
CLAUDE.mddefault = ["gpu", "accelerate"]means plaincargo build/test/clippycompile WITH GPU (contradicting README's opt-in framing)MultiHeadAttention,TransformerBlock,PositionalEncodingARE implemented insrc/nn/transformer/Notable Details
src/storage.rs:246-257vs627-631for the use-after-free)notes/where they conflictRationale
The codebase has accumulated correctness issues, silent-failure patterns, and documentation drift that undermine its stated goal of educational clarity and verified correctness. This plan consolidates findings from full-source review into a single, actionable document to guide future work and prevent further drift.
https://claude.ai/code/session_019R5yozqJu6wTXCNgMhNqKt