Skip to content

Claude/add algorithm guide#2

Merged
TimS-ml merged 2 commits intoproductionfrom
claude/add-algorithm-guide-NdG9q
Dec 23, 2025
Merged

Claude/add algorithm guide#2
TimS-ml merged 2 commits intoproductionfrom
claude/add-algorithm-guide-NdG9q

Conversation

@TimS-ml
Copy link
Owner

@TimS-ml TimS-ml commented Dec 23, 2025

No description provided.

- Created si_guide.md: Complete mapping of all 17 SI algorithms to code
- Annotated RFD3_diffusion_module.py: Algorithm 5 (diffusion forward pass)
  - Added bilingual comments to all methods
  - Documented EDM preconditioning, recycling, and coordinate updates
- Annotated encoders.py: Algorithms 3, 4, 12
  - TokenInitializer: Token and atom initialization with detailed steps
  - DiffusionTokenEncoder: Distogram embedding and recycling
  - Added comprehensive docstrings and inline comments in Chinese/English
- Annotated Algorithm 13: SinusoidalDistEmbed
  - Sinusoidal distance embedding for pairwise positions
  - Detailed step-by-step comments for frequency calculation and embedding
- Annotated Algorithm 14: PositionPairDistEmbedder
  - Inverse pairwise distance encoding with mask embedding
  - Support for both full 3D distance frame and simple inverse distance
- Annotated Algorithm 15: OneDFeatureEmbedder
  - Additive aggregation of multiple 1D feature embeddings
  - Used for both token-level and atom-level feature initialization
- Annotated Algorithm 9: Downcast
  - Pools atom-level features to token-level using cross-attention or mean pooling
  - Comprehensive documentation of grouping, pooling, and residual operations
- Annotated Algorithm 6: LocalTokenTransformer
  - SL2 sparse attention (sequence-local + structure-local) at token level
  - Detailed explanation of attention indices creation and transformer blocks

All annotations include bilingual Chinese/English comments with algorithm step references
@TimS-ml TimS-ml merged commit fc85d20 into production Dec 23, 2025
1 check failed
@TimS-ml TimS-ml deleted the claude/add-algorithm-guide-NdG9q branch December 23, 2025 07:19
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.

2 participants