This report summarizes scanner evidence for Biohub/esm, a Jupyter Notebook project with 2,986 GitHub stars. SynthScan examined 131,766 lines of code across 221 source files, recording 1149 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 14.2 (Moderate 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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 663 finding(s).
Are imports declared and package/API names verified? 98 finding(s).
Are wrappers, guards, and repeated structures necessary? 884 finding(s).
Which changes need focused human review? 1149 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
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.
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.
The scanner identified 1149 distinct pattern matches across 19 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | esm/models/esmfold2/config.py | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | esm/models/esmfold2/config.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | esm/models/esmfold2/config.py | 345 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | esm/models/esmfold2/config.py | 347 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/experimental.py | 130 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/experimental.py | 132 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/experimental.py | 140 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/experimental.py | 142 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/experimental.py | 525 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/experimental.py | 527 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/experimental.py | 69 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/experimental.py | 71 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/experimental.py | 157 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | esm/models/esmfold2/experimental.py | 159 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | esm/models/esmfold2/experimental.py | 346 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/experimental.py | 348 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/constants.py | 6 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/constants.py | 8 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/constants.py | 15 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/constants.py | 17 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 55 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 57 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 164 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 166 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 201 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 203 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 302 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 304 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/layers.py | 409 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/layers.py | 411 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/layers.py | 1685 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/layers.py | 1687 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/layers.py | 2494 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/layers.py | 2496 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 149 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 151 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 175 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 177 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 230 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 232 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 339 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 341 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 362 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 364 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 385 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 387 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 453 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 455 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 536 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 538 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 556 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 558 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 652 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 654 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 780 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 782 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 942 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 944 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 1014 | # =========================================================================== | COMMENT |
| MEDIUM | esm/models/esmfold2/layers.py | 1016 | # =========================================================================== | COMMENT |
| 224 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/misc.py | 40 | def slice_python_object_as_numpy( | CODE |
| LOW | esm/utils/misc.py | 180 | def stack_variable_length_tensors( | CODE |
| LOW | esm/utils/misc.py | 409 | def get_chainbreak_boundaries_from_sequence(sequence: Sequence[str]) -> np.ndarray: | CODE |
| LOW | esm/utils/misc.py | 459 | def iterate_with_intermediate( | CODE |
| LOW | esm/utils/system.py | 10 | def run_subprocess_with_errorcheck( | CODE |
| LOW | esm/utils/encoding.py | 26 | def get_default_secondary_structure(sequence_length: int) -> str: | CODE |
| LOW | esm/utils/encoding.py | 100 | def tokenize_secondary_structure( | CODE |
| LOW | esm/utils/encoding.py | 138 | def tokenize_function_annotations( | CODE |
| LOW | esm/utils/encoding.py | 156 | def get_default_sequence_tokens( | CODE |
| LOW | esm/utils/encoding.py | 172 | def get_default_structure_tokens( | CODE |
| LOW | esm/utils/encoding.py | 185 | def get_default_secondary_structure_tokens( | CODE |
| LOW | esm/utils/encoding.py | 206 | def get_default_function_tokens( | CODE |
| LOW | esm/utils/encoding.py | 219 | def get_default_residue_annotation_tokens( | CODE |
| LOW | esm/utils/generation.py | 37 | def _trim_sequence_tensor_dataclass(o: Any, sequence_len: int): | CODE |
| LOW | esm/utils/generation.py | 240 | def _get_iterative_sampling_mask_for_prompt_and_step( | CODE |
| LOW | esm/utils/generation.py | 349 | def _get_annealed_temperature(step: int, num_steps: int, initial_temperature: float): | CODE |
| LOW | esm/utils/generation.py | 354 | def iterative_sampling_tokens( | CODE |
| LOW | esm/utils/decoding.py | 172 | def decode_secondary_structure( | CODE |
| LOW | esm/utils/decoding.py | 211 | def decode_function_annotations( | CODE |
| LOW | esm/utils/decoding.py | 228 | def decode_residue_annotations( | CODE |
| LOW | esm/utils/sequential_dataclass.py | 97 | def _check_sequence_lengths_match(self): | CODE |
| LOW | esm/utils/residue_constants.py | 429 | def load_stereo_chemical_props() -> Tuple[ | CODE |
| LOW | esm/utils/residue_constants.py | 1038 | def _make_rigid_group_constants(): | CODE |
| LOW | esm/utils/sampling.py | 109 | def get_default_sampling_config( | CODE |
| LOW | esm/utils/sampling.py | 241 | def sample_residue_annotation_logits( | CODE |
| LOW | esm/utils/msa/msa.py | 25 | def remove_insertions_from_sequence(seq: str) -> str: | CODE |
| LOW | esm/utils/constants/models.py | 20 | def forge_only_return_single_layer_hidden_states(model_name: str): | CODE |
| LOW | esm/utils/constants/models.py | 24 | def model_is_locally_supported(x: str): | CODE |
| LOW | esm/utils/function/encode_decode.py | 13 | def encode_function_annotations( | CODE |
| LOW | esm/utils/function/encode_decode.py | 136 | def decode_residue_annotation_tokens( | CODE |
| LOW | esm/utils/structure/mmcif_parsing.py | 384 | def _parse_nonpoly_from_mmcif(self) -> dict[tuple, bs.AtomArray]: | CODE |
| LOW | esm/utils/structure/input_builder.py | 133 | def serialize_structure_prediction_input(all_atom_input: StructurePredictionInput): | CODE |
| LOW | esm/utils/structure/input_builder.py | 207 | def deserialize_structure_prediction_input( | CODE |
| LOW | esm/utils/structure/protein_structure.py | 70 | def compute_alignment_tensors( | CODE |
| LOW | esm/utils/structure/protein_structure.py | 165 | def compute_rmsd_no_alignment( | CODE |
| LOW | esm/utils/structure/protein_structure.py | 263 | def compute_gdt_ts_no_alignment( | CODE |
| LOW | esm/utils/structure/protein_chain.py | 243 | def residue_index_no_insertions(self) -> np.ndarray: | CODE |
| LOW | esm/utils/structure/protein_chain.py | 775 | def chain_iterable_from_mmcif( | CODE |
| LOW | esm/utils/structure/protein_chain.py | 983 | def from_backbone_atom_coordinates( | CODE |
| LOW | esm/utils/structure/protein_chain.py | 1378 | def to_structure_encoder_inputs( | CODE |
| LOW | esm/utils/structure/protein_complex.py | 57 | def _parse_operation_expression(expression): | CODE |
| LOW | esm/utils/structure/protein_complex.py | 89 | def _apply_transformations_fast(chains, transformation_dict, operations): | CODE |
| LOW | esm/utils/structure/protein_complex.py | 380 | def normalize_chain_ids_for_pdb(self): | CODE |
| LOW | esm/utils/structure/protein_complex.py | 393 | def find_assembly_ids_with_chain(self, id: str) -> list[str]: | CODE |
| LOW | esm/utils/structure/protein_complex.py | 695 | def _sanity_check_complexes_are_comparable(self, other: ProteinComplex): | CODE |
| LOW | esm/utils/structure/protein_complex.py | 1245 | def protein_chain_to_protein_complex(chain: ProteinChain) -> ProteinComplex: | CODE |
| LOW | esm/utils/structure/normalize_coordinates.py | 34 | def get_protein_normalization_frame(coords: Tensor) -> Affine3D: | CODE |
| LOW | esm/utils/structure/predicted_aligned_error.py | 37 | def compute_predicted_aligned_error( | CODE |
| LOW | esm/models/hub.py | 115 | def _materialize_uninitialized(self, device: torch.device | str = "cpu") -> None: | CODE |
| LOW | esm/models/hub.py | 136 | def _normalize_checkpoint_layout( | CODE |
| LOW | esm/models/esmfold2/hf_adapter.py | 104 | def _sampler_config_overrides( | CODE |
| LOW⚡ | esm/models/esmfold2/experimental.py | 537 | def _normalize_checkpoint_layout( | CODE |
| LOW | esm/models/esmfold2/experimental.py | 736 | def _output_to_molecular_complex(output: dict, features: dict, chain_infos: list): | CODE |
| LOW | esm/models/esmfold2/experimental.py | 829 | def _compute_lm_hidden_states( | CODE |
| LOW | esm/models/esmfold2/conformers.py | 87 | def _get_ccd_mol_with_significant_h(comp_id: str): | CODE |
| LOW | esm/models/esmfold2/conformers.py | 176 | def get_ligand_idealized_atom_pos(res_name: str, atom_name: str) -> np.ndarray | None: | CODE |
| LOW | esm/models/esmfold2/conformers.py | 195 | def get_ligand_ccd_atoms_with_charges( | CODE |
| LOW | esm/models/esmfold2/model.py | 582 | def _normalize_checkpoint_layout( | CODE |
| LOW | esm/models/esmfold2/model.py | 850 | def _compute_lm_hidden_states( | CODE |
| LOW | esm/models/esmfold2/paired_msa.py | 24 | def protein_letter_to_res_type() -> dict[str, int]: | CODE |
| 407 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/types.py | 1 | CODE | |
| LOW | esm/utils/msa/msa.py | 1 | CODE | |
| LOW | esm/utils/msa/__init__.py | 1 | CODE | |
| LOW | esm/utils/msa/__init__.py | 1 | CODE | |
| LOW | esm/utils/msa/__init__.py | 1 | CODE | |
| LOW | esm/utils/structure/aligner.py | 1 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 1 | CODE | |
| LOW | esm/utils/structure/affine3d.py | 1 | CODE | |
| LOW | esm/utils/structure/protein_structure.py | 1 | CODE | |
| LOW | esm/utils/structure/protein_chain.py | 1 | CODE | |
| LOW | esm/utils/structure/protein_complex.py | 1 | CODE | |
| LOW | esm/models/esm3.py | 1 | CODE | |
| LOW | esm/models/esmfold2/config.py | 16 | CODE | |
| LOW | esm/models/esmfold2/experimental.py | 24 | CODE | |
| LOW | esm/models/esmfold2/conformers.py | 7 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 1 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 1 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 1 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 6 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 7 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 8 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 9 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 10 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 11 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 11 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 12 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 12 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 13 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 13 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 13 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 13 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 13 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 13 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 13 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 13 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 13 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 24 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 24 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 24 | CODE | |
| LOW | esm/models/esmfold2/types.py | 9 | CODE | |
| LOW | esm/models/esmfold2/types.py | 10 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/protein_utils.py | 17 | CODE | |
| LOW | esm/models/esmfold2/layers.py | 11 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 7 | CODE | |
| LOW | esm/models/esmfold2/kernels/fused_dual_gemm.py | 13 | CODE | |
| LOW | esm/models/esmfold2/kernels/trimul_with_residual.py | 37 | CODE | |
| LOW | esm/models/esmfold2/kernels/fused_dropout_residual.py | 26 | CODE | |
| LOW | esm/models/esmfold2/kernels/__init__.py | 11 | CODE | |
| LOW | esm/models/esmfold2/kernels/__init__.py | 12 | CODE | |
| LOW | esm/models/esmfold2/kernels/__init__.py | 13 | CODE | |
| LOW | esm/models/esmfold2/kernels/__init__.py | 14 | CODE | |
| LOW | esm/models/esmfold2/kernels/fused_lnlin_swiglu.py | 27 | CODE | |
| 35 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/generation.py | 37 | CODE | |
| LOW | esm/utils/generation.py | 66 | CODE | |
| LOW | esm/utils/generation.py | 130 | CODE | |
| LOW | esm/utils/sequential_dataclass.py | 97 | CODE | |
| LOW | esm/utils/residue_constants.py | 1114 | CODE | |
| LOW | esm/utils/sampling.py | 133 | CODE | |
| LOW | esm/utils/forge_context_manager.py | 88 | CODE | |
| LOW | esm/utils/constants/esm3.py | 105 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 101 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 146 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 202 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 384 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 449 | CODE | |
| LOW | esm/utils/structure/input_builder.py | 133 | CODE | |
| LOW | esm/utils/structure/input_builder.py | 207 | CODE | |
| LOW | esm/utils/structure/molecular_complex.py | 473 | CODE | |
| LOW | esm/utils/structure/molecular_complex.py | 745 | CODE | |
| LOW | esm/utils/structure/molecular_complex.py | 908 | CODE | |
| LOW | esm/utils/structure/molecular_complex.py | 1078 | CODE | |
| LOW | esm/utils/structure/molecular_complex.py | 1311 | CODE | |
| LOW | esm/utils/structure/protein_chain.py | 88 | CODE | |
| LOW | esm/utils/structure/protein_chain.py | 906 | CODE | |
| LOW | esm/utils/structure/protein_chain.py | 1056 | CODE | |
| LOW | esm/utils/structure/protein_complex.py | 815 | CODE | |
| LOW | esm/models/esmfold2/experimental.py | 850 | CODE | |
| LOW | esm/models/esmfold2/conformers.py | 268 | CODE | |
| LOW | esm/models/esmfold2/processor.py | 87 | CODE | |
| LOW | esm/models/esmfold2/model.py | 410 | CODE | |
| LOW | esm/models/esmfold2/model.py | 420 | CODE | |
| LOW | esm/models/esmfold2/paired_msa.py | 95 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 158 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 330 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 676 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 811 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 951 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 1120 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 1160 | CODE | |
| LOW | esm/models/esmfold2/output.py | 18 | CODE | |
| LOW | esm/models/esmfold2/output.py | 129 | CODE | |
| LOW | esm/models/esmfold2/distributed/utils.py | 173 | CODE | |
| LOW | esm/models/esmfold2/distributed/manager.py | 126 | CODE | |
| LOW | esm/models/esmfold2/distributed/manager.py | 569 | CODE | |
| LOW | esm/models/esmfold2/distributed/recycle.py | 153 | CODE | |
| LOW | esm/models/esmc/checkpoint_layout.py | 145 | CODE | |
| LOW | esm/models/esmc/model.py | 711 | CODE | |
| LOW | esm/tokenization/residue_tokenizer.py | 73 | CODE | |
| LOW | esm/sdk/forge.py | 142 | CODE | |
| LOW | esm/sdk/api.py | 56 | CODE | |
| LOW | esm/sdk/api.py | 165 | CODE | |
| LOW | esm/sdk/base_forge_client.py | 298 | CODE | |
| LOW | esm/sdk/base_forge_client.py | 338 | CODE | |
| LOW | esm/sdk/base_forge_client.py | 479 | CODE | |
| LOW | esm/sdk/base_forge_client.py | 531 | CODE | |
| LOW | esm/widgets/utils/prompting.py | 385 | CODE | |
| LOW | esm/widgets/components/results_visualizer.py | 21 | CODE | |
| LOW | esm/widgets/components/results_visualizer.py | 55 | CODE | |
| LOW | esm/widgets/components/sequence_prompt_selector.py | 13 | CODE | |
| LOW | esm/widgets/components/sequence_prompt_selector.py | 96 | CODE | |
| LOW | esm/widgets/components/structure_prompt_selector.py | 19 | CODE | |
| LOW | esm/widgets/components/structure_prompt_selector.py | 94 | CODE | |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/msa/__init__.py | 3 | __all__ = ["MSA", "FastMSA", "remove_insertions_from_sequence"] | CODE |
| LOW | esm/models/esmfold2/hf_adapter.py | 197 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/hf_adapter.py | 416 | __all__ = ["EsmFold2HFAdapter", "translate_features", "upstream_available"] | CODE |
| LOW | esm/models/esmfold2/config.py | 107 | def _set_path(tree: dict, path: str, value) -> None: | CODE |
| LOW | esm/models/esmfold2/config.py | 563 | __all__ = [ | CODE |
| LOW⚡ | esm/models/esmfold2/experimental.py | 134 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW⚡ | esm/models/esmfold2/experimental.py | 137 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/experimental.py | 387 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/experimental.py | 391 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/experimental.py | 472 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/experimental.py | 476 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/experimental.py | 623 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/experimental.py | 632 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/experimental.py | 1199 | __all__ = ["EsmFold2ExperimentalModel"] | CODE |
| LOW | esm/models/esmfold2/hf_checkpoint.py | 258 | __all__ = [ | CODE |
| LOW | esm/models/esmfold2/__init__.py | 30 | __all__ = [ | CODE |
| LOW | esm/models/esmfold2/processor.py | 449 | __all__ = ["ESMFold2InputBuilder", "clean_esmfold2_input"] | CODE |
| LOW | esm/models/esmfold2/types.py | 22 | __all__ = [ | CODE |
| LOW | esm/models/esmfold2/model.py | 90 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/model.py | 158 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/model.py | 161 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/model.py | 697 | def set_esmc_precision(self, precision: str = "bf16") -> None: | CODE |
| LOW | esm/models/esmfold2/model.py | 770 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/model.py | 841 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/model.py | 1453 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/model.py | 1457 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/model.py | 1512 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/model.py | 1516 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW⚡ | esm/models/esmfold2/layers.py | 1682 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW⚡ | esm/models/esmfold2/layers.py | 2478 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW⚡ | esm/models/esmfold2/layers.py | 2487 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW⚡ | esm/models/esmfold2/layers.py | 2623 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/layers.py | 1057 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/layers.py | 1307 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/layers.py | 1520 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/layers.py | 2381 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/layers.py | 2511 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/layers.py | 2514 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/layers.py | 2610 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/layers.py | 2691 | def set_kernel_backend(self, backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/layers.py | 2695 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/layers.py | 2756 | def set_chunk_size(self, chunk_size: int | None) -> None: | CODE |
| LOW | …m/models/esmfold2/kernels/fused_attention_pair_bias.py | 696 | __all__ = ["FusedPairBias", "fused_attention_pair_bias", "fused_pair_bias"] | CODE |
| LOW | esm/models/esmfold2/kernels/__init__.py | 18 | __all__ = [ | CODE |
| LOW | esm/models/esmfold2/distributed/msa_wrapper.py | 98 | def set_chunk_size(self, _chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/distributed/msa_wrapper.py | 101 | def set_kernel_backend(self, _backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/distributed/structure_wrapper.py | 85 | def set_kernel_backend(self, _backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/distributed/structure_wrapper.py | 88 | def set_chunk_size(self, _chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmfold2/distributed/__init__.py | 41 | __all__ = [ | CODE |
| LOW | esm/models/esmfold2/distributed/utils.py | 441 | def set_kernel_backend(self, _backend: str | None) -> None: | CODE |
| LOW | esm/models/esmfold2/distributed/utils.py | 444 | def set_chunk_size(self, _chunk_size: int | None) -> None: | CODE |
| LOW | esm/models/esmc/__init__.py | 23 | __all__ = [ | CODE |
| LOW | esm/models/esmc/model.py | 311 | def set_input_embeddings(self, value: nn.Embedding) -> None: | CODE |
| LOW | esm/models/esmc/model.py | 601 | def set_output_embeddings(self, new_embeddings: nn.Linear) -> None: | CODE |
| LOW | esm/models/esmc/kernels.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | esm/models/esmc/layers.py | 106 | def _update_cos_sin_cache(self, seqlen: int, device=None, dtype=None) -> None: | CODE |
| LOW | esm/sdk/experimental/__init__.py | 8 | __all__ = [ | CODE |
| LOW | esm/sdk/experimental/constrained_generation.py | 72 | def update_lambda(self, g: float, eta: float, gamma: float) -> None: | CODE |
| LOW | cookbook/tutorials/binder_design.py | 64 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/forge_context_manager.py | 137 | except Exception as e: | CODE |
| LOW | esm/utils/structure/mmcif_parsing.py | 98 | except Exception as e: | CODE |
| LOW | esm/utils/structure/mmcif_parsing.py | 142 | except Exception: | CODE |
| LOW | esm/utils/structure/mmcif_parsing.py | 191 | except Exception: | CODE |
| LOW | esm/utils/structure/mmcif_parsing.py | 495 | except Exception: | CODE |
| LOW | esm/utils/structure/molecular_complex.py | 488 | except Exception: | CODE |
| LOW | esm/utils/structure/molecular_complex.py | 552 | except Exception: | CODE |
| LOW | esm/utils/structure/molecular_complex.py | 1074 | except Exception: | CODE |
| LOW | esm/utils/structure/molecular_complex.py | 1146 | except Exception as e: | CODE |
| LOW | esm/models/esmfold2/conformers.py | 59 | except Exception as e: | CODE |
| LOW | esm/models/esmfold2/layers.py | 2437 | except Exception as e: | CODE |
| LOW | esm/models/esmfold2/distributed/manager.py | 582 | except Exception: | CODE |
| LOW | esm/sdk/forge.py | 964 | except Exception as e: | STRING |
| LOW | esm/sdk/retry.py | 34 | except Exception: | CODE |
| MEDIUM | esm/sdk/retry.py | 31 | def log_retry_attempt(retry_state): | CODE |
| LOW | esm/sdk/sagemaker.py | 46 | except Exception as e: | CODE |
| LOW | esm/sdk/sagemaker.py | 108 | except Exception as e: | CODE |
| LOW | esm/sdk/base_forge_client.py | 178 | except Exception as e: | CODE |
| LOW | esm/sdk/base_forge_client.py | 216 | except Exception as e: | CODE |
| LOW | esm/sdk/base_forge_client.py | 398 | except Exception as e: | CODE |
| LOW | esm/sdk/base_forge_client.py | 428 | except Exception as e: | CODE |
| LOW | esm/widgets/utils/protein_import.py | 110 | except Exception as e: | CODE |
| MEDIUM | esm/widgets/utils/protein_import.py | 112 | wrapped_print(f"Error: {e}") | CODE |
| LOW | esm/widgets/utils/protein_import.py | 148 | except Exception as e: | CODE |
| MEDIUM | esm/widgets/utils/protein_import.py | 150 | wrapped_print(f"Error: {e}") | CODE |
| MEDIUM | esm/widgets/utils/protein_import.py | 132 | def on_upload(self, _): | CODE |
| LOW | esm/widgets/components/structure_prompt_selector.py | 190 | except Exception as e: | CODE |
| LOW | esm/widgets/components/structure_prompt_selector.py | 331 | except Exception as e: | CODE |
| LOW | esm/widgets/components/function_annotator.py | 123 | except Exception as e: | CODE |
| MEDIUM | esm/widgets/components/function_annotator.py | 125 | print(f"Error: {e}") | CODE |
| LOW | esm/widgets/views/prediction.py | 149 | except Exception as e: | CODE |
| MEDIUM | esm/widgets/views/prediction.py | 80 | def on_click_predict(_): | CODE |
| LOW | esm/widgets/views/esm3_generation_launcher.py | 185 | except Exception: | CODE |
| LOW | esm/widgets/views/inverse_folding.py | 86 | except Exception as e: | CODE |
| MEDIUM | esm/widgets/views/inverse_folding.py | 54 | def on_click_inverse_fold(_): | CODE |
| LOW | .github/scripts/airtable_issue_sync.py | 404 | except Exception as err: # noqa: BLE001 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/layers/rotary.py | 1 | # Copyright 2022 EleutherAI and the HuggingFace Inc. team. All rights reserved. | COMMENT |
| LOW | esm/utils/residue_constants.py | 1 | # Copyright 2025 EvolutionaryScale | COMMENT |
| LOW | esm/utils/residue_constants.py | 861 | # 1-to-1 mapping of 3 letter names to one letter names. The latter contains | COMMENT |
| LOW | esm/models/esmfold2/config.py | 1 | # Copyright 2026 Biohub. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/experimental.py | 1 | # coding=utf-8 | COMMENT |
| LOW | esm/models/esmfold2/protein_utils.py | 1 | # coding=utf-8 | COMMENT |
| LOW | esm/models/esmfold2/distributed/msa_wrapper.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/distributed/structure_wrapper.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/distributed/comm.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/distributed/esmc_tp.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/distributed/__init__.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/distributed/utils.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/distributed/utils.py | 401 | ) | COMMENT |
| LOW | esm/models/esmfold2/distributed/distogram_wrapper.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/distributed/confidence_wrapper.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/distributed/manager.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/distributed/recycle.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/distributed/recycle.py | 241 | if isinstance(pair_mask, DTensor): | COMMENT |
| LOW | esm/models/esmfold2/distributed/model/__init__.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …mfold2/distributed/model/layers/attention_pair_bias.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …ls/esmfold2/distributed/model/layers/pair_averaging.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …s/esmfold2/distributed/model/layers/triangular_mult.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …/models/esmfold2/distributed/model/layers/layernorm.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | esm/models/esmfold2/distributed/model/layers/linear.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …m/models/esmfold2/distributed/model/layers/__init__.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …odels/esmfold2/distributed/model/layers/msa_encoder.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …ls/esmfold2/distributed/model/layers/single_to_pair.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …/models/esmfold2/distributed/model/layers/pair_init.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …models/esmfold2/distributed/model/layers/pairformer.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …old2/distributed/model/layers/row_attention_pooling.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …old2/distributed/model/layers/diffusion_transformer.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …smfold2/distributed/model/layers/outer_product_mean.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …/esmfold2/distributed/model/layers/confidence_zbase.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …ld2/distributed/model/layers/diffusion_conditioning.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …els/esmfold2/distributed/model/layers/atom_to_token.py | 1 | # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | tests/conftest.py | 41 | # --------------------------------------------------------------------------- | COMMENT |
| LOW | tests/conftest.py | 241 | reference[name] = { | COMMENT |
| LOW | tests/models/esmfold2_execution_test.py | 61 | COMMENT | |
| LOW | tests/models/esmfold2_execution_test.py | 501 | # would otherwise only show up as a diffuse shift in every radius. | COMMENT |
| LOW | tests/models/esmfold2_sampler_test.py | 181 | COMMENT | |
| LOW | tests/models/esmfold2_sampler_test.py | 481 | for a in apart | COMMENT |
| LOW | tests/models/esmfold2_test.py | 1221 | candidate = run() | COMMENT |
| LOW | tests/models/esmfold2_builds_test.py | 481 | # What a CUDA build can be held to against the CPU / fp32 result, and on which | COMMENT |
| LOW | tests/models/esmfold2_builds_test.py | 501 | # | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | esm/utils/structure/mmcif_parsing.py | 142 | except Exception: | CODE |
| HIGH | esm/utils/structure/mmcif_parsing.py | 120 | except ValueError: | CODE |
| HIGH | esm/utils/structure/mmcif_parsing.py | 131 | except ValueError: | CODE |
| HIGH | esm/utils/structure/molecular_complex.py | 552 | except Exception: | CODE |
| HIGH | esm/models/esmfold2/prepare_input.py | 609 | except (RuntimeError, ValueError): | CODE |
| HIGH | esm/models/esmfold2/distributed/manager.py | 582 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/layers/transformer_stack.py | 26 | CODE | |
| LOW | esm/layers/blocks.py | 73 | CODE | |
| LOW | esm/utils/structure/protein_complex.py | 949 | CODE | |
| LOW | esm/models/esm3.py | 267 | CODE | |
| LOW | esm/models/vqvae.py | 49 | CODE | |
| LOW | esm/models/esmfold2/hf_adapter.py | 210 | CODE | |
| LOW | esm/models/esmfold2/experimental.py | 850 | CODE | |
| LOW | esm/models/esmfold2/processor.py | 338 | CODE | |
| LOW | esm/models/esmfold2/model.py | 1008 | CODE | |
| LOW | esm/models/esmfold2/layers.py | 718 | CODE | |
| LOW | esm/models/esmfold2/layers.py | 797 | CODE | |
| LOW | esm/models/esmfold2/layers.py | 950 | CODE | |
| LOW | esm/models/esmfold2/layers.py | 1443 | CODE | |
| LOW | esm/models/esmfold2/layers.py | 1791 | CODE | |
| LOW | …m/models/esmfold2/kernels/fused_attention_pair_bias.py | 693 | CODE | |
| LOW | esm/models/esmfold2/distributed/manager.py | 126 | CODE | |
| LOW | esm/models/esmc/sae.py | 211 | CODE | |
| LOW | esm/models/esmc/model.py | 221 | CODE | |
| LOW | esm/models/esmc/model.py | 414 | CODE | |
| LOW | esm/models/esmc/model.py | 608 | CODE | |
| LOW | esm/models/esmc/model.py | 711 | CODE | |
| LOW | esm/models/esmc/model.py | 811 | CODE | |
| LOW | esm/sdk/forge.py | 1259 | CODE | |
| LOW | esm/sdk/forge.py | 1434 | CODE | |
| LOW | esm/sdk/sagemaker.py | 59 | CODE | |
| LOW | esm/sdk/sagemaker.py | 119 | CODE | |
| LOW | esm/sdk/base_forge_client.py | 228 | CODE | |
| LOW | esm/widgets/utils/drawing/draw_category_array.py | 13 | CODE | |
| LOW | cookbook/tutorials/binder_design.py | 1436 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | esm/models/esmfold2/layers.py | 1570 | # Step 2: normalize noisy coords | COMMENT |
| LOW⚡ | esm/models/esmfold2/layers.py | 1574 | # Step 3: atom encoder | COMMENT |
| LOW⚡ | esm/models/esmfold2/layers.py | 1590 | # Step 4: add conditioned s | COMMENT |
| LOW⚡ | esm/models/esmfold2/layers.py | 1593 | # Step 5: token transformer | COMMENT |
| LOW⚡ | esm/models/esmfold2/layers.py | 1603 | # Step 6: token norm | COMMENT |
| LOW⚡ | esm/models/esmfold2/layers.py | 1606 | # Step 7: atom decoder | COMMENT |
| LOW | esm/models/esmfold2/layers.py | 1558 | # Step 1: conditioning (pair z is cached across diffusion steps) | COMMENT |
| LOW | esm/models/esmfold2/layers.py | 1618 | # Step 8: compute denoised output | COMMENT |
| LOW | esm/models/esmfold2/distributed/structure_wrapper.py | 156 | # Step 1: conditioning -> full s, sharded (padded) z. Only materialise + | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 188 | # Step 2: normalise noisy coords (replicated) | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 192 | # Step 3: atom encoder (replicated, full) | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 208 | # Step 4: add conditioned s (replicated) | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 211 | # Step 5: token transformer (distributed). Pad token axis; row-shard a/s/ | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 225 | # Step 6: token norm (replicated) | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 228 | # Step 7: atom decoder (replicated, full) | COMMENT |
| LOW | esm/models/esmfold2/distributed/structure_wrapper.py | 240 | # Step 8: denoised output (replicated) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | esm/models/esmfold2/layers.py | 1570 | # Step 2: normalize noisy coords | COMMENT |
| LOW⚡ | esm/models/esmfold2/layers.py | 1574 | # Step 3: atom encoder | COMMENT |
| LOW⚡ | esm/models/esmfold2/layers.py | 1590 | # Step 4: add conditioned s | COMMENT |
| LOW⚡ | esm/models/esmfold2/layers.py | 1593 | # Step 5: token transformer | COMMENT |
| LOW⚡ | esm/models/esmfold2/layers.py | 1603 | # Step 6: token norm | COMMENT |
| LOW⚡ | esm/models/esmfold2/layers.py | 1606 | # Step 7: atom decoder | COMMENT |
| LOW | esm/models/esmfold2/layers.py | 1558 | # Step 1: conditioning (pair z is cached across diffusion steps) | COMMENT |
| LOW | esm/models/esmfold2/layers.py | 1618 | # Step 8: compute denoised output | COMMENT |
| LOW | esm/models/esmfold2/distributed/structure_wrapper.py | 156 | # Step 1: conditioning -> full s, sharded (padded) z. Only materialise + | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 188 | # Step 2: normalise noisy coords (replicated) | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 192 | # Step 3: atom encoder (replicated, full) | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 208 | # Step 4: add conditioned s (replicated) | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 211 | # Step 5: token transformer (distributed). Pad token axis; row-shard a/s/ | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 225 | # Step 6: token norm (replicated) | COMMENT |
| LOW⚡ | esm/models/esmfold2/distributed/structure_wrapper.py | 228 | # Step 7: atom decoder (replicated, full) | COMMENT |
| LOW | esm/models/esmfold2/distributed/structure_wrapper.py | 240 | # Step 8: denoised output (replicated) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | esm/utils/residue_constants.py | 490 | # Create a fast lookup dict for bond lengths. | COMMENT |
| MEDIUM | esm/utils/residue_constants.py | 866 | # Define a restype name for all unknown residues. | COMMENT |
| MEDIUM | esm/utils/structure/mmcif_parsing.py | 330 | # Create a basic mapping based on the chain_data | COMMENT |
| MEDIUM | esm/models/esm3.py | 391 | # The following methods are for the ESM3InferenceClient interface | COMMENT |
| MEDIUM | esm/widgets/components/function_annotator.py | 33 | # Create a text box input and a list of children to select from | COMMENT |
| MEDIUM | cookbook/snippets/sae_example.py | 19 | # Create a protein | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/compatibility/esmfold2_hf_adapter_test.py | 0 | flash-attn imports on a cpu box but needs a cuda runtime to run. | STRING |
| HIGH | tests/models/esmfold2_msa_test.py | 0 | flash-attn imports on a cpu box but needs a cuda runtime to run. | STRING |
| HIGH | tests/models/esmfold2_api_test.py | 0 | flash-attn imports on a cpu box but needs a cuda runtime to run. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | esm/utils/residue_constants.py | 794 | Maps the given sequence into a one-hot encoded matrix. Args: sequence: An amino acid sequence. mapping: | STRING |
| HIGH | esm/models/esm3.py | 283 | Performs forward pass through the ESM3 model. Check utils to see how to tokenize inputs from raw data. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/structure/mmcif_parsing.py | 286 | # Check if there are duplicate residue numbers in this chain | COMMENT |
| LOW | esm/utils/structure/molecular_complex.py | 298 | # Check if token is a standard 3-letter amino acid code | COMMENT |
| LOW | esm/utils/structure/molecular_complex.py | 459 | # Check if input is a file path or mmCIF string content | COMMENT |
| LOW | esm/utils/structure/molecular_complex.py | 1181 | # Check if both tokens have atoms | COMMENT |
| LOW | esm/utils/structure/molecular_complex.py | 1249 | # Check if both tokens have atoms | COMMENT |
| LOW | esm/models/esmfold2/prepare_input.py | 227 | # Check if standard residue (has predefined atom list) | COMMENT |
| LOW | esm/widgets/components/sequence_prompt_selector.py | 123 | a = 0.5 # Set alpha to 0.5 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | cookbook/snippets/esm3.py | 204 | "To try this script with a Forge/Biohub Platform API, please run ESM_API_KEY=your_api_key python esm3.py" | CODE |
| HIGH | cookbook/snippets/esmc.py | 147 | "ESM_API_KEY=your_api_key python esmc.py" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/misc.py | 281 | # For MPS, just return a no-op context manager (nullcontext) since MPS does not support autocast. | COMMENT |
| MEDIUM | esm/utils/structure/molecular_complex.py | 347 | # Normalize to uppercase and strip whitespace for robust matching | COMMENT |
| LOW | esm/models/esmfold2/kernels/fused_lnlin_swiglu.py | 377 | # If LN_B was None (no bias), ATen returns dLN_B=None and we just pass it through. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | cookbook/tutorials/binder_design.py | 1355 | .run_commands("apt update && apt install -y git build-essential") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 35 | The **[ESM Atlas](https://biohub.ai/esm/protein/atlas)** is a map of 6.8 billion proteins covering the full breadth of l | CODE |
| MEDIUM | cookbook/tutorials/README.md | 38 | | Generating proteins with ESM3 | `esm3_generate.ipynb`<br>[![Open In Colab](https://colab.research.google.com/assets/c | CODE |