Repository Analysis

tinygrad/tinygrad

You like pytorch? You like micrograd? You love tinygrad! ❤️

10.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tinygrad/tinygrad, a Python project with 33,295 GitHub stars. SynthScan v2.0 examined 390,111 lines of code across 1091 source files, recording 4088 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 10.7 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

10.7
Adjusted Score
10.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
33.3K
Stars
Python
Language
390.1K
Lines of Code
1.1K
Files
4.1K
Pattern Hits
2026-07-14
Scan Date
0.03
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 6HIGH 25MEDIUM 130LOW 3927

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 4088 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1888 hits · 1900 pts
SeverityFileLineSnippetContext
LOWtest/testextra/test_hk_fa.py82 def test_fast_fa_bwd_causal_jitted(self):CODE
LOWtest/testextra/test_bench_log.py16 def test_log_single_wall_time(self):CODE
LOWtest/testextra/test_bench_log.py26 def test_log_double_wall_time(self):CODE
LOWtest/testextra/test_bench_log.py42 def test_log_single_kernel_time(self):CODE
LOWtest/testextra/test_bench_log.py59 def test_interleaved_wall_kernel_time(self):CODE
LOWtest/testextra/test_bench_log.py81 def test_stacked_wall_kernel_time(self):CODE
LOWtest/testextra/test_tk.py78 def test_simple_matmul_transposed(self):CODE
LOWtest/testextra/test_tk.py164 def test_load_store_local_hop(self):CODE
LOWtest/testextra/test_tk.py204 def test_load_store_multioutput(self):CODE
LOWtest/testextra/test_tk.py887 def test_fast_fa_bwd_causal_jitted(self):CODE
LOWtest/testextra/test_tk.py938 def test_fast_fa_bwd_multidevice(self):CODE
LOWtest/testextra/test_lr_scheduler.py89 def test_reducelronplateau_max(self): self._test_reducelronplateau(100, {'mode': 'max'}, 1e-6, 1e-6)CODE
LOWtest/testextra/test_lr_scheduler.py90 def test_reducelronplateau_factor(self): self._test_reducelronplateau(100, {'factor': 0.1337}, 1e-6, 1e-6)CODE
LOWtest/testextra/test_lr_scheduler.py91 def test_reducelronplateau_patience(self): self._test_reducelronplateau(100, {'patience': 3}, 1e-6, 1e-6)CODE
LOWtest/testextra/test_lr_scheduler.py92 def test_reducelronplateau_threshold(self): self._test_reducelronplateau(100, {'threshold': 1e-6}, 1e-6, 1e-6)CODE
LOWtest/testextra/test_lr_scheduler.py93 def test_reducelronplateau_threshold_mode(self): self._test_reducelronplateau(100, {'threshold_mode': 'abs'}, 1e-6, 1eCODE
LOWtest/testextra/test_lr_scheduler.py96 def test_cosineannealinglr_eta_min(self): self._test_cosineannealinglr(100, {'eta_min': 0.001}, 1e-6, 1e-6)CODE
LOWtest/testextra/test_export_model.py21 def test_multi_input_model_export(self):CODE
LOWtest/testextra/test_export_model.py36 def test_multi_output_model_export(self):CODE
LOWtest/testextra/test_export_model.py54 def test_exported_input_output_dtypes(self):CODE
LOWtest/testextra/test_export_model.py71 def test_weights_bound_to_safetensor(self):CODE
LOWtest/testextra/test_mockgpu.py7 def test_import_typing_extensions(self):CODE
LOWtest/unit/test_gradient.py21 def test_with_custom_gradient(self):CODE
LOWtest/unit/test_gradient.py49 def test_non_float_tensor_raise(self):CODE
LOWtest/unit/test_gradient.py54 def test_copy_to_device_gradient(self):CODE
LOWtest/unit/test_gradient.py72 def test_gradient_through_clone_from_grad_src(self):CODE
LOWtest/unit/test_gradient.py80 def test_gradient_through_clone_from_detached_src(self):CODE
LOWtest/unit/test_gradient.py87 def test_setitem_on_grad_used_tensor_raises(self):CODE
LOWtest/unit/test_gradient.py93 def test_gradient_through_chained_unrealized_setitem(self):CODE
LOWtest/unit/test_gradient.py101 def test_bare_const_skipped_by_backward(self):CODE
LOWtest/unit/test_gradient.py122 def test_custom_kernel_multi_output_backward(self):CODE
LOWtest/unit/test_gradient.py134 def test_custom_kernel_multi_output_backward_interacting(self):CODE
LOWtest/unit/test_gradient.py146 def test_custom_kernel_three_output_backward(self):CODE
LOWtest/unit/test_tar.py34 def test_tar_extract_returns_dict(self):CODE
LOWtest/unit/test_tar.py38 def test_tar_extract_correct_keys(self):CODE
LOWtest/unit/test_tar.py42 def test_tar_extract_content_size(self):CODE
LOWtest/unit/test_tar.py47 def test_tar_extract_content_values(self):CODE
LOWtest/unit/test_tar.py52 def test_tar_extract_empty_file(self):CODE
LOWtest/unit/test_tar.py56 def test_tar_extract_non_existent_file(self):CODE
LOWtest/unit/test_tar.py60 def test_tar_extract_invalid_file(self):CODE
LOWtest/unit/test_tar.py98 def test_tar_extract_returns_dict(self):CODE
LOWtest/unit/test_tar.py102 def test_tar_extract_correct_keys(self):CODE
LOWtest/unit/test_tar.py106 def test_tar_extract_content_size(self):CODE
LOWtest/unit/test_tar.py111 def test_tar_extract_content_values(self):CODE
LOWtest/unit/test_tar.py116 def test_tar_extract_empty_file(self):CODE
LOWtest/unit/test_tar.py120 def test_tar_extract_non_existent_file(self):CODE
LOWtest/unit/test_tar.py124 def test_tar_extract_invalid_file(self):CODE
LOWtest/unit/test_tar.py128 def test_tar_extract_invalid_file_long(self):CODE
LOWtest/unit/test_invalid_tensor.py46 def test_where_invalid_add_left(self):CODE
LOWtest/unit/test_invalid_tensor.py78 def test_where_reduce_always_true(self):CODE
LOWtest/unit/test_gguf.py114 def test_expected_failure_unknown_type(self):CODE
LOWtest/unit/test_gguf.py250 def test_gguf_load_no_tensor_leak(self):CODE
LOWtest/unit/test_assign.py175 def test_assign_changes_realized_alt(self): return self.test_assign_changes_alt(realize=True)CODE
LOWtest/unit/test_assign.py177 def test_assign_changes_buffer_alt(self):CODE
LOWtest/unit/test_assign.py182 def test_assign_diamond_cycle(self):CODE
LOWtest/unit/test_assign.py191 def test_assign_diamond_contiguous_cycle(self):CODE
LOWtest/unit/test_assign.py199 def test_assign_diamond_possible(self):CODE
LOWtest/unit/test_assign.py206 def test_assign_diamond_possible_contiguous(self):CODE
LOWtest/unit/test_assign.py213 def test_assign_diamond_both_contiguous(self):CODE
LOWtest/unit/test_assign.py309 def test_assign_after_partial(self):CODE
1828 more matches not shown…
Over-Commented Block1000 hits · 678 pts
SeverityFileLineSnippetContext
LOWtest/unit/test_indexing.py1001 # setting valuesCOMMENT
LOWtest/unit/test_indexing.py1021 # strided = set_(reference, (2,), (4,), offset=4)COMMENT
LOWtest/unit/test_indexing.py1121 # [9 11 13 15]]COMMENT
LOWtest/unit/test_indexing.py1141 # [1, 0]])COMMENT
LOWtest/unit/test_indexing.py1181 # reference = Tensor.arange(0., 24).realize().reshape(3, 8)COMMENT
LOWtest/unit/test_jit_cases.py1import unittestCOMMENT
LOWtest/backend/test_edgecases.py1# end to end tests of tinygrad that you think might be edge cases.COMMENT
LOWtest/null/test_uop_symbolic.py1381COMMENT
LOWtest/external/external_test_am.py41# * 56 FCOMMENT
LOWtest/external/mlperf_retinanet/model/utils.py101 """COMMENT
LOW…l/mlperf_bert/preprocessing/create_pretraining_data.py221 # We *usually* want to fill up the entire sequence since we are paddingCOMMENT
LOW…bert/preprocessing/external_test_preprocessing_part.py1# USAGE:COMMENT
LOWtest/external/mlperf_resnet/lars_optimizer.py1# https://github.com/mlcommons/training/blob/e3769c8dcf88cd21e1001dd2f894b40a1513ec5d/image_classification/tensorflow2/lCOMMENT
LOWtest/external/mlperf_resnet/lars_util.py1# https://github.com/mlcommons/training/blob/e237206991d10449d9675d95606459a3cb6c21ad/image_classification/tensorflow2/lCOMMENT
LOWextra/hook_cuda.py141 #if name == "exp2_kernel_vectorized4_kernel":COMMENT
LOWextra/hook_cuda.py181 #install_hook(cuda.cuFuncGetModule, dummy)COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h201#define ATHUB_BASE__INST0_SEG1 0x02408C00COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h221#define ATHUB_BASE__INST3_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h241COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h261#define CLK_BASE__INST3_SEG1 0x02402400COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h281#define CLK_BASE__INST6_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h301COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h321#define DF_BASE__INST6_SEG1 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h341#define DIO_BASE__INST2_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h361COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h381#define DCN_BASE__INST2_SEG1 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h401#define DCN_BASE__INST5_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h421COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h441#define DPCS_BASE__INST5_SEG1 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h461#define FUSE_BASE__INST1_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h481COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h501#define GC_BASE__INST1_SEG1 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h521#define GC_BASE__INST4_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h541COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h561#define HDA_BASE__INST4_SEG1 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h581#define HDP_BASE__INST0_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h601COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h621#define MMHUB_BASE__INST0_SEG1 0x02408800COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h641#define MMHUB_BASE__INST3_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h661COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h681#define MP0_BASE__INST3_SEG1 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h701#define MP0_BASE__INST6_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h721COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h741#define MP1_BASE__INST6_SEG1 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h761#define NBIO_BASE__INST2_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h781COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h801#define OSSSYS_BASE__INST2_SEG1 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h821#define OSSSYS_BASE__INST5_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h841COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h861#define PCIE0_BASE__INST5_SEG1 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h881#define SDMA0_BASE__INST1_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h901COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h921#define SDMA1_BASE__INST1_SEG1 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h941#define SDMA1_BASE__INST4_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h961COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h981#define SMUIO_BASE__INST4_SEG1 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h1001#define THM_BASE__INST0_SEG3 0COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h1021COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h1041#define UMC_BASE__INST0_SEG1 0x02425800COMMENT
LOWextra/hip_gpu_driver/sienna_cichlid_ip_offset.h1061#define UMC_BASE__INST3_SEG3 0COMMENT
940 more matches not shown…
Unused Imports598 hits · 578 pts
SeverityFileLineSnippetContext
LOWtest/testextra/test_mockgpu.py8CODE
LOWtest/backend/test_linearizer.py18CODE
LOWtest/backend/test_uops.py6CODE
LOWtest/backend/test_ops.py13CODE
LOWtest/amd/test_sqtt_encoder.py9CODE
LOWtest/amd/disasm.py2CODE
LOWtest/amd/test_asm_kernel.py10CODE
LOWtest/amd/test_dsl2.py2CODE
LOWtest/amd/test_formats.py7CODE
LOWtest/amd/test_handwritten.py5CODE
LOWtest/amd/test_integration.py4CODE
LOWtest/amd/test_rdna3_asm.py3CODE
LOWtest/amd/hw/test_vop1.py8CODE
LOWtest/amd/hw/test_scratch.py6CODE
LOWtest/amd/hw/test_dpp.py8CODE
LOWtest/amd/hw/test_flat.py6CODE
LOWtest/amd/hw/test_sop.py7CODE
LOWtest/amd/hw/test_vopc.py6CODE
LOWtest/amd/hw/test_vop3p.py6CODE
LOWtest/amd/hw/test_smem.py7CODE
LOWtest/amd/hw/test_ds.py8CODE
LOWtest/amd/hw/test_vop3.py7CODE
LOWtest/amd/hw/test_vop2.py8CODE
LOWtest/amd/hw/test_global.py6CODE
LOWtest/amd/hw/helpers.py7CODE
LOWtest/amd/hw/test_vinterp.py3CODE
LOWtest/null/test_uops.py6CODE
LOWtest/null/test_uops.py8CODE
LOWtest/mockgpu/usb.py1CODE
LOWtest/mockgpu/am/amgpu.py2CODE
LOWtest/mockgpu/am/amdriver.py1CODE
LOWtest/mockgpu/cuda/cuda.py1CODE
LOWtest/mockgpu/amd/emu.py8CODE
LOWtest/external/fuzz_shape_ops.py1CODE
LOWtest/external/external_test_am_fault_recovery.py4CODE
LOWtest/external/external_benchmark_op_conv.py2CODE
LOWtest/external/external_benchmark_op_conv.py5CODE
LOWtest/external/external_benchmark_op_conv.py5CODE
LOWtest/external/mlperf_bert/preprocessing/tokenization.py5CODE
LOWtest/external/mlperf_bert/preprocessing/tokenization.py6CODE
LOWtest/external/mlperf_bert/preprocessing/tokenization.py7CODE
LOW…l/mlperf_bert/preprocessing/create_pretraining_data.py6CODE
LOW…l/mlperf_bert/preprocessing/create_pretraining_data.py7CODE
LOW…l/mlperf_bert/preprocessing/create_pretraining_data.py8CODE
LOWtest/external/mlperf_resnet/lars_optimizer.py20CODE
LOWtest/external/mlperf_resnet/lars_optimizer.py21CODE
LOWtest/external/mlperf_resnet/lars_optimizer.py22CODE
LOWtest/external/mlperf_resnet/lars_optimizer.py26CODE
LOWtest/external/mlperf_resnet/lars_util.py22CODE
LOWtest/external/mlperf_resnet/lars_util.py23CODE
LOWtest/external/mlperf_resnet/lars_util.py24CODE
LOWtest/external/mlperf_resnet/lars_util.py30CODE
LOWtinygrad/device.py1CODE
LOWtinygrad/dtype.py1CODE
LOWtinygrad/__init__.py5CODE
LOWtinygrad/__init__.py6CODE
LOWtinygrad/__init__.py7CODE
LOWtinygrad/__init__.py10CODE
LOWtinygrad/__init__.py11CODE
LOWtinygrad/__init__.py11CODE
538 more matches not shown…
Decorative Section Separators118 hits · 350 pts
SeverityFileLineSnippetContext
MEDIUMtest/amd/disasm.py41# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/disasm.py43# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/disasm.py63# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/disasm.py65# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/disasm.py81# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/disasm.py83# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/disasm.py103# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/disasm.py105# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/disasm.py171# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/disasm.py173# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/disasm.py640# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/disasm.py642# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/test_sqtt_examples.py20# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/amd/test_sqtt_examples.py22# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/mockgpu/amd/pcode.py84# ═════ FP8 (E4M3) and BF8 (E5M2) conversion helpers ═════COMMENT
MEDIUMtest/mockgpu/amd/pcode.py380# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/mockgpu/amd/pcode.py382# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtest/mockgpu/amd/emu.py2109# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/mockgpu/amd/emu.py2111# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/mockgpu/amd/emu.py76# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/mockgpu/amd/emu.py78# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/mockgpu/amd/emu.py419# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/mockgpu/amd/emu.py421# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/mockgpu/amd/emu.py786# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/mockgpu/amd/emu.py788# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/mockgpu/amd/emu.py2053# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/mockgpu/amd/emu.py2055# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/mockgpu/amd/emu.py2161# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/mockgpu/amd/emu.py2163# ═══════════════════════════════════════════════════════════════════════════════STRING
MEDIUMtest/external/mlperf_resnet/lars_optimizer.py17# ==============================================================================COMMENT
MEDIUMtest/external/mlperf_resnet/lars_util.py19# ==============================================================================COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py15# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py17# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py181# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py183# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py206# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py208# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py253# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py255# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py432# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py434# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py577# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py579# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py644# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py646# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py697# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/sqtt.py699# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/dsl.py4# ══════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/dsl.py6# ══════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/dsl.py91# ══════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/dsl.py93# ══════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/dsl.py142# ══════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/dsl.py144# ══════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/dsl.py234# ══════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/dsl.py236# ══════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/dsl.py244# ══════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/dsl.py246# ══════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/generate.py7# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/generate.py9# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtinygrad/renderer/amd/generate.py41# ═══════════════════════════════════════════════════════════════════════════════COMMENT
58 more matches not shown…
Deep Nesting279 hits · 271 pts
SeverityFileLineSnippetContext
LOWsz.py17CODE
LOWtest/testextra/test_bench_log.py81CODE
LOWtest/unit/test_cpu.py11CODE
LOWtest/unit/test_gguf.py194CODE
LOWtest/unit/test_multitensor.py131CODE
LOWtest/unit/test_tinyfs.py11CODE
LOWtest/speed/external_test_copy_speed.py80CODE
LOWtest/backend/test_symbolic_ops.py272CODE
LOWtest/backend/test_symbolic_ops.py300CODE
LOWtest/backend/test_multitensor.py429CODE
LOWtest/backend/test_nn.py16CODE
LOWtest/backend/test_jit.py294CODE
LOWtest/backend/test_uops.py88CODE
LOWtest/backend/test_uops.py160CODE
LOWtest/backend/test_ops.py712CODE
LOWtest/backend/test_ops.py1805CODE
LOWtest/backend/test_ops.py1820CODE
LOWtest/backend/test_ops.py2324CODE
LOWtest/backend/test_ops.py2353CODE
LOWtest/backend/test_ops.py2362CODE
LOWtest/backend/test_ops.py2486CODE
LOWtest/amd/disasm.py47CODE
LOWtest/amd/disasm.py151CODE
LOWtest/amd/disasm.py284CODE
LOWtest/amd/disasm.py334CODE
LOWtest/amd/disasm.py724CODE
LOWtest/amd/test_sqtt_examples.py24CODE
LOWtest/amd/test_sqtt_examples.py45CODE
LOWtest/amd/test_sqtt_examples.py111CODE
LOWtest/amd/test_sqtt_examples.py122CODE
LOWtest/amd/test_sqtt_examples.py166CODE
LOWtest/amd/test_sqtt_examples.py196CODE
LOWtest/amd/test_sqttmap.py85CODE
LOWtest/amd/test_sqttmap.py96CODE
LOWtest/amd/test_sqttmap.py120CODE
LOWtest/amd/test_sqttmap.py150CODE
LOWtest/amd/test_roundtrip.py57CODE
LOWtest/amd/test_roundtrip.py115CODE
LOWtest/amd/test_llvm.py84CODE
LOWtest/amd/test_llvm.py85CODE
LOWtest/amd/hw/helpers.py238CODE
LOWtest/null/test_dtype_spec.py166CODE
LOWtest/null/test_dtype_spec.py174CODE
LOWtest/null/test_tqdm.py72CODE
LOWtest/null/test_tqdm.py253CODE
LOWtest/mockgpu/mockgpu.py37CODE
LOWtest/mockgpu/usb.py144CODE
LOWtest/mockgpu/usb.py171CODE
LOWtest/mockgpu/am/amdriver.py99CODE
LOWtest/mockgpu/amd/amdgpu.py46CODE
LOWtest/mockgpu/amd/amdgpu.py90CODE
LOWtest/mockgpu/amd/amdgpu.py267CODE
LOWtest/mockgpu/amd/amddriver.py117CODE
LOWtest/mockgpu/amd/amddriver.py180CODE
LOWtest/mockgpu/amd/pcode.py402CODE
LOWtest/mockgpu/amd/pcode.py925CODE
LOWtest/mockgpu/amd/pcode.py935CODE
LOWtest/mockgpu/amd/pcode.py538CODE
LOWtest/mockgpu/amd/pcode.py552CODE
LOWtest/mockgpu/amd/pcode.py667CODE
219 more matches not shown…
Cross-Language Confusion21 hits · 108 pts
SeverityFileLineSnippetContext
HIGHtest/amd/test_formats.py154 # v_add3_u32 v5, null, exec_lo, 0xaf123456COMMENT
HIGHtest/amd/test_rdna3_asm.py37 "s_mulk_i32 s3, 0x87", "v_mad_u64_u32 v[1:2], null, s2, 3, v[1:2]", "v_mul_u32_u24_e32 v0, 45, v0",CODE
HIGHtinygrad/runtime/ops_metal.py108 proc = subprocess.Popen(f"cd {pathlib.Path(__file__).parents[2]}/extra/disassemblers/applegpu && python3 compiler_CODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py577 SOPPOp.S_CBRANCH_CDBGSYS_OR_USER: "if (WAVE_STATUS.COND_DBG_SYS || WAVE_STATUS.COND_DBG_USER) then\nPC = PC + signext(CODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py578 SOPPOp.S_CBRANCH_CDBGSYS_AND_USER: "if (WAVE_STATUS.COND_DBG_SYS && WAVE_STATUS.COND_DBG_USER) then\nPC = PC + signextCODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py673 VOP2Op.V_MIN_F32_E32: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f32))) then\nD0.f32 = 32'F(cvtToQuietNAN(64'F(S0.f32)CODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py674 VOP2Op.V_MAX_F32_E32: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f32))) then\nD0.f32 = 32'F(cvtToQuietNAN(64'F(S0.f32)CODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py708 VOP2Op.V_MAX_F16_E32: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f16))) then\nD0.f16 = 16'F(cvtToQuietNAN(64'F(S0.f16)CODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py709 VOP2Op.V_MIN_F16_E32: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f16))) then\nD0.f16 = 16'F(cvtToQuietNAN(64'F(S0.f16)CODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py933 VOP3Op.V_MIN_F32_E64: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f32))) then\nD0.f32 = 32'F(cvtToQuietNAN(64'F(S0.f32)CODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py934 VOP3Op.V_MAX_F32_E64: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f32))) then\nD0.f32 = 32'F(cvtToQuietNAN(64'F(S0.f32)CODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py958 VOP3Op.V_MAX_F16_E64: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f16))) then\nD0.f16 = 16'F(cvtToQuietNAN(64'F(S0.f16)CODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py959 VOP3Op.V_MIN_F16_E64: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f16))) then\nD0.f16 = 16'F(cvtToQuietNAN(64'F(S0.f16)CODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py1099 VOP3Op.V_MIN_F64: "if (WAVE_MODE.IEEE && isSignalNAN(S0.f64)) then\nD0.f64 = cvtToQuietNAN(S0.f64)\nelsif (WAVE_MODE.ICODE
HIGHtinygrad/runtime/autogen/amd/cdna/str_pcode.py1100 VOP3Op.V_MAX_F64: 'if (WAVE_MODE.IEEE && isSignalNAN(S0.f64)) then\nD0.f64 = cvtToQuietNAN(S0.f64)\nelsif (WAVE_MODE.ICODE
HIGHtinygrad/runtime/autogen/amd/rdna3/str_pcode.py115 DSOp.DS_BVH_STACK_RTN_B32: '(stack_base, stack_index) = DECODE_ADDR(ADDR, OFFSET1);\nlast_node_ptr = DATA0;\n// First CODE
HIGHtinygrad/runtime/autogen/amd/rdna3/str_pcode.py598 SOPPOp.S_CBRANCH_CDBGSYS_OR_USER: "if (WAVE_STATUS.COND_DBG_SYS || WAVE_STATUS.COND_DBG_USER) then\nPC = PC + signext(CODE
HIGHtinygrad/runtime/autogen/amd/rdna3/str_pcode.py599 SOPPOp.S_CBRANCH_CDBGSYS_AND_USER: "if (WAVE_STATUS.COND_DBG_SYS && WAVE_STATUS.COND_DBG_USER) then\nPC = PC + signextCODE
HIGHextra/mlx_driver/connect.py18 SSH + [f"cd ~/tinygrad && sudo PYTHONPATH=. MLX_DEBUG=1 MLX_PCI={REMOTE_PCI} MLX_IP={REMOTE_IP} python3 extra/mlx_drivCODE
HIGHextra/nv_pma/cupti/cu_prof_ext.py53 if DEBUG >= 1: print(" CUPTI: PC sampling needs: echo 'options nvidia NVreg_RestrictProfilingToAdminUsers=0'|CODE
HIGHexamples/webgpu/stable_diffusion/compile.py134 const metadata = safetensor ? getTensorMetadata(safetensor[0]) : null;CODE
Excessive Try-Catch Wrapping86 hits · 94 pts
SeverityFileLineSnippetContext
LOWtest/helpers.py112 except Exception as e: self.skipTest(f"second device not available: {e}")CODE
LOWtest/unit/test_multitensor.py948 except Exception as e:CODE
LOWtest/backend/test_jit.py388 except Exception: raise unittest.SkipTest("no multidevice")CODE
LOWtest/backend/test_jit.py411 except Exception: raise unittest.SkipTest("no multidevice")CODE
LOWtest/backend/test_profiler.py100 except Exception as e: self.skipTest(f"second device not available {e}")CODE
LOWtest/backend/test_profiler.py115 except Exception as e: self.skipTest(f"second device not available {e}")CODE
LOWtest/backend/test_profiler.py127 except Exception as e: self.skipTest(f"second device not available {e}")CODE
LOWtest/backend/test_profiler.py152 except Exception as e: self.skipTest(f"multiple devices not available {e}")CODE
LOWtest/backend/test_ops.py52 except Exception as e:CODE
LOWtest/backend/test_asm_gemm.py14 except Exception: return FalseCODE
LOWtest/amd/test_sqtt_examples.py84 except Exception as e: exc = eCODE
LOWtest/amd/test_sqttmap.py29 except Exception as e: self.skipTest(f"latest rocprof not available, install with extra/sqtt/install_rocprof_decoderCODE
LOWtest/amd/test_roundtrip.py152 except Exception as e:CODE
LOWtest/amd/test_emu2_pcode.py374 except Exception as e: self.fail(f"[{arch}] {op.name}: {e}\nPcode: {pcode[:200]}")CODE
LOWtest/amd/test_llvm.py117 except Exception: skipped += 1CODE
LOWtest/amd/test_llvm.py129 except Exception: passCODE
LOWtest/null/test_device.py74 except Exception as e: self.skipTest(f"skipping compiler test: not all compilers: {e}")CODE
LOWtest/null/test_device.py86 except Exception as e: self.skipTest(f"skipping compiler test: not all compilers: {e}")CODE
LOWtest/null/test_device.py101 except Exception as e: self.skipTest(f"skipping compiler test: not all compilers: {e}")CODE
LOWtest/null/test_device.py117 except Exception as e: self.skipTest(f"skipping: LLVM not available: {e}")CODE
LOWtest/mockgpu/am/amgpu.py35 except Exception: return {}CODE
LOWtest/mockgpu/cuda/cuda.py131 except Exception as e:CODE
MEDIUMtest/mockgpu/cuda/cuda.py132 print("Error in cuLaunchKernel:", e)CODE
LOWtest/mockgpu/amd/pcode.py1162 except Exception: passCODE
LOWtest/mockgpu/amd/emu.py2104 except Exception as e:STRING
LOWtest/mockgpu/amd/emu.py2106 except Exception: inst_str = f"<{type(inst).__name__}>"STRING
LOWtest/mockgpu/amd/emu.py38 except Exception: return None, 0STRING
LOWtest/mockgpu/nv/nvgpu.py99 except Exception as e: print("failed to execute:", e)CODE
LOWtest/device/test_hcq.py316 except Exception: self.skipTest("no multidevice, test skipped")CODE
LOWtest/device/test_hcq.py374 except Exception: self.skipTest("no multidevice, test skipped")CODE
LOWtest/device/test_hcq.py452 except Exception: self.skipTest("no multidevice, test skipped")CODE
LOWtest/device/test_hcq.py568 except Exception: breakCODE
LOWtest/device/test_hcq.py597 except Exception: self.skipTest("no AMD device, test skipped")CODE
LOWtest/device/test_hcq.py600 except Exception: self.skipTest("no NV device, test skipped")CODE
LOWtest/device/test_hcq.py611 except Exception: self.skipTest("no AMD device, test skipped")CODE
LOWtest/device/test_hcq.py616 except Exception: self.skipTest("no NV device, test skipped")CODE
LOWtest/device/test_hcq.py627 except Exception: self.skipTest("no multidevice, test skipped")CODE
MEDIUMtest/device/test_hcq.py607def test_multidevice_p2p(self):CODE
LOWtest/external/external_test_process_count.py15 except Exception as e:CODE
LOWtest/external/external_model_benchmark.py77 except Exception as e:CODE
LOWtest/external/external_model_benchmark.py83 except Exception as e: print(f"{m:16s}torch_cpu {type(e).__name__:>25}")CODE
LOWtest/external/external_model_benchmark.py89 except Exception as e: print(f"{m:16s}torch_{torch_device} {type(e).__name__:>25}")CODE
LOWtest/external/external_model_benchmark.py101 except Exception as e: print(f"{m:16s}onnxruntime_{backend.lower()} {type(e).__name__:>25}")CODE
LOWtest/external/external_test_example.py19 except Exception:CODE
LOWtest/external/external_test_example.py58 except Exception:CODE
MEDIUMtest/external/external_test_example.py55def test_example_matmul(self, device):CODE
LOWtest/external/external_fuzz_hcq_mp.py33 except Exception as e:CODE
LOWtest/external/external_test_gpu_crash.py41 except Exception:CODE
LOWtest/external/external_benchmark_pyrender.py28 except Exception: ren = "PYRENDER_ERR"CODE
LOWtest/external/process_replay/process_replay.py94 except Exception as e:CODE
LOWtest/external/process_replay/process_replay.py126 except Exception as e:CODE
LOWtinygrad/device.py363 except Exception as e: iface_results.append(f"{colored('-', 'red')} {iface.__name__[:-5]}: {e}")CODE
LOWtinygrad/device.py370 except Exception as e: ren_results.append(f"{colored('-', 'red')} {d._renderer_name(r)}: {e}")CODE
LOWtinygrad/device.py373 except Exception as e: result = f"{colored('FAIL', 'red')} {e}"CODE
LOWtinygrad/helpers.py146 except Exception as e: excs.append(e)CODE
LOWtinygrad/runtime/ops_cpu.py41 except Exception as e: self.dev.error_state = eCODE
LOWtinygrad/runtime/ops_amd.py687 except Exception as e:CODE
LOWtinygrad/runtime/support/autogen.py288 except Exception as e: raise Exception("parsing failed") from eCODE
LOWtinygrad/runtime/support/compiler_mesa.py80 except Exception as e: print("Failed to generate SASS", str(e), "Make sure your PATH contains nvdisasm binary of comCODE
LOWtinygrad/runtime/support/compiler_cuda.py42 except Exception as e: print("Failed to generate SASS", str(e), "Make sure your PATH contains ptxas/nvdisasm binary ofCODE
26 more matches not shown…
Hallucination Indicators6 hits · 65 pts
SeverityFileLineSnippetContext
CRITICALtinygrad/renderer/llvmir.py46 # example: %wmma0 = call <8 x float> @llvm.amdgcn.wmma.f32.16x16x16.f16(<16 x half> %v99,<16 x half> %v100,<8 x float>COMMENT
CRITICALtinygrad/renderer/llvmir.py236do_bf8: %packed_bf8 = call i32 @llvm.amdgcn.cvt.pk.bf8.f32(float %phi_val, float %phi_val, i32 0, i1 false)\n br label CODE
CRITICALtinygrad/renderer/llvmir.py237do_fp8: %packed_fp8 = call i32 @llvm.amdgcn.cvt.pk.fp8.f32(float %phi_val, float %phi_val, i32 0, i1 false)\n br label CODE
CRITICALtinygrad/runtime/ops_amd.py661 self.dev.iface.pci_dev.usb.scsi_read_arm(lsize:=min(cp_size, dest.nbytes - i))CODE
CRITICALtinygrad/runtime/support/system.py276 if b.owner != self.dev: self.dev.iface.dev_impl.mm.unmap_range(b.va_addr, round_up(b.size, 0x1000))CODE
CRITICAL…/tinychat/assets/unpkg.com/marked@13.0.0/marked.min.js6!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?defCODE
AI Structural Patterns37 hits · 36 pts
SeverityFileLineSnippetContext
LOWtest/backend/test_optim.py35CODE
LOWtest/backend/test_jit.py245CODE
LOWtest/backend/test_softmax_fusion.py27CODE
LOWtest/backend/test_ops.py25CODE
LOWtest/external/external_test_lr_schedule.py22CODE
LOWtest/external/external_test_optim.py33CODE
LOWtest/external/external_test_optim.py47CODE
LOWtest/external/mlperf_retinanet/model/transform.py163CODE
LOWtinygrad/nn/onnx.py559CODE
LOWtinygrad/nn/onnx.py732CODE
LOWtinygrad/nn/onnx.py775CODE
LOWtinygrad/nn/onnx.py1000CODE
LOWtinygrad/nn/onnx.py1046CODE
LOWtinygrad/nn/optim.py83CODE
LOWtinygrad/nn/optim.py101CODE
LOWtinygrad/nn/optim.py153CODE
LOWtinygrad/runtime/ops_amd.py92CODE
LOWtinygrad/runtime/support/autogen.py102CODE
LOWtinygrad/uop/ops.py1237CODE
LOWextra/multitensor.py28CODE
LOWextra/models/llama.py196CODE
LOWextra/models/resnet.py33CODE
LOWextra/models/resnet.py62CODE
LOWextra/models/mask_rcnn.py867CODE
LOWextra/models/mask_rcnn.py879CODE
LOWextra/models/retinanet.py198CODE
LOWextra/models/bert.py14CODE
LOWextra/models/bert.py43CODE
LOWextra/models/rnnt.py10CODE
LOWextra/gemm/cdna_asm_gemm.py344CODE
LOWextra/hcq2/ops_amd2.py55CODE
LOWexamples/mamba.py93CODE
LOWexamples/beautiful_cartpole.py82CODE
LOWexamples/mixtral.py22CODE
LOWexamples/mlperf/metrics.py46CODE
LOWexamples/mlperf/optim.py25CODE
LOWexamples/mlperf/models/flat_llama.py39CODE
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHtest/amd/hw/test_dpp.py0.text .globl test .p2align 8 .type test,@function test: .byte {byte_str} .rodata .p2align 6 .amdhsa_kernel test .amdhsa_STRING
HIGHtest/amd/hw/test_cdna_vop3.py0.text .globl test .p2align 8 .type test,@function test: .byte {byte_str} .rodata .p2align 6 .amdhsa_kernel test .amdhsa_STRING
HIGHtest/amd/hw/test_rdna4_permlane_var.py0.text .globl test .p2align 8 .type test,@function test: .byte {byte_str} .rodata .p2align 6 .amdhsa_kernel test .amdhsa_STRING
HIGHtest/amd/hw/helpers.py0.text .globl test .p2align 8 .type test,@function test: .byte {byte_str} .rodata .p2align 6 .amdhsa_kernel test .amdhsa_STRING
AI Slop Vocabulary11 hits · 20 pts
SeverityFileLineSnippetContext
LOWtest/mockgpu/amd/emu.py927 # For PAD and SEXT, unused bits are zero (PAD) or sign-extended (SEXT). For DWORD, just return val.STRING
LOWtest/mockgpu/nv/nvdriver.py211 # Profiler commands - just pass through for mockgpuCOMMENT
MEDIUMtest/external/external_llm_eval.py2# uses Meta's exact ARC-Challenge prompt template from lm-evaluation-harness llama3 tasksCOMMENT
LOWtinygrad/nn/optim.py73# LARS is essentially just trust ratio to SGD so if we just set the trust coeff 0.0 it's just standard SGD.COMMENT
LOWtinygrad/nn/optim.py131# LAMB is essentially just the trust ratio part of LARS applied to Adam/W so if we just set the trust ratio to 1.0 it's COMMENT
LOWtinygrad/runtime/ops_metal.py64 # library is loaded first then RTLD_LOCAL library will just use it's symbols. On linux there is RTLD_DEEPBIND to preveCOMMENT
LOWtinygrad/runtime/ops_metal.py98 # Fields other than invoke are unused in this case so we can just use ctypes.byref with negative offset to invoke fiCOMMENT
LOWtinygrad/uop/ops.py1484 # without tracking, we just call the functionCOMMENT
LOWextra/models/llama.py150 # if temperature is very low just use argmaxCOMMENT
MEDIUMextra/gemm/amd_asm_matmul.py435# Test harnessCOMMENT
LOWexamples/tools/bandwidth_test.py19 # this copy would be optimized out, just add 1COMMENT
Redundant / Tautological Comments13 hits · 16 pts
SeverityFileLineSnippetContext
LOWtest/amd/hw/test_vopc.py816 # Set VCC to all 1s firstCOMMENT
LOWtest/amd/hw/test_vopc.py818 # Set EXEC to only lane 0COMMENT
LOWtest/null/test_simplify_valid_idx.py161 s.add(Not(load == simplifed_load)) # Check if they are NOT equivalentCODE
LOWtest/null/test_simplify_valid_idx.py169 s.add(Not(load == wrong_simplifed_load)) # Check if they are NOT equivalentCODE
LOWtest/mockgpu/usb.py160 # Check if upper 32 bits of a 64-bit BARCOMMENT
LOWtest/mockgpu/amd/pcode.py1305 # Check if any branch returned a value (lambda-style)COMMENT
LOWtest/mockgpu/amd/emu.py1348 # Check if sources are VGPRs (offset >= 256) vs inline constants/SGPRsSTRING
LOWtest/mockgpu/amd/emu.py2066 # Check if instruction matches any cached canonical pattern (must also match instruction type to avoid variant conflicSTRING
LOWtinygrad/renderer/amd/generate.py394 # Check if this is a suffix-only variantCOMMENT
LOWtinygrad/runtime/graph/hcq.py320 # Check if all devices are HCQCOMMENT
LOWtinygrad/runtime/graph/hcq.py327 # Check if all devices are within the same peer group. Allow cross-peer-group if all peer groups have RDMA devices.COMMENT
LOWtinygrad/runtime/support/hcq.py596 # Check if the next buffer is safe to be used (its signal has passed) and reserve it.COMMENT
LOWtinygrad/runtime/support/system.py141 os.umask(0) # Set umask to 0 to allow creating files with 0666 permissionsCODE
TODO Padding7 hits · 14 pts
SeverityFileLineSnippetContext
LOWtest/mockgpu/amd/amdgpu.py117 for _ in range(n + 1): self._next_dword() # TODO: implementCODE
LOWextra/huggingface_onnx/huggingface_manager.py38 # TODO: implement attribute with graph type and Loop opCOMMENT
LOWextra/huggingface_onnx/huggingface_manager.py40 # TODO: implement SimplifiedLayerNormalization, SkipSimplifiedLayerNormalization, GroupQueryAttentionCOMMENT
LOWextra/huggingface_onnx/huggingface_manager.py42 # TODO: implement SimplifiedLayerNormalization, SkipSimplifiedLayerNormalization, RotaryEmbedding, MultiHeadAttentionCOMMENT
LOWextra/huggingface_onnx/huggingface_manager.py44 # TODO: implement RandomNormalLikeCOMMENT
LOWextra/huggingface_onnx/huggingface_manager.py46 # TODO: implement NonZeroCOMMENT
LOWexamples/mlperf/model_train.py984 # TODO: implement grad accumulation + mlperf loggingCOMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtest/backend/test_multitensor.py299 # Create a copy from device 0 to 1: 1 entry.COMMENT
MEDIUMtest/amd/test_emu2_pcode.py200 # Create a mock LDS bufferCOMMENT
MEDIUMtinygrad/runtime/support/compiler_cpu.py58 # Create a per-instance context instead of using the global context to avoid shared state between parallel test procCOMMENT
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOW…re.com/ajax/libs/highlight.js/11.10.0/highlight.min.js317}),ie=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code",CODE
LOWexamples/mlperf/model_train.py1507 def fake_data(bs, samples):CODE
LOWexamples/mlperf/model_train.py1515 return fake_data(BS, SAMPLES)CODE
LOWexamples/mlperf/model_train.py1528 return fake_data(EVAL_BS, EVAL_SAMPLES)CODE
LOWexamples/mlperf/model_train.py1796 def fake_data(bs, samples):CODE
LOWexamples/mlperf/model_train.py1804 return fake_data(BS, SAMPLES)CODE
LOWexamples/mlperf/model_train.py1817 return fake_data(EVAL_BS, EVAL_SAMPLES)CODE
LOW…kg.com/@highlightjs/cdn-assets@11.9.0/highlight.min.js317}),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code",CODE
Modern Structural Boilerplate7 hits · 8 pts
SeverityFileLineSnippetContext
LOWtest/null/test_viz.py29 def set_data(self) -> None:CODE
LOWtinygrad/renderer/amd/dsl.py191 if not isinstance(val, Reg): raise TypeError(f"VGPRField requires Reg, got {type(val).__name__}")CODE
LOWtinygrad/renderer/amd/dsl.py207 if not isinstance(val, Reg): raise TypeError(f"{self.__class__.__name__} requires Reg, got {type(val).__name__}")CODE
LOWtinygrad/renderer/amd/dsl.py224 if not isinstance(val, Reg): raise TypeError(f"VDSTYField requires Reg, got {type(val).__name__}")CODE
LOWtinygrad/runtime/autogen/am/__init__.py4__all__ = ["am", "pm4_soc15", "pm4_nv", "sdma_4_0_0", "sdma_5_0_0", "sdma_6_0_0", "smu_13_0_0", "smu_13_0_6", "smu_13_0_CODE
LOWtinygrad/runtime/autogen/nv_regs/__init__.py11__all__ = ["nv_ref", *swref.keys(), *hwref.keys()]CODE
LOWextra/torch_backend/backend.py35def _update_torch_metadata(tensor: torch.Tensor, tiny: Tensor) -> None:CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…ternal/mlperf_bert/external_test_checkpoint_loading.py2# Usage:COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest/backend/test_linearizer.py303 def helper(t, max_ops=0):CODE