MCPcopy Create free account

hub / github.com/PrathamLearnsToCode/paper2code / types & classes

Types & classes21 in github.com/PrathamLearnsToCode/paper2code

↓ 4 callersClassResidualBlock
Residual block with time embedding conditioning. §3.3 — "group normalization throughout... Transformer sinusoidal position embedding into eac
skills/paper2code/worked/ddpm/src/model.py:90
↓ 3 callersClassAttentionBlock
Self-attention block for the U-Net. §3.3 — "self-attention... at the 16×16 feature map resolution" Appendix B — "We add one head of self-atte
skills/paper2code/worked/ddpm/src/model.py:149
↓ 3 callersClassMultiHeadAttention
§3.2.2 — Multi-Head Attention. "Multi-head attention allows the model to jointly attend to information from different representation subspac
skills/paper2code/worked/attention_is_all_you_need/src/model.py:110
↓ 2 callersClassFeedForward
§3.3 — Position-wise Feed-Forward Networks. "FFN(x) = max(0, xW_1 + b_1)W_2 + b_2" (Eq. 2) "The dimensionality of input and output is d_mode
skills/paper2code/worked/attention_is_all_you_need/src/model.py:183
↓ 2 callersClassUNet
§3.3, Appendix B — U-Net noise prediction network ε_θ(x_t, t). "We use a U-Net backbone similar to an unmasked PixelCNN++ with group normali
skills/paper2code/worked/ddpm/src/model.py:219
↓ 2 callersClassUNetConfig
U-Net configuration. Values from Appendix B (CIFAR-10 config) and official code unless marked.
skills/paper2code/worked/ddpm/src/model.py:36
↓ 1 callersClassDDPMLoss
§3.4, Eq. 14 — Simplified training objective L_simple. Computes MSE between true noise and predicted noise: L = ||ε − ε_θ(x_t, t)||²
skills/paper2code/worked/ddpm/src/loss.py:30
↓ 1 callersClassDecoder
§3.1 — Decoder: "The decoder is also composed of a stack of N = 6 identical layers."
skills/paper2code/worked/attention_is_all_you_need/src/model.py:406
↓ 1 callersClassDecoderLayer
§3.1 — Single decoder layer. "In addition to the two sub-layers in each encoder layer, the decoder inserts a third sub-layer, which performs
skills/paper2code/worked/attention_is_all_you_need/src/model.py:315
↓ 1 callersClassDownsample
Spatial downsampling by factor 2. [FROM_OFFICIAL_CODE]
skills/paper2code/worked/ddpm/src/model.py:192
↓ 1 callersClassEMA
§4 — Exponential Moving Average of model parameters. "We report sample quality metrics using an exponential moving average (EMA) of model pa
skills/paper2code/worked/ddpm/src/utils.py:203
↓ 1 callersClassEncoder
§3.1 — Encoder: "The encoder is composed of a stack of N = 6 identical layers."
skills/paper2code/worked/attention_is_all_you_need/src/model.py:382
↓ 1 callersClassEncoderLayer
§3.1 — Single encoder layer. "Each layer has two sub-layers. The first is a multi-head self-attention mechanism, and the second is a simple,
skills/paper2code/worked/attention_is_all_you_need/src/model.py:262
↓ 1 callersClassLabelSmoothedCrossEntropy
§5.4 — Label smoothing with KL divergence. "During training, we employed label smoothing of value ε_ls = 0.1. This hurt perplexity, as the m
skills/paper2code/worked/attention_is_all_you_need/src/loss.py:16
↓ 1 callersClassModelConfig
All model hyperparameters. Values from {{PAPER_TITLE}} unless marked [UNSPECIFIED]. Matches configs/base.yaml — change values there, not
skills/paper2code/scaffolds/model_template.py:37
↓ 1 callersClassPositionalEncoding
§3.5 — Positional Encoding (sinusoidal). "We use sine and cosine functions of different frequencies:" PE(pos, 2i) = sin(pos / 10000^(2i/d_m
skills/paper2code/worked/attention_is_all_you_need/src/model.py:218
↓ 1 callersClassSinusoidalTimeEmbedding
Sinusoidal timestep embedding, following the Transformer positional encoding. §3.3 — "The diffusion time t is specified by adding the Transformer
skills/paper2code/worked/ddpm/src/model.py:56
↓ 1 callersClassTransformer
§3 — The Transformer (Encoder-Decoder). "Most competitive neural sequence transduction models have an encoder-decoder structure. Here, the e
skills/paper2code/worked/attention_is_all_you_need/src/model.py:440
↓ 1 callersClassTransformerConfig
All model hyperparameters. Values from Vaswani et al. 2017, Table 3 ("base model") unless marked [UNSPECIFIED].
skills/paper2code/worked/attention_is_all_you_need/src/model.py:39
↓ 1 callersClassUpsample
Spatial upsampling by factor 2. [FROM_OFFICIAL_CODE]
skills/paper2code/worked/ddpm/src/model.py:203
ClassWMTTranslationDataset
§5.1 — WMT 2014 English-German translation dataset. "We trained on the standard WMT 2014 English-German dataset consisting of about 4.5 mill
skills/paper2code/worked/attention_is_all_you_need/src/data.py:26