AI Slop Code Risk Monitor

labmlai/annotated_deep_learning_paper_implementations

SlopCodeMonitor badge for labmlai/annotated_deep_learning_paper_implementations Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
1.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for labmlai/annotated_deep_learning_paper_implementations. SynthScan examined 584,195 lines of code across 2014 source files, recording 261 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 1.2 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.2
Adjusted Signal
1.2
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
584.2K
Lines of Code
2.0K
Files
261
Pattern Hits
2026-10-31
Scan Date
0.03
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 2.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 177 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

Are imports declared and package/API names verified? 18 finding(s).

Agent Over-Engineering Ratio 3.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 90 finding(s).

PR Review Velocity Impact 6.3/100 · LOW

Which changes need focused human review? 261 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 69MEDIUM 79LOW 113

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 261 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition64 hits · 320 pts
SeverityFileLineSnippetContext
HIGHlabml_nn/activations/fta/experiment.py0## configurations this inherits from [`nlpautoregressionconfigs`](../../experiments/nlp_autoregression.html#nlpautoregreSTRING
HIGHlabml_nn/normalization/deep_norm/experiment.py0## configurations this inherits from [`nlpautoregressionconfigs`](../../experiments/nlp_autoregression.html#nlpautoregreSTRING
HIGHlabml_nn/rwkv/experiment.py0## configurations this inherits from [`nlpautoregressionconfigs`](../../experiments/nlp_autoregression.html#nlpautoregreSTRING
HIGHlabml_nn/transformers/gpt/__init__.py0## configurations this inherits from [`nlpautoregressionconfigs`](../../experiments/nlp_autoregression.html#nlpautoregreSTRING
HIGH…bml_nn/transformers/basic/autoregressive_experiment.py0## configurations this inherits from [`nlpautoregressionconfigs`](../../experiments/nlp_autoregression.html#nlpautoregreSTRING
HIGHlabml_nn/transformers/aft/experiment.py0## configurations this inherits from [`nlpautoregressionconfigs`](../../experiments/nlp_autoregression.html#nlpautoregreSTRING
HIGHlabml_nn/hypernetworks/experiment.py0## configurations the default configs can and will be over-ridden when we start the experimentSTRING
HIGHlabml_nn/transformers/knn/train_model.py0## configurations the default configs can and will be over-ridden when we start the experimentSTRING
HIGHlabml_nn/transformers/fast_weights/experiment.py0## configurations the default configs can and will be over-ridden when we start the experimentSTRING
HIGHlabml_nn/transformers/feedback/experiment.py0## configurations the default configs can and will be over-ridden when we start the experimentSTRING
HIGHlabml_nn/transformers/glu_variants/experiment.py0## configurations the default configs can and will be over-ridden when we start the experimentSTRING
HIGHlabml_nn/transformers/xl/experiment.py0## configurations the default configs can and will be over-ridden when we start the experimentSTRING
HIGH…_nn/normalization/weight_standardization/experiment.py0### vgg style model for cifar-10 classification this derives from the [generic vgg style architecture](../experiments/ciSTRING
HIGHlabml_nn/normalization/instance_norm/experiment.py0### vgg style model for cifar-10 classification this derives from the [generic vgg style architecture](../experiments/ciSTRING
HIGHlabml_nn/normalization/group_norm/experiment.py0### vgg style model for cifar-10 classification this derives from the [generic vgg style architecture](../experiments/ciSTRING
HIGHlabml_nn/normalization/batch_norm/cifar10.py0### vgg style model for cifar-10 classification this derives from the [generic vgg style architecture](../experiments/ciSTRING
HIGHlabml_nn/distillation/small.py0### vgg style model for cifar-10 classification this derives from the [generic vgg style architecture](../experiments/ciSTRING
HIGHlabml_nn/distillation/large.py0### vgg style model for cifar-10 classification this derives from the [generic vgg style architecture](../experiments/ciSTRING
HIGHlabml_nn/normalization/instance_norm/__init__.py0`x` is a tensor of shape `[batch_size, channels, *]`. `*` denotes any number of (possibly 0) dimensions. for example, inSTRING
HIGHlabml_nn/normalization/batch_channel_norm/__init__.py0`x` is a tensor of shape `[batch_size, channels, *]`. `*` denotes any number of (possibly 0) dimensions. for example, inSTRING
HIGHlabml_nn/normalization/group_norm/__init__.py0`x` is a tensor of shape `[batch_size, channels, *]`. `*` denotes any number of (possibly 0) dimensions. for example, inSTRING
HIGHlabml_nn/normalization/batch_norm/__init__.py0`x` is a tensor of shape `[batch_size, channels, *]`. `*` denotes any number of (possibly 0) dimensions. for example, inSTRING
HIGHlabml_nn/experiments/nlp_autoregression.py0### sampling function to generate samples periodically while trainingSTRING
HIGHlabml_nn/transformers/glu_variants/simple.py0### sampling function to generate samples periodically while trainingSTRING
HIGHlabml_nn/transformers/mlm/experiment.py0### sampling function to generate samples periodically while trainingSTRING
HIGHlabml_nn/transformers/compressive/experiment.py0### sampling function to generate samples periodically while trainingSTRING
HIGHlabml_nn/transformers/xl/experiment.py0### sampling function to generate samples periodically while trainingSTRING
HIGHlabml_nn/experiments/nlp_autoregression.py0### basic english tokenizer we use character level tokenizer in this experiment. you can switch by setting, ``` 'tokenizSTRING
HIGHlabml_nn/experiments/nlp_classification.py0### basic english tokenizer we use character level tokenizer in this experiment. you can switch by setting, ``` 'tokenizSTRING
HIGHlabml_nn/utils/tokenizer.py0### basic english tokenizer we use character level tokenizer in this experiment. you can switch by setting, ``` 'tokenizSTRING
HIGHlabml_nn/resnet/experiment.py0## configurations we use [`cifar10configs`](../../experiments/cifar10.html) which defines all the dataset related configSTRING
HIGHlabml_nn/distillation/small.py0## configurations we use [`cifar10configs`](../../experiments/cifar10.html) which defines all the dataset related configSTRING
HIGHlabml_nn/distillation/large.py0## configurations we use [`cifar10configs`](../../experiments/cifar10.html) which defines all the dataset related configSTRING
HIGHlabml_nn/conv_mixer/experiment.py0## configurations we use [`cifar10configs`](../../experiments/cifar10.html) which defines all the dataset related configSTRING
HIGHlabml_nn/transformers/vit/experiment.py0## configurations we use [`cifar10configs`](../../experiments/cifar10.html) which defines all the dataset related configSTRING
HIGHlabml_nn/optimizers/adam_warmup.py0### initialize the optimizer * `params` is the list of parameters * `lr` is the learning rate $\alpha$ * `betas` is a tuSTRING
HIGHlabml_nn/optimizers/ada_belief.py0### initialize the optimizer * `params` is the list of parameters * `lr` is the learning rate $\alpha$ * `betas` is a tuSTRING
HIGHlabml_nn/optimizers/noam.py0### initialize the optimizer * `params` is the list of parameters * `lr` is the learning rate $\alpha$ * `betas` is a tuSTRING
HIGHlabml_nn/optimizers/radam.py0### initialize the optimizer * `params` is the list of parameters * `lr` is the learning rate $\alpha$ * `betas` is a tuSTRING
HIGHlabml_nn/optimizers/adam.py0### initialize the optimizer * `params` is the list of parameters * `lr` is the learning rate $\alpha$ * `betas` is a tuSTRING
HIGHlabml_nn/optimizers/amsgrad.py0### initialize the optimizer * `params` is the list of parameters * `lr` is the learning rate $\alpha$ * `betas` is a tuSTRING
HIGHlabml_nn/optimizers/adam_fp16.py0### take an update step for a given parameter tensor * `state` is the optimizer state of the parameter (tensor) * `groupSTRING
HIGHlabml_nn/optimizers/ada_belief.py0### take an update step for a given parameter tensor * `state` is the optimizer state of the parameter (tensor) * `groupSTRING
HIGHlabml_nn/optimizers/radam.py0### take an update step for a given parameter tensor * `state` is the optimizer state of the parameter (tensor) * `groupSTRING
HIGHlabml_nn/optimizers/adam.py0### take an update step for a given parameter tensor * `state` is the optimizer state of the parameter (tensor) * `groupSTRING
HIGHlabml_nn/optimizers/ada_belief.py0### initialize a parameter state * `state` is the optimizer state of the parameter (tensor) * `group` stores optimizer aSTRING
HIGHlabml_nn/optimizers/adam.py0### initialize a parameter state * `state` is the optimizer state of the parameter (tensor) * `group` stores optimizer aSTRING
HIGHlabml_nn/optimizers/sophia.py0### initialize a parameter state * `state` is the optimizer state of the parameter (tensor) * `group` stores optimizer aSTRING
HIGHlabml_nn/optimizers/amsgrad.py0### initialize a parameter state * `state` is the optimizer state of the parameter (tensor) * `group` stores optimizer aSTRING
HIGHlabml_nn/transformers/mha.py0`query`, `key` and `value` are the tensors that store collection of token embeddings for *query*, *key* and *value*. theSTRING
HIGHlabml_nn/transformers/alibi/__init__.py0`query`, `key` and `value` are the tensors that store collection of token embeddings for *query*, *key* and *value*. theSTRING
HIGHlabml_nn/transformers/rope/value_pe/__init__.py0`query`, `key` and `value` are the tensors that store collection of token embeddings for *query*, *key* and *value*. theSTRING
HIGHlabml_nn/transformers/aft/__init__.py0`query`, `key` and `value` are the tensors that store collection of token embeddings for *query*, *key* and *value*. theSTRING
HIGHlabml_nn/transformers/gpt/__init__.py0* `encoder` is the transformer [encoder](../models.html#encoder) * `src_embed` is the token [embedding module (with posiSTRING
HIGH…bml_nn/transformers/basic/autoregressive_experiment.py0* `encoder` is the transformer [encoder](../models.html#encoder) * `src_embed` is the token [embedding module (with posiSTRING
HIGHlabml_nn/transformers/mlm/experiment.py0* `encoder` is the transformer [encoder](../models.html#encoder) * `src_embed` is the token [embedding module (with posiSTRING
HIGHlabml_nn/transformers/aft/experiment.py0* `encoder` is the transformer [encoder](../models.html#encoder) * `src_embed` is the token [embedding module (with posiSTRING
HIGHlabml_nn/transformers/fnet/experiment.py0* `encoder` is the transformer [encoder](../models.html#encoder) * `src_embed` is the token [embedding module (with posiSTRING
HIGHlabml_nn/transformers/primer_ez/efficient.py0## multi-per-head-depth-wise-conv-head attention we extend our original implementation of [multi-head attention](../mha.STRING
HIGHlabml_nn/transformers/primer_ez/__init__.py0## multi-per-head-depth-wise-conv-head attention we extend our original implementation of [multi-head attention](../mha.STRING
4 more matches not shown…
Self-Referential Comments61 hits · 178 pts
SeverityFileLineSnippetContext
MEDIUMlabml_nn/gan/stylegan/__init__.py180 # Create the MLPCOMMENT
MEDIUMlabml_nn/gan/stylegan/experiment.py432 # Create an experimentCOMMENT
MEDIUMlabml_nn/gan/cycle_gan/__init__.py89 # This module is defined below.COMMENT
MEDIUMlabml_nn/gan/cycle_gan/__init__.py108 # Create a sequential module with the layersCOMMENT
MEDIUM⚡labml_nn/gan/cycle_gan/__init__.py390 # Create the modelsCOMMENT
MEDIUM⚡labml_nn/gan/cycle_gan/__init__.py396 # Create the optmizersCOMMENT
MEDIUM⚡labml_nn/gan/cycle_gan/__init__.py404 # Create the learning rate schedules.COMMENT
MEDIUMlabml_nn/gan/cycle_gan/__init__.py669 # Create an experimentCOMMENT
MEDIUMlabml_nn/activations/fta/experiment.py157 # Create the transformer.COMMENT
MEDIUMlabml_nn/neox/utils/llm_int8.py55 # Create an empty Linear8bitLt moduleCOMMENT
MEDIUMlabml_nn/neox/utils/cache.py43 # Create an empty queue if it's not presentCOMMENT
MEDIUMlabml_nn/neox/utils/text_dataset.py74 # Create a PyTorch tensorCOMMENT
MEDIUMlabml_nn/neox/samples/finetune.py70 # Create the Pipe moduleCOMMENT
MEDIUMlabml_nn/neox/evaluation/__init__.py142 # Create a tensorCOMMENT
MEDIUMlabml_nn/neox/evaluation/__init__.py258 # Create the adapterCOMMENT
MEDIUMlabml_nn/experiments/arithmetic_dataset.py169 # Create a dataset to generate problemsCOMMENT
MEDIUMlabml_nn/experiments/arithmetic_dataset.py176 # Create a tensor with only the initial tokenCOMMENT
MEDIUMlabml_nn/experiments/nlp_classification.py270 # Create a counterCOMMENT
MEDIUMlabml_nn/experiments/cifar10.py100 # Create a sequential model with the layersCOMMENT
MEDIUMlabml_nn/distillation/small.py52 # Create a model with given convolution sizes (channels)COMMENT
MEDIUMlabml_nn/distillation/large.py54 # Create a model with given convolution sizes (channels)COMMENT
MEDIUMlabml_nn/sampling/temperature.py40 # Create a categorical distribution with temperature adjusted logitsCOMMENT
MEDIUMlabml_nn/cfr/kuhn/__init__.py202 # Create a new information set objectCOMMENT
MEDIUMlabml_nn/cfr/kuhn/__init__.py231 # Create an experiment, we only write tracking information to `sqlite` to speed things up.COMMENT
MEDIUMlabml_nn/diffusion/stable_diffusion/util.py140 # Create the destination folderCOMMENT
MEDIUMlabml_nn/diffusion/ddpm/evaluate.py322 # Create an interpolation animationCOMMENT
MEDIUMlabml_nn/scaling/zero3/__init__.py130 # Create an empty tensor to receive the sizesCOMMENT
MEDIUMlabml_nn/scaling/zero3/__init__.py181 # Create an empty padding tensorCOMMENT
MEDIUMlabml_nn/scaling/zero3/__init__.py201 #### Create an empty tensor of the given shape.STRING
MEDIUMlabml_nn/scaling/zero3/__init__.py251 # Create an empty tensor to receive the parametersCOMMENT
MEDIUMlabml_nn/scaling/zero3/finetune_neox.py46 #### Create the model with Zero3 memory optimizerSTRING
MEDIUMlabml_nn/scaling/zero3/finetune_neox.py59 # Create a sequential modelCOMMENT
MEDIUMlabml_nn/scaling/zero3/finetune_neox.py82 # Create the experimentCOMMENT
MEDIUMlabml_nn/transformers/hour_glass/__init__.py226 # Create a mask if we haven't created or sizes have changedCOMMENT
MEDIUMlabml_nn/transformers/hour_glass/experiment.py107 # Create the auto-regressive wrapperCOMMENT
MEDIUMlabml_nn/transformers/gmlp/experiment.py42 ### Create a gMLP blockSTRING
MEDIUMlabml_nn/transformers/basic/with_sophia.py48 # Create a categorical distribution from logitsCOMMENT
MEDIUMlabml_nn/transformers/jax_transformer/__init__.py679 # Create a transformer layerSTRING
MEDIUMlabml_nn/transformers/jax_transformer/__init__.py953 # Create the modelSTRING
MEDIUMlabml_nn/transformers/feedback/__init__.py399 # Create a tensor for the stackSTRING
MEDIUMlabml_nn/transformers/feedback/__init__.py401 # Create a tensor to accumulate the gradientsSTRING
MEDIUMlabml_nn/transformers/vit/experiment.py55 # Create a vision transformerCOMMENT
MEDIUMlabml_nn/transformers/retro/model.py134 # Create a triangular maskCOMMENT
MEDIUMlabml_nn/transformers/retro/train.py159 # Create an experimentCOMMENT
MEDIUM⚡labml_nn/transformers/retro/train.py186 # Create the nearest neighbor encoderCOMMENT
MEDIUM⚡labml_nn/transformers/retro/train.py188 # Create the modelCOMMENT
MEDIUM⚡labml_nn/transformers/retro/train.py195 # Create the optimizerCOMMENT
MEDIUMlabml_nn/transformers/compressive/experiment.py60 # Create a subsequent mask for tokensCOMMENT
MEDIUMlabml_nn/transformers/compressive/experiment.py64 # Create an all ones (full visibility) mask for memoryCOMMENT
MEDIUMlabml_nn/transformers/xl/experiment.py44 # Create a subsequent mask for tokensCOMMENT
MEDIUMlabml_nn/transformers/xl/experiment.py48 # Create an all ones (full visibility) mask for memoryCOMMENT
MEDIUMlabml_nn/capsule_networks/mnist.py86 # Create a mask to maskout all the other capsulesCOMMENT
MEDIUMlabml_nn/graphs/gat/experiment.py291 # Create an experimentCOMMENT
MEDIUMlabml_nn/graphs/gatv2/experiment.py93 # Create an experimentCOMMENT
MEDIUMlabml_nn/sketch_rnn/__init__.py205 # Create a bidirectional LSTM taking a sequence ofCOMMENT
MEDIUMlabml_nn/sketch_rnn/__init__.py293 # Create a bi-variate Gaussian mixtureCOMMENT
MEDIUMlabml_nn/sketch_rnn/__init__.py404 # Create a PyTorch tensor of the sequence of strokesCOMMENT
MEDIUMlabml_nn/sketch_rnn/__init__.py427 # Create an empty stroke $(\Delta x, \Delta y, q_1, q_2, q_3)$COMMENT
MEDIUMlabml_nn/sketch_rnn/__init__.py440 # Create a new numpy array of the form $(x, y, q_2)$COMMENT
MEDIUMlabml_nn/rl/dqn/experiment.py255 # Create the experimentCOMMENT
1 more matches not shown…
Over-Commented Block38 hits · 38 pts
SeverityFileLineSnippetContext
LOWlabml_nn/gan/cycle_gan/__init__.py721 # so that it only loads those and their dependencies.COMMENT
LOWlabml_nn/hypernetworks/hyper_lstm.py101 📝 Since the computation of $z$ and $d$ are two sequential linear transformationsCOMMENT
LOWlabml_nn/neox/model.py141COMMENT
LOWlabml_nn/normalization/batch_channel_norm/__init__.py141 # Variance for each featureCOMMENT
LOWlabml_nn/cfr/__init__.py421 key: strCOMMENT
LOWlabml_nn/cfr/__init__.py641 # \pi^{\sigma^t}_{-i}(h + a) &= \pi^{\sigma^t}_{-i}(h)COMMENT
LOWlabml_nn/cfr/__init__.py661 # $$\sum_{t=1}^T \pi_i^{\sigma^t}(I)\textcolor{lightgreen}{\sigma^t(I)(a)}COMMENT
LOWlabml_nn/diffusion/ddpm/unet.py61 # Create sinusoidal position embeddingsCOMMENT
LOWlabml_nn/diffusion/ddpm/evaluate.py41 # $T$COMMENT
LOWlabml_nn/optimizers/amsgrad.py81 * `grad` is the current gradient tensor $g_t$ for the parameter $\theta_{t-1}$COMMENT
LOWlabml_nn/transformers/primer_ez/__init__.py121 #COMMENT
LOWlabml_nn/transformers/rope/__init__.py181COMMENT
LOWlabml_nn/transformers/rope/value_pe/__init__.py141COMMENT
LOWlabml_nn/transformers/basic/with_sophia.py61 # Update EMA Hessian diagonalCOMMENT
LOWlabml_nn/transformers/feedback/__init__.py401 # Create a tensor to accumulate the gradientsCOMMENT
LOWlabml_nn/transformers/flash/__init__.py761COMMENT
LOWlabml_nn/transformers/switch/experiment.py101 # Update global step (number of tokens processed) when in training modeCOMMENT
LOWlabml_nn/transformers/retro/model.py61 idx_theta2 = torch.cat([idx_theta, idx_theta], dim=1)COMMENT
LOWlabml_nn/transformers/aft/__init__.py161COMMENT
LOWlabml_nn/transformers/aft/__init__.py181COMMENT
LOWlabml_nn/transformers/fnet/__init__.py81 #COMMENT
LOWlabml_nn/recurrent_highway_networks/__init__.py81 for d in range(self.depth):COMMENT
LOWlabml_nn/graphs/gat/__init__.py101COMMENT
LOWlabml_nn/graphs/gat/__init__.py121 # \Big] \Big)$$COMMENT
LOWlabml_nn/graphs/gat/__init__.py141 # \overrightarrow{g_2} \Vert \overrightarrow{g_1},COMMENT
LOWlabml_nn/graphs/gat/__init__.py161 assert adj_mat.shape[1] == 1 or adj_mat.shape[1] == n_nodesCOMMENT
LOWlabml_nn/graphs/gat/__init__.py181 # $$\overrightarrow{h'^k_i} = \sum_{j \in \mathcal{N}_i} \alpha^k_{ij} \overrightarrow{g^k_j}$$COMMENT
LOWlabml_nn/graphs/gatv2/__init__.py141 #COMMENT
LOWlabml_nn/graphs/gatv2/__init__.py161 # Note: The paper desrcibes $e_{ij}$ as COMMENT
LOWlabml_nn/graphs/gatv2/__init__.py181 g_r_repeat_interleave = g_r.repeat_interleave(n_nodes, dim=0)COMMENT
LOWlabml_nn/graphs/gatv2/__init__.py201 e = e.squeeze(-1)COMMENT
LOWlabml_nn/sketch_rnn/__init__.py81 # since the mean is anyway close to $0$.COMMENT
LOWlabml_nn/sketch_rnn/__init__.py281 outputs, state = self.lstm(x, state)COMMENT
LOWlabml_nn/sketch_rnn/__init__.py321 # $(\Delta x, \Delta y, p_1, p_2, p_3)$.COMMENT
LOWlabml_nn/rl/dqn/__init__.py121 tracker.add('q_sampled_action', q_sampled_action)COMMENT
LOWlabml_nn/rl/dqn/__init__.py141 # Calculate the desired Q value.COMMENT
LOWlabml_nn/rl/ppo/__init__.py141 # *this is different from rewards* $r_t$.COMMENT
LOWlabml_nn/rl/ppo/experiment.py361 # You can change this while the experiment is running.COMMENT
AI Slop Vocabulary17 hits · 30 pts
SeverityFileLineSnippetContext
LOWdocs/transformers/alibi/index.html239<p>Since it&#x27;s causal mask we can just use <span ><span class="katex"><span aria-hidden="true" class="katex-html"><sCODE
LOWtranslate_cache/transformers/alibi/__init__.si.json19 "<p>Calculate distances <span translate=no>_^_0_^_</span> Here we calculate the distances using the mask.</p>\n<p>SinceCODE
LOWtranslate_cache/transformers/alibi/__init__.zh.json19 "<p>Calculate distances <span translate=no>_^_0_^_</span> Here we calculate the distances using the mask.</p>\n<p>SinceCODE
LOWtranslate_cache/transformers/alibi/__init__.ja.json19 "<p>Calculate distances <span translate=no>_^_0_^_</span> Here we calculate the distances using the mask.</p>\n<p>SinceCODE
MEDIUMtranslate_cache/transformers/primer_ez/readme.si.json2 "<h1><a href=\"https://nn.labml.ai/transformers/primer_ez/index.html\">Primer: Searching for Efficient Transformers forCODE
MEDIUMtranslate_cache/transformers/primer_ez/__init__.si.json2 "<h1>Primer: Searching for Efficient Transformers for Language Modeling</h1>\n<p>This is a <a href=\"https://pytorch.orCODE
MEDIUMtranslate_cache/transformers/primer_ez/readme.ja.json2 "<h1><a href=\"https://nn.labml.ai/transformers/primer_ez/index.html\">Primer: Searching for Efficient Transformers forCODE
MEDIUMtranslate_cache/transformers/primer_ez/__init__.zh.json2 "<h1>Primer: Searching for Efficient Transformers for Language Modeling</h1>\n<p>This is a <a href=\"https://pytorch.orCODE
MEDIUMtranslate_cache/transformers/primer_ez/__init__.ja.json2 "<h1>Primer: Searching for Efficient Transformers for Language Modeling</h1>\n<p>This is a <a href=\"https://pytorch.orCODE
MEDIUMtranslate_cache/transformers/primer_ez/readme.zh.json2 "<h1><a href=\"https://nn.labml.ai/transformers/primer_ez/index.html\">Primer: Searching for Efficient Transformers forCODE
LOWlabml_nn/neox/model.py280 # No cache - simply add RoPE embeddingsCOMMENT
MEDIUMlabml_nn/neox/evaluation/llm_int8.py48 # Run [evaluation harness](index.html)COMMENT
MEDIUMlabml_nn/neox/evaluation/half_precision.py42 # Run [evaluation harness](index.html)COMMENT
MEDIUMlabml_nn/neox/evaluation/__init__.py195 # Run [EleutherAI/lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) evaluatorCOMMENT
MEDIUMlabml_nn/neox/evaluation/__init__.py237 ## Run evaluation harness with a given modelSTRING
LOWlabml_nn/transformers/alibi/__init__.py100 # Since it's causal mask we can just use $[0, 1, \dots, N]$ too.COMMENT
LOWlabml_nn/transformers/compressive/__init__.py131 # If there is no memory just return the token embeddingsCOMMENT
Unused Imports18 hits · 18 pts
SeverityFileLineSnippetContext
LOWlabml_nn/activations/__init__.py14CODE
LOWlabml_nn/neox/utils/__init__.py25CODE
LOWlabml_nn/cfr/__init__.py330CODE
LOW…nn/diffusion/stable_diffusion/scripts/text_to_image.py12CODE
LOWlabml_nn/optimizers/adam_fp16.py16CODE
LOWlabml_nn/optimizers/adam.py44CODE
LOWlabml_nn/transformers/__init__.py112CODE
LOWlabml_nn/transformers/__init__.py113CODE
LOWlabml_nn/transformers/__init__.py113CODE
LOWlabml_nn/transformers/__init__.py113CODE
LOWlabml_nn/transformers/__init__.py113CODE
LOWlabml_nn/transformers/__init__.py113CODE
LOWlabml_nn/transformers/__init__.py114CODE
LOWlabml_nn/transformers/__init__.py115CODE
LOWlabml_nn/transformers/alibi/__init__.py37CODE
LOWlabml_nn/transformers/mlp_mixer/experiment.py16CODE
LOWlabml_nn/rl/dqn/__init__.py30CODE
LOWlabml_nn/rl/ppo/__init__.py29CODE
Redundant / Tautological Comments14 hits · 17 pts
SeverityFileLineSnippetContext
LOWlabml_nn/gan/stylegan/__init__.py634 # Check if the batch size is divisible by the group sizeCOMMENT
LOWlabml_nn/gan/cycle_gan/__init__.py545 # Loop through the datasetCOMMENT
LOWlabml_nn/neox/utils/trainer.py108 # Set gradients to zeroCOMMENT
LOWlabml_nn/diffusion/ddpm/experiment.py128 # Iterate through the datasetCOMMENT
LOWlabml_nn/unet/experiment.py109 # Iterate through the dataset.COMMENT
LOWlabml_nn/transformers/knn/build_index.py76 # Loop through dataCOMMENT
LOWlabml_nn/transformers/knn/build_index.py146 # Set model to evaluation modeCOMMENT
LOWlabml_nn/transformers/knn/eval_knn.py142 # Set model to evaluation modeCOMMENT
LOWlabml_nn/transformers/jax_transformer/__init__.py189 # Return the resultCOMMENT
LOWlabml_nn/transformers/jax_transformer/__init__.py876 # Read the fileSTRING
LOWlabml_nn/transformers/feedback/__init__.py296 # Append them to the list of layer outputsSTRING
LOWlabml_nn/transformers/feedback/__init__.py507 # Append them to the list of layer outputsSTRING
LOWlabml_nn/graphs/gat/experiment.py238 # Set mode to evaluation mode for validationCOMMENT
LOWlabml_nn/rl/dqn/replay_buffer.py123 ### Add sample to queueSTRING
Hyper-Verbose Identifiers14 hits · 17 pts
SeverityFileLineSnippetContext
LOWlabml_nn/neox/checkpoint.py28def get_checkpoints_download_path():CODE
LOWlabml_nn/neox/model.py647 def _create_transformer_layer(self):CODE
LOWlabml_nn/neox/utils/finetune.py20 def get_layer_trainable_params(self, layer: NeoXModule, prefix: str) -> Dict[str, nn.Parameter]:CODE
LOWlabml_nn/neox/utils/finetune.py44 def get_layer_trainable_params(self, layer: NeoXModule, prefix: str) -> Dict[str, nn.Parameter]:CODE
LOW⚡labml_nn/transformers/configs.py277def _src_embed_with_positional(c: TransformerConfigs):CODE
LOW⚡labml_nn/transformers/configs.py285def _tgt_embed_with_positional(c: TransformerConfigs):CODE
LOW⚡labml_nn/transformers/configs.py294def _src_embed_with_learned_positional(c: TransformerConfigs):CODE
LOW⚡labml_nn/transformers/configs.py302def _tgt_embed_with_learned_positional(c: TransformerConfigs):CODE
LOW⚡labml_nn/transformers/configs.py311def _src_embed_without_positional(c: TransformerConfigs):CODE
LOW⚡labml_nn/transformers/configs.py319def _tgt_embed_without_positional(c: TransformerConfigs):CODE
LOWlabml_nn/transformers/positional_encoding.py64def _test_positional_encoding():CODE
LOWlabml_nn/transformers/alibi/experiment.py67def shuffled_longer_valid_loader(c: Configs):CODE
LOWlabml_nn/transformers/retro/train.py48 def retrieve_nearest_neighbours(self, chunk: str):CODE
LOWlabml_nn/transformers/compressive/experiment.py299def attention_reconstruction_loss(c: Configs):CODE
Slop Phrases8 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMdocs/transformers/retro/bert_embeddings.html162, with partial words (partial sub-word tokens) on the ends. We strip them off to get better BERT embeddings. As mentioneCODE
MEDIUMtranslate_cache/transformers/alibi/__init__.si.json2 "<h1>Attention with Linear Biases (ALiBi)</h1>\n<p>This is an implementation of Attention with Linear Biases (ALiBi) frCODE
MEDIUMtranslate_cache/transformers/alibi/__init__.zh.json2 "<h1>Attention with Linear Biases (ALiBi)</h1>\n<p>This is an implementation of Attention with Linear Biases (ALiBi) frCODE
MEDIUMtranslate_cache/transformers/alibi/__init__.ja.json2 "<h1>Attention with Linear Biases (ALiBi)</h1>\n<p>This is an implementation of Attention with Linear Biases (ALiBi) frCODE
MEDIUM…slate_cache/transformers/retro/bert_embeddings.si.json7 "<p> In this implementation, we do not make chunks with a fixed number of tokens. One of the reasons is that this impleCODE
MEDIUM…slate_cache/transformers/retro/bert_embeddings.zh.json7 "<p> In this implementation, we do not make chunks with a fixed number of tokens. One of the reasons is that this impleCODE
MEDIUM…slate_cache/transformers/retro/bert_embeddings.ja.json7 "<p> In this implementation, we do not make chunks with a fixed number of tokens. One of the reasons is that this impleCODE
MEDIUMlabml_nn/transformers/retro/bert_embeddings.py58 As mentioned earlier this is not necessary if we broke chunks after tokenizing.STRING
AI Response Leakage3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…ache/gan/wasserstein/gradient_penalty/__init__.si.json2 "<h1>Gradient Penalty for Wasserstein GAN (WGAN-GP)</h1>\n<p>This is an implementation of <a href=\"https://arxiv.org/aCODE
HIGH…ache/gan/wasserstein/gradient_penalty/__init__.zh.json2 "<h1>Gradient Penalty for Wasserstein GAN (WGAN-GP)</h1>\n<p>This is an implementation of <a href=\"https://arxiv.org/aCODE
HIGH…ache/gan/wasserstein/gradient_penalty/__init__.ja.json2 "<h1>Gradient Penalty for Wasserstein GAN (WGAN-GP)</h1>\n<p>This is an implementation of <a href=\"https://arxiv.org/aCODE
Deep Nesting12 hits · 12 pts
SeverityFileLineSnippetContext
LOWutils/papers_list.py40CODE
LOWlabml_nn/gan/original/experiment.py123CODE
LOWlabml_nn/gan/stylegan/experiment.py306CODE
LOWlabml_nn/neox/utils/trainer.py101CODE
LOWlabml_nn/optimizers/adam_fp16.py101CODE
LOWlabml_nn/transformers/glu_variants/simple.py130CODE
LOWlabml_nn/transformers/glu_variants/simple.py235CODE
LOWlabml_nn/transformers/flash/__init__.py313CODE
LOWlabml_nn/transformers/mlm/experiment.py177CODE
LOWlabml_nn/rl/game.py150CODE
LOWlabml_nn/rl/dqn/experiment.py129CODE
LOWlabml_nn/rl/ppo/experiment.py157CODE
AI Structural Patterns10 hits · 10 pts
SeverityFileLineSnippetContext
LOWlabml_nn/neox/model.py317CODE
LOWlabml_nn/neox/model.py343CODE
LOWlabml_nn/neox/model.py506CODE
LOWlabml_nn/diffusion/ddpm/unet.py206CODE
LOWlabml_nn/optimizers/adam_warmup.py24CODE
LOWlabml_nn/optimizers/adam_warmup_cosine_decay.py27CODE
LOWlabml_nn/optimizers/ada_belief.py52CODE
LOWlabml_nn/optimizers/noam.py27CODE
LOWlabml_nn/optimizers/radam.py155CODE
LOWlabml_nn/transformers/jax_transformer/__init__.py190CODE
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHlabml_nn/helpers/trainer.py92except ValueError:CODE
HIGHlabml_nn/helpers/trainer.py109except ValueError:CODE