Repository Analysis

unslothai/unsloth

Unsloth Studio is a web UI for training and running open models like Gemma 4, Qwen3.6, DeepSeek, gpt-oss locally.

25.7 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of unslothai/unsloth, a Python project with 68,146 GitHub stars. SynthScan v2.0 examined 656,608 lines of code across 1850 source files, recording 14956 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 25.7 places this repository in the Moderate 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).

25.7
Adjusted Score
25.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
68.1K
Stars
Python
Language
656.6K
Lines of Code
1.9K
Files
15.0K
Pattern Hits
2026-07-14
Scan Date
0.05
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 2HIGH 95MEDIUM 1460LOW 13399

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 14956 distinct pattern matches across 23 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 Identifiers9099 hits · 7981 pts
SeverityFileLineSnippetContext
LOWunsloth-cli.py62def _tokenizer_for_raw_text_loader(tokenizer, is_mlx):CODE
LOWunsloth-cli.py68def _raw_text_loader_for_backend(CODE
LOWunsloth-cli.py83def _train_with_legacy_save_control(trainer, is_mlx):CODE
LOWunsloth-cli.py101def _iter_quantization_methods(quantization):CODE
LOWstudio/install_llama_prebuilt.py628def atomic_replace_from_tempfile(tmp_path: Path, destination: Path) -> None:CODE
LOWstudio/install_llama_prebuilt.py633def source_archive_logical_name(upstream_tag: str) -> str:CODE
LOWstudio/install_llama_prebuilt.py637def exact_source_archive_logical_name(source_commit: str) -> str:CODE
LOWstudio/install_llama_prebuilt.py1137def upstream_source_archive_urls(tag: str) -> list[str]:CODE
LOWstudio/install_llama_prebuilt.py1145def commit_source_archive_urls(repo: str, source_commit: str) -> list[str]:CODE
LOWstudio/install_llama_prebuilt.py1153def release_asset_download_url(CODE
LOWstudio/install_llama_prebuilt.py4550def overlay_directory_for_choice(install_dir: Path, choice: AssetChoice, host: HostInfo) -> Path:CODE
LOWstudio/install_llama_prebuilt.py4559def paired_runtime_dll_patterns(choice: AssetChoice) -> list[str]:CODE
LOWstudio/install_llama_prebuilt.py5104def download_validation_model(path: Path, cache_path: Path | None = None) -> None:CODE
LOWstudio/install_llama_prebuilt.py78def _external_hipinfo_on_path() -> bool:CODE
LOWstudio/install_llama_prebuilt.py124def windows_hidden_subprocess_kwargs() -> dict[str, object]:CODE
LOWstudio/install_llama_prebuilt.py247def _cuda_runtime_lines_for_major(major: int) -> list[str]:CODE
LOWstudio/install_llama_prebuilt.py664def normalize_source_ref_kind(value: str | None) -> str | None:CODE
LOWstudio/install_llama_prebuilt.py718def source_url_from_repo_slug(repo_slug: str | None) -> str | None:CODE
LOWstudio/install_llama_prebuilt.py807def windows_cuda_upstream_asset_names(llama_tag: str, runtime: str) -> list[str]:CODE
LOWstudio/install_llama_prebuilt.py814def windows_cuda_asset_aliases(CODE
LOWstudio/install_llama_prebuilt.py839def _published_windows_cuda_runtime(CODE
LOWstudio/install_llama_prebuilt.py1209def latest_upstream_release_tag() -> str:CODE
LOWstudio/install_llama_prebuilt.py1239def iter_release_payloads_by_time(CODE
LOWstudio/install_llama_prebuilt.py1270def direct_release_matches_request(*, release_tag: str, llama_tag: str, requested_tag: str) -> bool:CODE
LOWstudio/install_llama_prebuilt.py1279def synthetic_checksums_for_release(CODE
LOWstudio/install_llama_prebuilt.py1290def direct_upstream_release_plan(CODE
LOWstudio/install_llama_prebuilt.py1502def resolve_simple_install_release_plans(CODE
LOWstudio/install_llama_prebuilt.py1566def normalized_requested_llama_tag(requested_tag: str | None) -> str:CODE
LOWstudio/install_llama_prebuilt.py1606def parse_cuda_visible_devices(value: str | None) -> list[str] | None:CODE
LOWstudio/install_llama_prebuilt.py1615def supports_explicit_visible_device_matching(visible_devices: list[str] | None) -> bool:CODE
LOWstudio/install_llama_prebuilt.py1658def dir_provides_exact_library(directory: str | Path, library: str) -> bool:CODE
LOWstudio/install_llama_prebuilt.py1665def linux_runtime_dirs_for_required_libraries(required_libraries: Iterable[str]) -> list[str]:CODE
LOWstudio/install_llama_prebuilt.py1726def detected_linux_runtime_lines() -> tuple[list[str], dict[str, list[str]]]:CODE
LOWstudio/install_llama_prebuilt.py1837def parse_published_release_bundle(CODE
LOWstudio/install_llama_prebuilt.py1939def parse_approved_release_checksums(CODE
LOWstudio/install_llama_prebuilt.py2023def load_approved_release_checksums(repo: str, release_tag: str) -> ApprovedReleaseChecksums:CODE
LOWstudio/install_llama_prebuilt.py2048def iter_published_release_bundles(CODE
LOWstudio/install_llama_prebuilt.py2089def _blackwell_capable_linux_runtime_lines(CODE
LOWstudio/install_llama_prebuilt.py2113def linux_cuda_choice_from_release(CODE
LOWstudio/install_llama_prebuilt.py2334def latest_published_linux_cuda_tag(host: HostInfo, published_repo: str) -> str | None:CODE
LOWstudio/install_llama_prebuilt.py2348def pinned_published_release_bundle(CODE
LOWstudio/install_llama_prebuilt.py2359def validated_checksums_for_bundle(CODE
LOWstudio/install_llama_prebuilt.py2386def published_release_matches_request(bundle: PublishedReleaseBundle, requested_ref: str) -> bool:CODE
LOWstudio/install_llama_prebuilt.py2400def resolve_published_release(CODE
LOWstudio/install_llama_prebuilt.py2448def iter_resolved_published_releases(CODE
LOWstudio/install_llama_prebuilt.py2507def resolve_requested_llama_tag(CODE
LOWstudio/install_llama_prebuilt.py2546def resolve_requested_install_tag(CODE
LOWstudio/install_llama_prebuilt.py2558def exact_source_archive_hash(checksums: ApprovedReleaseChecksums) -> ApprovedArtifactHash | None:CODE
LOWstudio/install_llama_prebuilt.py2564def source_clone_url_for_release(CODE
LOWstudio/install_llama_prebuilt.py2576def source_build_plan_for_release(release: ResolvedPublishedRelease) -> SourceBuildPlan:CODE
LOWstudio/install_llama_prebuilt.py2625def resolve_source_build_plan(CODE
LOWstudio/install_llama_prebuilt.py2773def windows_intel_gpu_in_registry() -> bool:CODE
LOWstudio/install_llama_prebuilt.py3137def pick_windows_cuda_runtime(host: HostInfo) -> str | None:CODE
LOWstudio/install_llama_prebuilt.py3148def compatible_linux_runtime_lines(host: HostInfo) -> list[str]:CODE
LOWstudio/install_llama_prebuilt.py3157def windows_runtime_line_info() -> dict[str, tuple[str, ...]]:CODE
LOWstudio/install_llama_prebuilt.py3170def detected_windows_runtime_lines() -> tuple[list[str], dict[str, list[str]]]:CODE
LOWstudio/install_llama_prebuilt.py3182def compatible_windows_runtime_lines(host: HostInfo) -> list[str]:CODE
LOWstudio/install_llama_prebuilt.py3193def runtime_line_from_cuda_version(cuda_version: str | None) -> str | None:CODE
LOWstudio/install_llama_prebuilt.py3207def detect_torch_cuda_runtime_preference(host: HostInfo) -> CudaRuntimePreference:CODE
LOWstudio/install_llama_prebuilt.py3409def _windows_cuda_attempt_covers_blackwell(CODE
9039 more matches not shown…
Decorative Section Separators1278 hits · 4388 pts
SeverityFileLineSnippetContext
MEDIUMinstall.sh2245# ── Radeon repo wheel selection helpers ──────────────────────────────────────COMMENT
MEDIUMinstall.sh2331# ── ROCm-on-WSL bootstrap for AMD Strix Halo (gfx1151) ───────────────────────COMMENT
MEDIUMinstall.sh2499# ── Strix Halo / Strix Point: force rocm7.2 wheels, bypass Radeon repo ───────COMMENT
MEDIUMstudio/setup.sh26# ── Maintainer-editable defaults ──────────────────────────────────────────COMMENT
MEDIUMstudio/setup.sh39# ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMstudio/install_python_stack.py63# ── ROCm / AMD GPU support ─────────────────────────────────────────────────────COMMENT
MEDIUMstudio/install_python_stack.py1598# ── Color support ──────────────────────────────────────────────────────COMMENT
MEDIUM…rc/features/studio/sections/dataset-preview-dialog.tsx116 // ── AI Assist ──────────────────────────────────────────────────────COMMENT
MEDIUMstudio/frontend/src/features/chat/api/chat-adapter.ts2283 // ── Audio model path (non-streaming) ─────────────────────COMMENT
MEDIUM…dio/frontend/src/features/training/api/datasets-api.ts64// ── AI Assist ────────────────────────────────────────────────────────COMMENT
MEDIUM…/features/export/hooks/use-export-runtime-lifecycle.ts62 // ── JSON log polling (tunnel-safe fallback) ──────────────────────────COMMENT
MEDIUMstudio/frontend/src/features/export/api/export-api.ts240// ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMstudio/frontend/src/features/export/api/export-api.ts242// ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMstudio/frontend/src/components/assistant-ui/sources.tsx22// ── Helpers ──────────────────────────────────────────────────COMMENT
MEDIUMstudio/frontend/src/components/assistant-ui/sources.tsx37// ── Sub-components ───────────────────────────────────────────COMMENT
MEDIUMstudio/frontend/src/components/assistant-ui/sources.tsx127// ── Source badge with hover card ─────────────────────────────COMMENT
MEDIUMstudio/frontend/src/components/assistant-ui/sources.tsx179// ── Grouped sources with 2-row collapse ─────────────────────COMMENT
MEDIUMstudio/frontend/src/components/assistant-ui/sources.tsx326// ── Exports ──────────────────────────────────────────────────COMMENT
MEDIUM…src/components/assistant-ui/model-selector/pickers.tsx596// ── GGUF Variant Expander ────────────────────────────────────COMMENT
MEDIUM…src/components/assistant-ui/model-selector/pickers.tsx1043// ── Detect GGUF repos by naming convention or hub tag ────────────────────COMMENT
MEDIUM…src/components/assistant-ui/model-selector/pickers.tsx1093// ── Hub Model Picker ──────────────────────────────────────────COMMENT
MEDIUMstudio/backend/main.py45# ── Windows AMD ROCm DLL injection ──────────────────────────────────────────COMMENT
MEDIUMstudio/backend/main.py170# ── WSL AMD Strix Halo (gfx1151): enable ROCDXG before any torch import ──────COMMENT
MEDIUMstudio/backend/core/training/worker.py29# ── WSL AMD Strix Halo (gfx1151): enable ROCDXG before any torch import ──────COMMENT
MEDIUMstudio/backend/core/training/training.py1216 # ------------------------------------------------------------------COMMENT
MEDIUMstudio/backend/core/training/training.py1218 # ------------------------------------------------------------------COMMENT
MEDIUMstudio/backend/core/training/training.py1648 # ------------------------------------------------------------------COMMENT
MEDIUMstudio/backend/core/training/training.py1650 # ------------------------------------------------------------------COMMENT
MEDIUMstudio/backend/core/training/training.py780 # ------------------------------------------------------------------COMMENT
MEDIUMstudio/backend/core/training/training.py782 # ------------------------------------------------------------------COMMENT
MEDIUMstudio/backend/core/training/training.py1183 # ------------------------------------------------------------------COMMENT
MEDIUMstudio/backend/core/training/training.py1185 # ------------------------------------------------------------------COMMENT
MEDIUMstudio/backend/core/inference/tool_call_parser.py2351# ── DeepSeek R1 / V3 / V3.1 ─────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/tool_call_parser.py2522# ── GLM 4.5 / 4.6 / 4.7 ─────────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/tool_call_parser.py2633# ── Kimi K2 / Moonshot ──────────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/audio_codecs.py73 # ── Lazy loaders ─────────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/audio_codecs.py176 # ── Decoders ─────────────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/audio_codecs.py318 # ── Cleanup ──────────────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py337# ── Pre-compiled patterns for GGUF shard detection ───────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py342# ── Sliding-window-pattern resolver ───────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py3767 # ── Port allocation ───────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py3776 # ── Stdout drain (prevents pipe deadlock on Windows) ─────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py8941 # ── Tool-calling agentic loop ──────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py10352 # ── TTS support ────────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py1649 # ── Properties ────────────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py2006 # ── Binary discovery ──────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py2153 # ── llama-server capability probe ─────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py2327 # ── GPU allocation ────────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py2625 # ── NVIDIA via nvidia-smi ────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py3163 # ── KV cache VRAM estimation ─────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py3710 # ── Variant fallback ────────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py4301 # ── HF download (no lock held) ───────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py4817 # ── Lifecycle ─────────────────────────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py5452 # ── Phase 1: kill old process (under lock, fast) ──────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py5569 # ── Phase 3: start llama-server (under lock) ──────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py8479 # ── Message building (OpenAI format) ──────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py8523 # ── Generation (proxy to llama-server) ────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py9149 # ── Re-prompt on plan-without-action ─────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py9212 # ── Speculative buffer state machine ──────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py10219 # ── Prompt token counting ──────────────────────────────────COMMENT
1218 more matches not shown…
Excessive Try-Catch Wrapping1806 hits · 1582 pts
SeverityFileLineSnippetContext
LOWstudio/setup.sh420except Exception:CODE
LOWstudio/install_llama_prebuilt.py4546 except Exception:CODE
LOWstudio/install_llama_prebuilt.py5111 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py5120 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py489 except Exception:CODE
LOWstudio/install_llama_prebuilt.py1011 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py1094 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py1099 except Exception:CODE
LOWstudio/install_llama_prebuilt.py1257 except Exception:CODE
LOWstudio/install_llama_prebuilt.py1556 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py2026 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py2041 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py2061 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py2540 except Exception:CODE
LOWstudio/install_llama_prebuilt.py2639 except Exception:CODE
LOWstudio/install_llama_prebuilt.py2658 except Exception:CODE
LOWstudio/install_llama_prebuilt.py2816 except Exception:CODE
LOWstudio/install_llama_prebuilt.py2854 except Exception:CODE
LOWstudio/install_llama_prebuilt.py2872 except Exception:CODE
LOWstudio/install_llama_prebuilt.py2917 except Exception:CODE
LOWstudio/install_llama_prebuilt.py2980 except Exception:CODE
LOWstudio/install_llama_prebuilt.py3024 except Exception:CODE
LOWstudio/install_llama_prebuilt.py3072 except Exception:CODE
LOWstudio/install_llama_prebuilt.py3220 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py3233 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py3692 except Exception:CODE
LOWstudio/install_llama_prebuilt.py3704 except Exception:CODE
LOWstudio/install_llama_prebuilt.py3721 except Exception:CODE
LOWstudio/install_llama_prebuilt.py3744 except Exception:CODE
LOWstudio/install_llama_prebuilt.py4364 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py4470 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py4498 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py4649 except Exception:CODE
LOWstudio/install_llama_prebuilt.py4763 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py4787 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py4863 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py4891 except Exception as rollback_exc:CODE
LOWstudio/install_llama_prebuilt.py4906 except Exception as cleanup_exc:CODE
LOWstudio/install_llama_prebuilt.py4923 except Exception as cleanup_exc:CODE
LOWstudio/install_llama_prebuilt.py5069 except Exception:CODE
LOWstudio/install_llama_prebuilt.py5091 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py5199 except Exception:CODE
LOWstudio/install_llama_prebuilt.py5218 except Exception:CODE
LOWstudio/install_llama_prebuilt.py5224 except Exception:CODE
LOWstudio/install_llama_prebuilt.py5258 except Exception:CODE
LOWstudio/install_llama_prebuilt.py5363 except Exception:CODE
LOWstudio/install_llama_prebuilt.py5428 except Exception:CODE
LOWstudio/install_llama_prebuilt.py5894 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py5917 except Exception:CODE
LOWstudio/install_llama_prebuilt.py5958 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py5986 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py6010 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py6397 except Exception:CODE
LOWstudio/install_llama_prebuilt.py6517 except Exception:CODE
LOWstudio/install_llama_prebuilt.py6536 except Exception:CODE
LOWstudio/install_llama_prebuilt.py6734 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py6982 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py6991 except Exception as exc:CODE
LOWstudio/install_llama_prebuilt.py7255 except Exception as exc:CODE
LOWstudio/install_node_prebuilt.py248 except Exception as exc: # noqa: BLE001CODE
1746 more matches not shown…
Unused Imports1213 hits · 1026 pts
SeverityFileLineSnippetContext
LOWstudio/install_llama_prebuilt.py7CODE
LOWstudio/install_node_prebuilt.py20CODE
LOWstudio/install_python_stack.py12CODE
LOWstudio/backend/cloudflare_tunnel.py14CODE
LOWstudio/backend/run.py107CODE
LOWstudio/backend/startup_banner.py9CODE
LOWstudio/backend/colab.py16CODE
LOWstudio/backend/main.py210CODE
LOWstudio/backend/main.py290CODE
LOWstudio/backend/main.py325CODE
LOWstudio/backend/loggers/__init__.py4CODE
LOWstudio/backend/core/import_guards.py6CODE
LOWstudio/backend/core/_torchao_stub.py14CODE
LOWstudio/backend/core/tool_healing.py26CODE
LOWstudio/backend/core/data_recipe/service.py4CODE
LOWstudio/backend/core/data_recipe/__init__.py6CODE
LOWstudio/backend/core/data_recipe/__init__.py6CODE
LOWstudio/backend/core/data_recipe/jsonable.py4CODE
LOW…/backend/core/data_recipe/local_callable_validators.py4CODE
LOW…/backend/core/data_recipe/local_callable_validators.py8CODE
LOWstudio/backend/core/data_recipe/huggingface.py4CODE
LOWstudio/backend/core/data_recipe/jobs/worker.py4CODE
LOWstudio/backend/core/data_recipe/jobs/worker.py7CODE
LOWstudio/backend/core/data_recipe/jobs/worker.py8CODE
LOWstudio/backend/core/data_recipe/jobs/constants.py4CODE
LOWstudio/backend/core/data_recipe/jobs/__init__.py4CODE
LOWstudio/backend/core/data_recipe/jobs/__init__.py4CODE
LOWstudio/backend/core/data_recipe/jobs/types.py4CODE
LOWstudio/backend/core/data_recipe/jobs/parse.py4CODE
LOWstudio/backend/core/data_recipe/jobs/manager.py4CODE
LOWstudio/backend/core/training/worker.py12CODE
LOWstudio/backend/core/training/worker.py14CODE
LOWstudio/backend/core/training/worker.py426CODE
LOWstudio/backend/core/training/worker.py427CODE
LOWstudio/backend/core/training/worker.py660CODE
LOWstudio/backend/core/training/worker.py661CODE
LOWstudio/backend/core/training/worker.py3312CODE
LOWstudio/backend/core/training/worker.py2442CODE
LOWstudio/backend/core/training/__init__.py6CODE
LOWstudio/backend/core/training/__init__.py6CODE
LOWstudio/backend/core/training/__init__.py6CODE
LOWstudio/backend/core/training/s3_dataset.py17CODE
LOWstudio/backend/core/training/trainer.py34CODE
LOWstudio/backend/core/training/trainer.py54CODE
LOWstudio/backend/core/training/trainer.py60CODE
LOWstudio/backend/core/training/trainer.py65CODE
LOWstudio/backend/core/training/trainer.py69CODE
LOWstudio/backend/core/training/trainer.py2788CODE
LOWstudio/backend/core/training/trainer.py2789CODE
LOWstudio/backend/core/training/trainer.py2789CODE
LOWstudio/backend/core/training/trainer.py2789CODE
LOWstudio/backend/core/training/trainer.py2796CODE
LOWstudio/backend/core/training/trainer.py2796CODE
LOWstudio/backend/core/training/training.py24CODE
LOWstudio/backend/core/training/training.py27CODE
LOWstudio/backend/core/rag/store.py12CODE
LOWstudio/backend/core/rag/ingestion.py9CODE
LOWstudio/backend/core/rag/chunking.py8CODE
LOWstudio/backend/core/rag/locators.py12CODE
LOWstudio/backend/core/rag/config.py6CODE
1153 more matches not shown…
Deep Nesting708 hits · 494 pts
SeverityFileLineSnippetContext
LOWstudio/install_llama_prebuilt.py982CODE
LOWstudio/install_llama_prebuilt.py1021CODE
LOWstudio/install_llama_prebuilt.py1060CODE
LOWstudio/install_llama_prebuilt.py1290CODE
LOWstudio/install_llama_prebuilt.py1502CODE
LOWstudio/install_llama_prebuilt.py1726CODE
LOWstudio/install_llama_prebuilt.py2773CODE
LOWstudio/install_llama_prebuilt.py2824CODE
LOWstudio/install_llama_prebuilt.py3671CODE
LOWstudio/install_llama_prebuilt.py3801CODE
LOWstudio/install_llama_prebuilt.py3994CODE
LOWstudio/install_llama_prebuilt.py4225CODE
LOWstudio/install_llama_prebuilt.py4431CODE
LOWstudio/install_llama_prebuilt.py4635CODE
LOWstudio/install_llama_prebuilt.py4847CODE
LOWstudio/install_llama_prebuilt.py5354CODE
LOWstudio/install_llama_prebuilt.py5773CODE
LOWstudio/install_llama_prebuilt.py5924CODE
LOWstudio/install_llama_prebuilt.py6213CODE
LOWstudio/install_llama_prebuilt.py6864CODE
LOWstudio/install_node_prebuilt.py267CODE
LOWstudio/install_node_prebuilt.py525CODE
LOWstudio/install_node_prebuilt.py736CODE
LOWstudio/install_python_stack.py401CODE
LOWstudio/install_python_stack.py514CODE
LOWstudio/install_python_stack.py782CODE
LOWstudio/install_python_stack.py1020CODE
LOWstudio/install_python_stack.py2053CODE
LOWstudio/backend/cloudflare_tunnel.py62CODE
LOWstudio/backend/cloudflare_tunnel.py137CODE
LOWstudio/backend/cloudflare_tunnel.py253CODE
LOWstudio/backend/cloudflare_tunnel.py289CODE
LOWstudio/backend/run.py16CODE
LOWstudio/backend/run.py232CODE
LOWstudio/backend/run.py303CODE
LOWstudio/backend/run.py543CODE
LOWstudio/backend/run.py642CODE
LOWstudio/backend/run.py668CODE
LOWstudio/backend/run.py883CODE
LOWstudio/backend/run.py1071CODE
LOWstudio/backend/main.py53CODE
LOWstudio/backend/loggers/config.py24CODE
LOWstudio/backend/core/tool_healing.py171CODE
LOWstudio/backend/core/tool_healing.py203CODE
LOWstudio/backend/core/tool_healing.py240CODE
LOWstudio/backend/core/tool_healing.py354CODE
LOWstudio/backend/core/tool_healing.py436CODE
LOWstudio/backend/core/tool_healing.py632CODE
LOWstudio/backend/core/data_recipe/jobs/manager.py466CODE
LOWstudio/backend/core/training/worker.py184CODE
LOWstudio/backend/core/training/worker.py1200CODE
LOWstudio/backend/core/training/worker.py1365CODE
LOWstudio/backend/core/training/worker.py1414CODE
LOWstudio/backend/core/training/worker.py2185CODE
LOWstudio/backend/core/training/worker.py3282CODE
LOWstudio/backend/core/training/worker.py99CODE
LOWstudio/backend/core/training/worker.py1376CODE
LOWstudio/backend/core/training/worker.py2987CODE
LOWstudio/backend/core/training/worker.py2647CODE
LOWstudio/backend/core/training/trainer.py442CODE
648 more matches not shown…
Cross-Language Confusion79 hits · 431 pts
SeverityFileLineSnippetContext
HIGHstudio/backend/core/inference/tool_call_parser.py1322 """One ``.call`` value (string/number/true/false/null) at ``body[p:]``.STRING
HIGH…dio/backend/tests/test_training_progress_stream_nan.py5non-finite-loss stretches (loss reported as null) instead of replaying theSTRING
HIGHstudio/backend/tests/test_safetensors_tool_loop.py767 '<|python_tag|>{"name":"foo","arguments":null}',CODE
HIGHstudio/backend/tests/test_safetensors_tool_loop.py1023 "enabled:true,attempts:5,threshold:1.5,nickname:null}<tool_call|>"CODE
HIGHstudio/backend/tests/test_anthropic_fast_mode_edge.py38 b'"role":"assistant","stop_reason":null,"usage":'CODE
HIGHstudio/backend/tests/test_anthropic_fast_mode_edge.py50 b'"role":"assistant","stop_reason":null,"usage":'CODE
HIGHstudio/backend/tests/test_anthropic_fast_mode_edge.py397 b'"role":"assistant","stop_reason":null,"usage":'CODE
HIGHstudio/backend/tests/test_anthropic_fast_mode_edge.py334 finish_reason=null); the frontend latches onSTRING
HIGH…/backend/tests/test_anthropic_fast_mode_and_refusal.py38 b'"stop_reason":null,"usage":{"input_tokens":1,"output_tokens":1}}}\n\n'CODE
HIGH…/backend/tests/test_anthropic_fast_mode_and_refusal.py49 b'"stop_reason":null,"usage":{"input_tokens":1,"output_tokens":1}}}\n\n'CODE
HIGHstudio/backend/tests/test_tool_call_parser_strict.py392 calls = parse_tool_calls_from_text('[TOOL_CALLS][{"name":"get_time","arguments":null}]')CODE
HIGHstudio/backend/tests/test_tool_call_parser_strict.py489 text = '<|python_tag|>do.call(s="hi 😀", n=42, f=1.5, b=true, z=null)'CODE
HIGHstudio/backend/tests/test_openai_tool_passthrough.py1146 line = 'data: {"choices":[{"index":0,"delta":{"content":"hello"},"finish_reason":null}]}'CODE
HIGHstudio/backend/tests/test_openai_tool_passthrough.py1155 '"mentions \\"reasoning_content\\" in text"},"finish_reason":null}]}'CODE
HIGHstudio/backend/tests/test_openai_tool_passthrough.py1163 '"finish_reason":null}]}'CODE
HIGHstudio/backend/tests/test_openai_tool_passthrough.py3948 '"finish_reason":null}]}',CODE
HIGHstudio/backend/tests/test_openai_tool_passthrough.py5170 'data: {"id":"chatcmpl-test","object":"chat.completion.chunk","created":1,"model":"m","choices":[{"iCODE
HIGHstudio/backend/tests/test_openai_tool_passthrough.py5966 yield 'data: {"choices":[{"index":0,"delta":{"content":"hi"},"finish_reason":null}]}'CODE
HIGHstudio/backend/tests/test_openai_tool_passthrough.py6038 yield 'data: {"choices":[{"index":0,"delta":{"content":"hi"},"finish_reason":null}]}'CODE
HIGHstudio/backend/tests/test_consent_gate.py1034 # {"AutoTokenizer": ["owner/repo--tokenization_x.Slow", null]}; the external codeCOMMENT
HIGHstudio/backend/tests/test_consent_gate.py1214 '{"auto_map": {"AutoTokenizer": ["tokenization_evil.EvilTokenizer", null]}}'CODE
HIGHstudio/backend/tests/test_consent_gate.py1165 '{"auto_map": {"AutoTokenizer": ["other/repo--tokenization_x.Slow", null]}}'CODE
HIGH…o/backend/tests/test_llama_cpp_wait_for_vram_settle.py579 """On Windows signal.SIGKILL is undefined; the reaper must fall back to SIGTERMSTRING
HIGHstudio/backend/tests/test_sandbox_tools.py363 assert self._find()("cat README.md && echo source") == set()CODE
HIGHstudio/backend/tests/test_sandbox_tools.py364 assert "source" not in self._find()("cat README.md && echo source")CODE
HIGHstudio/backend/tests/test_sandbox_tools.py365 assert "echo" not in self._find()("cat README.md && echo source")CODE
HIGHstudio/backend/tests/test_sandbox_tools.py389 assert "wget" in self._find()("cd /tmp && wget https://bad")CODE
HIGHstudio/backend/tests/test_anthropic_messages.py1776 # A resumed session replays assistant turns with `thinking` (and sometimes null)COMMENT
HIGHstudio/backend/tests/test_anthropic_messages.py1924 # user -> assistant(null) -> user is now accepted: the null assistant turn coercesCOMMENT
HIGHstudio/backend/models/inference.py1150 # ``None`` on a pure tool-call turn (OpenAI content=null); string otherwise.COMMENT
HIGHstudio/backend/models/inference.py1620 # 400 on null; "" keeps the converter's `for block in content` safe).COMMENT
HIGHstudio/backend/routes/inference.py1816 key: (index) => Array.from(data.keys())[index] ?? null,CODE
HIGHstudio/backend/routes/inference.py1817 getItem: (key) => data.has(String(key)) ? data.get(String(key)) : null,CODE
HIGHstudio/backend/routes/inference.py1853 if (!data || data.type !== "unsloth:artifact-html" || typeof data.html !== "string") return;CODE
HIGHstudio/backend/routes/inference.py5166 Returns an empty payload (``phase=null, bytes=0``) when no load is inSTRING
HIGHstudio/backend/hub/utils/llm_assist.py266 "label_mapping": null,CODE
HIGHtests/studio/test_frontend_dep_removal.py434 '/** @type {import("react").FC} */\nconst Foo = () => null;',CODE
HIGHtests/studio/test_frontend_dep_removal.py853 '/** @type {import("__adv_only_pkg_l__").Foo} */\n' "const x = null;\n",CODE
HIGHtests/studio/test_frontend_dep_removal.py1481 {"build": "tsc -b && cross-env CI=1 biome check"},CODE
HIGHtests/studio/test_sync_allow_scripts_pins.py53 assert sync.split_spec("msw@2.14.3 || 2.15.0") == ("msw", "2.14.3 || 2.15.0")CODE
HIGHtests/studio/test_sync_allow_scripts_pins.py113 assert got == {"msw@2.14.3 || 2.15.0": True}CODE
HIGHtests/studio/_playwright_robust.py429 if (body !== null) opts.body = body;CODE
HIGHtests/studio/_playwright_robust.py439 parsed = null;CODE
HIGHtests/studio/_playwright_robust.py442 return {status: r.status, body: parsed, error: null};CODE
HIGHtests/studio/_playwright_robust.py445 return {status: 0, body: null, error: String(e)};CODE
HIGHtests/studio/_playwright_robust.py74 (document.head || document.documentElement).appendChild(style);CODE
HIGHtests/studio/_playwright_robust.py299 """() => (document.body && document.body.innerText || '').slice(0, 800)""",STRING
HIGHtests/studio/test_chat_title_generation.py66 assert "parts.push(`Assistant: ${assistant}`);" in blockCODE
HIGHtests/studio/test_chat_title_generation.py125 assert "finish_reason?: string | null;" in sourceCODE
HIGHtests/studio/test_chat_title_generation.py126 assert 'if (choice?.finish_reason === "length") return null;' in model_blockCODE
HIGHtests/studio/test_chat_title_generation.py127 assert r"if (!raw || /<\/?think>/i.test(raw)) return null;" in model_blockCODE
HIGHtests/studio/playwright_chat_ime_i18n.py518 try { form && form.requestSubmit(); } catch (e) {}STRING
HIGHtests/studio/playwright_chat_ime_i18n.py576 const form = ta && ta.closest('form');STRING
HIGHtests/studio/test_chat_response_details_ui_contract.py77 assert "!isExternalRequest && supportsTools && toolsEnabled" in srcCODE
HIGHtests/studio/test_chat_response_details_ui_contract.py78 assert "!isExternalRequest && supportsTools && codeToolsEnabled" in srcCODE
HIGHtests/studio/test_chat_preset_builtin_invariants.py96 matches: def ? isSamePresetConfig(def.params, DEFAULT_INFERENCE_PARAMS) : null,CODE
HIGHtests/studio/install/test_rocm_support.py3468 call = source.find("\n_maybe_reroute_strixhalo_to_2404 || true")CODE
HIGHtests/studio/install/test_pr4562_bugfixes.py385 if ! command -v cmake &>/dev/null; thenCODE
HIGHtests/studio/install/test_pr4562_bugfixes.py387 elif ! command -v git &>/dev/null; thenCODE
HIGHtests/studio/install/test_pr4562_bugfixes.py419 if ! command -v cmake &>/dev/null; thenCODE
19 more matches not shown…
Over-Commented Block298 hits · 241 pts
SeverityFileLineSnippetContext
LOWinstall.sh1#!/bin/shCOMMENT
LOWinstall.sh1741COMMENT
LOWinstall.sh1901 elseCOMMENT
LOWinstall.sh2141 fiCOMMENT
LOWinstall.sh2501# that causes a segfault in torch._grouped_mm (moe_utils.py line 167).COMMENT
LOWinstall.sh2781 fiCOMMENT
LOWbuild.sh1#!/usr/bin/env bashCOMMENT
LOWstudio/setup.sh21 ;;COMMENT
LOWstudio/setup.sh261# device is deliberately hidden (mixed AMD+NVIDIA hosts steering work to theCOMMENT
LOWstudio/setup.sh741 mv "${_gi}._twbuild" "$_gi" 2>/dev/null || trueCOMMENT
LOWstudio/__init__.py1# SPDX-License-Identifier: AGPL-3.0-onlyCOMMENT
LOWstudio/install_llama_prebuilt.py2921 # subdir per GPU here regardless of nvidia-smi state, so a host whoseCOMMENT
LOWstudio/install_llama_prebuilt.py3801def resolve_upstream_asset_choice(host: HostInfo, llama_tag: str) -> AssetChoice:COMMENT
LOWstudio/install_python_stack.py821 env = _amd_smi_env() if cmd[0] == "amd-smi" else None,COMMENT
LOWstudio/install_python_stack.py2361 # patch_package_file(COMMENT
LOW…nd/src/features/settings/components/usage-examples.tsx541 // direction. `codex` needs a GGUF model (unsloth_cli'sCOMMENT
LOWstudio/frontend/src/features/chat/shared-composer.tsx641 const supportsBuiltinWebFetch = providerSupportsBuiltinWebFetch(COMMENT
LOW…/features/chat/components/openai-code-exec-section.tsx261 // Auto-bind the active thread to the most-recently-active container when theCOMMENT
LOWstudio/frontend/src/features/profile/sloth-avatars.ts1// SPDX-License-Identifier: AGPL-3.0-onlyCOMMENT
LOW…rc/features/hub/download-manager/transport-conflict.ts81}COMMENT
LOW…dio/frontend/src/features/hub/lib/hub-feature-flags.ts1// SPDX-License-Identifier: AGPL-3.0-onlyCOMMENT
LOW…omponents/assistant-ui/use-intent-aware-autoscroll.tsx41const AT_BOTTOM_THRESHOLD_PX = 2;COMMENT
LOW…omponents/assistant-ui/use-intent-aware-autoscroll.tsx361COMMENT
LOWstudio/backend/__init__.py1# SPDX-License-Identifier: AGPL-3.0-onlyCOMMENT
LOWstudio/backend/core/training/worker.py2481 import torch as _torchCOMMENT
LOWstudio/backend/core/training/worker.py2741 # Classify unified vs discrete via _rocm_classify_unified_memoryCOMMENT
LOWstudio/backend/core/inference/tools.py381 "AWS_EC2_METADATA_DISABLED",COMMENT
LOWstudio/backend/core/inference/external_provider.py2201 # code_execution state (bash / text_editor sub-tools); keptCOMMENT
LOWstudio/backend/core/inference/external_provider.py2221 # it onto the assistant message for next-turn round-tripping.COMMENT
LOWstudio/backend/core/inference/external_provider.py2781 thinking_open = FalseCOMMENT
LOWstudio/backend/core/inference/external_provider.py3301 # native parts; the matching role="tool" must be skippedCOMMENT
LOWstudio/backend/core/inference/external_provider.py5041 # per call), so the aggregate list is shared and applied toCOMMENT
LOWstudio/backend/core/inference/llama_cpp.py341COMMENT
LOWstudio/backend/core/inference/llama_cpp.py2901 # (~2-3%); kept >= 3% as a floor (0.90 dropped 91-94% fits to CPU offload, #5106).COMMENT
LOWstudio/backend/core/inference/llama_cpp.py3461 _MMPROJ_VRAM_SAFETY = 1.4 # mmproj worst-case buffer vs file size (runtime ~1.3x)COMMENT
LOWstudio/backend/core/inference/llama_cpp.py5061 # term. cache_type_kv here is always non-quantized (tensor forces f16), soCOMMENT
LOWstudio/backend/core/inference/llama_cpp.py5461 # ── Phase 2: download (NO lock held, so cancel can proceed) ──COMMENT
LOWstudio/backend/core/inference/llama_cpp.py5581 ctx_override = parse_ctx_override(extra_args)COMMENT
LOWstudio/backend/core/inference/llama_cpp.py5601 # an inherited tensor LLAMA_ARG_SPLIT_MODE flips it on (the childCOMMENT
LOWstudio/backend/core/inference/llama_cpp.py5921 # Context-linear compute-buffer growth (flash-attn KQ mask +COMMENT
LOWstudio/backend/core/inference/llama_cpp.py6761 if "--threads" not in cmd:COMMENT
LOWstudio/backend/core/inference/llama_cpp.py6821 if getattr(_torch.version, "hip", None) is not None:COMMENT
LOWstudio/backend/core/inference/llama_cpp.py6841COMMENT
LOWstudio/backend/core/inference/llama_cpp.py7681COMMENT
LOWstudio/backend/core/inference/llama_cpp.py9141 _MAX_BUFFER_CHARS = 32COMMENT
LOWstudio/backend/core/inference/llama_cpp.py9661 # synthesis streams correctly even if content was emittedCOMMENT
LOWstudio/backend/core/inference/orchestrator.py661 # Latch the target model so the recheck below can detect a switch that completedCOMMENT
LOWstudio/backend/core/inference/orchestrator.py1101 self.models.clear()COMMENT
LOWstudio/backend/core/inference/orchestrator.py1141 if model_name != self.active_model_name and model_name not in self.models:COMMENT
LOWstudio/backend/core/inference/chat_templates.py21COMMENT
LOW…po-seed/src/data_designer_github_repo_seed/__init__.py1# SPDX-License-Identifier: AGPL-3.0-onlyCOMMENT
LOW…ata_designer_github_repo_seed/scraper_impl/__init__.py1# SPDX-License-Identifier: AGPL-3.0-onlyCOMMENT
LOW…nd/plugins/data-designer-unstructured-seed/__init__.py1# SPDX-License-Identifier: AGPL-3.0-onlyCOMMENT
LOWstudio/backend/tests/__init__.py1# SPDX-License-Identifier: AGPL-3.0-onlyCOMMENT
LOWstudio/backend/tests/test_orchestrator_unload_cancel.py1501# A compare request whose _start_dispatcher is queued behind an unload'sCOMMENT
LOWstudio/backend/tests/test_llama_cpp_mtp_detection.py1601 chat_template_override = None,COMMENT
LOWstudio/backend/utils/mlx_repair.py61COMMENT
LOWstudio/backend/utils/__init__.py1# SPDX-License-Identifier: AGPL-3.0-onlyCOMMENT
LOWstudio/backend/utils/models/model_config.py2261 # import torchCOMMENT
LOWstudio/backend/utils/models/model_config.py2301 with open(adapter_config_path, "r") as f:COMMENT
238 more matches not shown…
Modern AI Meta-Vocabulary58 hits · 172 pts
SeverityFileLineSnippetContext
MEDIUMstudio/backend/main.py534 # RAG-warm threads). Default to None until the thread populates them.COMMENT
MEDIUMstudio/backend/main.py648 # In Colab, the kernel/output scaffolding injects scripts and fetch/WS fromCOMMENT
MEDIUMstudio/backend/core/inference/tool_call_parser.py244# that block is chain-of-thought, not a real call.COMMENT
MEDIUMstudio/backend/core/inference/tools.py800# the RAG stack; dispatch imports it lazily.COMMENT
MEDIUMstudio/backend/core/inference/tools.py1085# Forced first-pass RAG retrieval: a high cosine floor keeps it precise (fires onCOMMENT
MEDIUMstudio/backend/core/inference/external_provider.py2792 # https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/handle-strCOMMENT
MEDIUMstudio/backend/core/inference/external_provider.py2792 # https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/handle-strCOMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py1965 # frames are dropped by the agentic tool loop; never route it through tools.COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py1972 # supports_tools is forced off for DiffusionGemma (its agentic loop drops theCOMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py8941 # ── Tool-calling agentic loop ──────────────────────────────COMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py8985 # Forced first-pass RAG so a doc question doesn't lose to web_search. EmitsCOMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py9145 # RAG: cap knowledge-base searches per assistant turn. The controller isCOMMENT
MEDIUMstudio/backend/core/inference/llama_cpp.py9973 # RAG: cap paraphrased KB re-searches that slip past the dup guard.COMMENT
MEDIUMstudio/backend/core/inference/safetensors_agentic.py455 # Forced first-pass RAG (mirrors the GGUF loop) so doc Qs don't lose to web_search.COMMENT
MEDIUMstudio/backend/core/inference/safetensors_agentic.py478 # RAG: cap knowledge-base searches per assistant turn (controller-agnostic).COMMENT
MEDIUMstudio/backend/core/inference/safetensors_agentic.py1105 # RAG: cap paraphrased KB re-searches that slip past the dup guard.COMMENT
MEDIUMstudio/backend/core/inference/local_model_resolver.py202 # Skip what Studio hides from its pickers (validation probe, RAG embedCOMMENT
MEDIUMstudio/backend/tests/test_openai_auto_switch.py691 # The llama.cpp validation probe and RAG embedding weights are hidden fromCOMMENT
MEDIUMstudio/backend/tests/conftest.py114# ── RAG fixtures ─────────────────────────────────────────────────────COMMENT
MEDIUMstudio/backend/tests/test_safetensors_tool_loop.py974 # inside the reasoning is chain-of-thought, not a real call; only theCOMMENT
MEDIUMstudio/backend/tests/test_safetensors_tool_loop.py4148 # the agentic loop is gated off and the real call is dropped.COMMENT
MEDIUMstudio/backend/tests/test_safetensors_tool_loop.py698 # strip must drop it so the raw chain-of-thought does not leak into theCOMMENT
MEDIUMstudio/backend/tests/test_safetensors_tool_loop.py1091 # agentic loop can collapse a looping model's repeated calls.COMMENT
MEDIUMstudio/backend/tests/test_safetensors_tool_loop.py2322 # The agentic loop must recognise Llama-3's <|python_tag|>COMMENT
MEDIUMstudio/backend/tests/test_safetensors_tool_loop.py2406 # DeepSeek V3.1 emission inside the agentic loop -- the buffer state machine must wake onCOMMENT
MEDIUM…/backend/tests/test_anthropic_fast_mode_and_refusal.py10https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/handle-streaming-refusalsSTRING
MEDIUMstudio/backend/tests/test_openai_tool_passthrough.py264 # Empty tool output (mkdir, git add, ...) is routine in agentic loops;COMMENT
MEDIUMstudio/backend/tests/test_bypass_permissions.py226# ── agentic loop forwards disable_sandbox, never gates under bypass ──COMMENT
MEDIUMstudio/backend/tests/test_gguf_tool_non_streaming.py30 # The agentic loop runs one tool, then the model answers. Event shapesCOMMENT
MEDIUMstudio/backend/tests/test_anthropic_messages.py1731 # a Studio server-tool alias must NOT enter the agentic loop then.COMMENT
MEDIUMstudio/backend/utils/datasets/model_mappings.py599 # no later user turn; "<think>" is scaffolding GLM-4.x renders as a loneCOMMENT
MEDIUMstudio/backend/models/inference.py612 # normalize to "" instead of a 400 agentic clients treat as fatal.COMMENT
MEDIUMstudio/backend/requirements/no-torch-runtime.txt72# RAG store + document parsing, mirroring studio.txt. Pinned here becauseCOMMENT
MEDIUMstudio/backend/requirements/no-torch-runtime.txt73# this file installs --no-deps; without them Studio runs with RAG disabled.COMMENT
MEDIUMstudio/backend/requirements/studio.txt21# RAG (knowledge bases, hybrid retrieval). sentence-transformers lives inCOMMENT
MEDIUMstudio/backend/storage/rag_db.py30except Exception as exc: # noqa: BLE001 - any import failure disables RAGCODE
MEDIUMstudio/backend/routes/inference.py2247# small local models can hallucinate a missing tool call instead of followingCOMMENT
MEDIUMstudio/backend/routes/inference.py8112 # Mirrors the GGUF agentic loop's event shape. Disabled for vision turnsCOMMENT
MEDIUMstudio/backend/routes/inference.py2304# Nudge appended when the RAG knowledge-base tool is active: ground answers inCOMMENT
MEDIUMstudio/backend/routes/inference.py2333 # Drop the RAG tool without a scope: nothing to search over.COMMENT
MEDIUMstudio/backend/routes/inference.py6700 # never gets injected. (The agentic tool loop below does supportCOMMENT
MEDIUMstudio/backend/routes/inference.py6827 # ── Tool-calling path (agentic loop) ──────────────────COMMENT
MEDIUMstudio/backend/routes/inference.py7284 # Non-streaming JSON: drain the agentic generator into oneCOMMENT
MEDIUMstudio/backend/routes/inference.py8169 # RAG nudge, mirroring the GGUF path.COMMENT
MEDIUMstudio/backend/routes/inference.py11575 # The server-side agentic loop doesn't support multimodal input -- matchesCOMMENT
MEDIUMstudio/backend/routes/inference.py11758 # Anthropic passthrough has no rag_scope field (RAG is local-only).COMMENT
MEDIUMstudio/backend/routes/chat_history.py343 # Best-effort: drop the project's RAG sources (lazy import keeps RAG optional).COMMENT
MEDIUMtests/studio/install/test_rocm_support.py1224# RAG embedder -- runs in the main backend process and also needs the stub.COMMENT
MEDIUMunsloth_cli/tests/test_start.py1853 # Pin the real context window (top-level override) and compact at 90% of it.COMMENT
MEDIUMunsloth_cli/commands/start.py881 # path (C:...). Scalar knobs (e.g. a numeric context window) must pass throughCOMMENT
MEDIUMscripts/scan_packages.py197# Container / orchestration abuseCOMMENT
MEDIUM.github/workflows/studio-inference-smoke.yml398 # the server-side agentic loop and breaks the standardCOMMENT
MEDIUM.github/workflows/studio-inference-smoke.yml901 # response_format requests aren't routed through the agenticCOMMENT
MEDIUM.github/workflows/studio-mac-inference-smoke.yml384 # the server-side agentic loop and breaks the standardCOMMENT
MEDIUM.github/workflows/studio-mac-inference-smoke.yml570 # 123 * 456 = 56088. The agentic loop streams SSE; weCOMMENT
MEDIUM.github/workflows/studio-mac-inference-smoke.yml599 # the SAME server-side agentic loop wiring (only the registryCOMMENT
MEDIUM.github/workflows/studio-mac-inference-smoke.yml793 # response_format requests aren't routed through the agenticCOMMENT
MEDIUMunsloth/models/sentence_transformer.py189 # 4. Patch environment so Unsloth treats this embedding model correctlyCOMMENT
AI Slop Vocabulary40 hits · 113 pts
SeverityFileLineSnippetContext
MEDIUMinstall.sh1658 # elevate for the target distro; the child already printed the NEED_SUDO line, soCOMMENT
LOWinstall.sh2382 # just set, which dies with the installer. Persist the drop-in so loginCOMMENT
MEDIUMstudio/frontend/package-lock.json14032 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
MEDIUMstudio/backend/tests/test_anthropic_citations_edge.py23# ── shared SSE harness ───────────────────────────────────────COMMENT
MEDIUMstudio/backend/tests/test_trained_model_scan.py145 # Assert on the logger directly: robust to the logging backend (structlog vs stub).COMMENT
MEDIUMstudio/backend/tests/test_consent_gate.py286 # A Hub repo id is case-insensitive; folded so the pin is casing-robust.COMMENT
MEDIUMstudio/backend/tests/test_mtp_vram_budget.py484 # robust to that and to any formatter line-wrapping.COMMENT
MEDIUMstudio/backend/routes/inference.py11903 # dropping every later tool_start and its paired tool_end (robustCOMMENT
MEDIUMtests/conftest.py136# (they run at import time in unsloth/import_fixes.py). The harness above letsCOMMENT
MEDIUMtests/_zoo_rocm_spoof.py35 """Load the sibling CUDA spoof by path (robust to sys.path), so we reuse itsSTRING
MEDIUMtests/_zoo_aggressive_cuda_spoof.py3# tests/conftest.py's harness with deeper patches that unblock more patch_* /COMMENT
MEDIUMtests/studio/run_real_mlx_smoke.py327 # 13-seed sweep hit post_train_loss <= 0.05, so 0.1 is a robust bound.COMMENT
MEDIUMtests/studio/install/test_pr5940_followups.py119 # amd-smi does not auto-elevate on Linux, so no env override is applied.COMMENT
MEDIUMtests/studio/install/test_pr5940_followups.py244 # Linux amd-smi does not elevate -> always allowed.COMMENT
MEDIUMtests/studio/install/test_pr5940_followups.py718 # desktop app to elevate for the target distro. The reroute must propagate thatCOMMENT
MEDIUMtests/utils/aime_eval.py429 """Generate comprehensive comparison for AIME evaluation results"""STRING
LOWtests/saving/test_imatrix_export.py220 # output_gguf is the 2nd-to-last token before quant_type/threads; just create it.COMMENT
MEDIUM…/saving/language_models/test_save_merged_grpo_model.py370 """Generate comprehensive comparison of multiple model results"""STRING
MEDIUM.github/workflows/version-compat-ci.yml291 # runner under the tests/conftest.py spoof harness -- no GPU, no training.COMMENT
MEDIUM.github/workflows/studio-inference-smoke.yml285 # assertion robust to formatting jitter.COMMENT
MEDIUM.github/workflows/consolidated-tests-ci.yml411 # tests/conftest.py's GPU-spoof harness applies before the import.COMMENT
MEDIUM.github/workflows/consolidated-tests-ci.yml412 # _zoo_aggressive_cuda_spoof extends conftest's harness with deeperCOMMENT
MEDIUM.github/workflows/consolidated-tests-ci.yml185 # so we inherit the same CPU-spoof harness in tests/conftest.py andCOMMENT
MEDIUM.github/workflows/consolidated-tests-ci.yml400 # picks up tests/conftest.py, whose GPU-spoof harness (lines 84-141)COMMENT
MEDIUM.github/workflows/consolidated-tests-ci.yml507 # Routed through pytest so tests/conftest.py's GPU-spoof harnessCOMMENT
MEDIUM.github/workflows/consolidated-tests-ci.yml519 # tests/conftest.py GPU-spoof harness applies. continue-on-errorCOMMENT
MEDIUM.github/workflows/consolidated-tests-ci.yml635 # unsloth_zoo.tiled_mlp, so the GPU-spoof harness coversCOMMENT
MEDIUM.github/workflows/consolidated-tests-ci.yml941 # module globals after import so this shim is robust to thatCOMMENT
MEDIUM.github/workflows/consolidated-tests-ci.yml1733 # harness so unsloth_zoo.temporary_patches imports are clean.COMMENT
MEDIUM.github/workflows/consolidated-tests-ci.yml2123 # without an accelerator and the spoof harness only kicks in underCOMMENT
MEDIUM.github/workflows/studio-mac-inference-smoke.yml279 # assertion robust to formatting jitter.COMMENT
MEDIUM.github/workflows/studio-backend-ci.yml122 # compile a tiny TS harness against the frontend chat sources.COMMENT
MEDIUM.github/workflows/notebooks-ci.yml17# tests/_zoo_aggressive_cuda_spoof.py harness so `import unsloth`COMMENT
MEDIUMunsloth/tokenizer_utils.py564 # Let's utilize themCOMMENT
LOWunsloth/tokenizer_utils.py582 # Cannot just use use_fast = False as per https://twitter.com/danielhanchen/status/1789659394302718373COMMENT
LOWunsloth/tokenizer_utils.py1434 # Cannot just use use_fast = False as per https://twitter.com/danielhanchen/status/17896593943027183COMMENT
LOWunsloth/import_fixes.py578 # trl.import_utils to bool; the existing accessors that just returnCOMMENT
MEDIUMunsloth/kernels/rms_layernorm.py139 # exactly. Essentially all in float32!COMMENT
MEDIUMunsloth/models/rl_replacements.py1882 # Essentially, for VLMs we do not go via the optimized path in models/,COMMENT
LOWunsloth/dataprep/raw_text.py272 # so just use re.findall with compiled flagsCOMMENT
AI Structural Patterns135 hits · 100 pts
SeverityFileLineSnippetContext
LOWstudio/backend/run.py1071CODE
LOWstudio/backend/core/training/trainer.py491CODE
LOWstudio/backend/core/training/trainer.py876CODE
LOWstudio/backend/core/training/trainer.py2220CODE
LOWstudio/backend/core/training/trainer.py2749CODE
LOWstudio/backend/core/training/trainer.py1148CODE
LOWstudio/backend/core/training/training.py362CODE
LOWstudio/backend/core/training/training.py420CODE
LOWstudio/backend/core/training/training.py452CODE
LOWstudio/backend/core/inference/mlx_inference.py180CODE
LOWstudio/backend/core/inference/mlx_inference.py384CODE
LOWstudio/backend/core/inference/external_provider.py816CODE
LOWstudio/backend/core/inference/external_provider.py1625CODE
LOWstudio/backend/core/inference/external_provider.py2943CODE
LOWstudio/backend/core/inference/llama_cpp.py3603CODE
LOWstudio/backend/core/inference/llama_cpp.py4956CODE
LOWstudio/backend/core/inference/llama_cpp.py5347CODE
LOWstudio/backend/core/inference/llama_cpp.py8734CODE
LOWstudio/backend/core/inference/llama_cpp.py8943CODE
LOWstudio/backend/core/inference/orchestrator.py423CODE
LOWstudio/backend/core/inference/orchestrator.py628CODE
LOWstudio/backend/core/inference/orchestrator.py885CODE
LOWstudio/backend/core/inference/orchestrator.py1226CODE
LOWstudio/backend/core/inference/orchestrator.py1276CODE
LOWstudio/backend/core/inference/orchestrator.py1387CODE
LOWstudio/backend/core/inference/orchestrator.py1603CODE
LOWstudio/backend/core/inference/inference.py816CODE
LOWstudio/backend/core/inference/inference.py892CODE
LOWstudio/backend/core/inference/inference.py935CODE
LOWstudio/backend/core/inference/inference.py1448CODE
LOWstudio/backend/core/inference/safetensors_agentic.py415CODE
LOWstudio/backend/tests/test_mtp_mla_target_ctx.py76CODE
LOWstudio/backend/tests/test_mtp_vram_budget.py94CODE
LOWstudio/backend/utils/hf_xet_fallback.py172CODE
LOWstudio/backend/utils/hf_xet_fallback.py283CODE
LOWstudio/backend/utils/hardware/hardware.py1523CODE
LOWstudio/backend/utils/hardware/hardware.py1652CODE
LOWstudio/backend/utils/hardware/hardware.py1796CODE
LOWstudio/backend/utils/datasets/dataset_utils.py414CODE
LOWstudio/backend/utils/datasets/dataset_utils.py865CODE
LOWstudio/backend/utils/datasets/llm_assist.py375CODE
LOWstudio/backend/utils/datasets/chat_templates.py127CODE
LOWstudio/backend/routes/inference.py12193CODE
LOWstudio/backend/routes/inference.py12256CODE
LOWstudio/backend/routes/inference.py12447CODE
LOWstudio/backend/hub/services/models/common.py418CODE
LOWtests/studio/install/test_selection_logic.py192CODE
LOWtests/studio/install/test_cuda_repair.py53CODE
LOWtests/studio/load_freeze/llama_server_shim.py176CODE
LOWtests/saving/test_prewarm_base_model_hub_cache.py67CODE
LOWunsloth_cli/commands/studio.py693CODE
LOWunsloth_cli/commands/studio.py1035CODE
LOWunsloth_cli/commands/export.py35CODE
LOWunsloth_cli/commands/start.py1465CODE
LOWunsloth_cli/commands/start.py1549CODE
LOWunsloth_cli/commands/start.py1593CODE
LOWunsloth_cli/commands/start.py1640CODE
LOWunsloth_cli/commands/start.py1718CODE
LOWunsloth_cli/commands/start.py1750CODE
LOWunsloth_cli/commands/chat.py158CODE
75 more matches not shown…
Redundant / Tautological Comments65 hits · 86 pts
SeverityFileLineSnippetContext
LOWstudio/install_llama_prebuilt.py4656 # Check if the holder process is still aliveCOMMENT
LOWstudio/backend/core/training/trainer.py1092 # Check if stopped during LoRA preparationCOMMENT
LOWstudio/backend/core/training/trainer.py2310 # Check if stopped during dataset loadingCOMMENT
LOWstudio/backend/core/training/trainer.py2419 # Check if stopped during dataset loadingCOMMENT
LOWstudio/backend/core/training/trainer.py2529 # Check if stopped before applying templateCOMMENT
LOWstudio/backend/core/training/trainer.py2629 # Check if stopped during formattingCOMMENT
LOWstudio/backend/utils/datasets/format_conversion.py41 # Check if vision tokenizer is usedCOMMENT
LOWstudio/backend/routes/inference.py4372 # Check if YAML says this model needs trust_remote_code.COMMENT
LOWstudio/backend/routes/inference.py4778 # Check if the GGUF backend has this model loaded or is loading it.COMMENT
LOWunsloth_cli/commands/studio.py1527 # Check if still alive (os.kill(pid, 0) is invalid on Windows -- see _pid_alive).COMMENT
LOWscripts/scan_packages.py2788 # Check if any are git depsCOMMENT
LOWunsloth/save.py924 # Check if PEFT Model or not - if yes, 3 levels. If not 2 levels.COMMENT
LOWunsloth/save.py1099 # Check if Kaggle or Colab, since only 20GB of Disk space allowed.COMMENT
LOWunsloth/save.py1246 # Check if pushing to an organizationCOMMENT
LOWunsloth/save.py1292 # Check if pushing to an organizationCOMMENT
LOWunsloth/save.py1627 # Check if the llama.cpp existsCOMMENT
LOWunsloth/save.py1671 # Check if successfulCOMMENT
LOWunsloth/save.py1731 # Check if the executable exists and is executableCOMMENT
LOWunsloth/save.py1777 # Check if bfloat16 is supportedCOMMENT
LOWunsloth/save.py1839 # Check if q8_0 is the ONLY quantization method requestedCOMMENT
LOWunsloth/save.py3920 # Check if wrong methodCOMMENT
LOWunsloth/save.py2779 # Check if push_to_hub is requestedSTRING
LOWunsloth/save.py2493 # Check if BOS added already, then warnSTRING
LOWunsloth/save.py5243 # Check if push_to_hub exists before accessing its __name__STRING
LOWunsloth/tokenizer_utils.py112 # Check if token is the actual same one - if not, edit itCOMMENT
LOWunsloth/tokenizer_utils.py175 # Check if they're similar!COMMENT
LOWunsloth/tokenizer_utils.py280 # Check if chat template is enabled!COMMENT
LOWunsloth/tokenizer_utils.py373 # Check if tokenizer.model existsCOMMENT
LOWunsloth/tokenizer_utils.py1372 # Check if sep_token or other generic typesCOMMENT
LOWunsloth/chat_templates.py2486 # Check if the user provided a correct promptCOMMENT
LOWunsloth/chat_templates.py2665 # Check if system part is the same!COMMENT
LOWunsloth/kernels/moe/grouped_gemm/interface.py55# Check if triton.set_allocator is available (Triton 3.0+)COMMENT
LOWunsloth/kernels/moe/grouped_gemm/kernels/forward.py114 # Check if L2 cache reuse for this order is optimalCOMMENT
LOWunsloth/models/loader_utils.py739 # Check if this is Hopper or aboveCOMMENT
LOWunsloth/models/loader_utils.py749 # Check if torch >= 2.9.0COMMENT
LOWunsloth/models/loader_utils.py755 # Check if torchao has this PR: https://github.com/pytorch/ao/pull/3158,COMMENT
LOWunsloth/models/sentence_transformer.py1984 # Check if this is a fast encoder model (uses torch.compile instead of Unsloth patching)COMMENT
LOWunsloth/models/sentence_transformer.py1992 # Check if model is quantized (4-bit/8-bit)COMMENT
LOWunsloth/models/sentence_transformer.py2195 # Check if model has pending compileCOMMENT
LOWunsloth/models/vision.py959 # Check if model already has a non-bitsandbytes quantization config (e.g. compressed-tensors/NVFP4)COMMENT
LOWunsloth/models/vision.py1135 # Check if using forced float32 - we load it in bfloat16, then cast to float16!COMMENT
LOWunsloth/models/rl.py1056 # Check if per_device_eval_batch_size (default 8) bigger than bszSTRING
LOWunsloth/models/rl.py1069 # Check if gradient accumulation bug fix is appliedSTRING
LOWunsloth/models/rl.py1402 # Check if max_seq_length is NOT defined (max_length is now default)STRING
LOWunsloth/models/rl.py1573 # Check if SamplingParams is in thereSTRING
LOWunsloth/models/llama.py2459 # Check if RoPE Scaling is even allowedCOMMENT
LOWunsloth/models/llama.py3125 # Check if exactly the same and then pass through!COMMENT
LOWunsloth/models/llama.py3310 # Check if we added new tokens!COMMENT
LOWunsloth/models/llama.py3312 # Check if embed_tokens/lm_head are already being trainedCOMMENT
LOWunsloth/models/loader.py475 # Check if 4bit is allowed specifically for AMDCOMMENT
LOWunsloth/models/loader.py512 # Check if pre-quantized models are allowedCOMMENT
LOWunsloth/models/loader.py648 # Check if folder exists locallyCOMMENT
LOWunsloth/models/loader.py673 # Check if pre-quantized models are allowedCOMMENT
LOWunsloth/models/loader.py1145 # Check if 4bit is allowed specifically for AMDCOMMENT
LOWunsloth/models/loader.py1195 # Check if pre-quantized models are allowedCOMMENT
LOWunsloth/models/loader.py1420 # Set norms to float32 since anyways they get upcasted to float32COMMENT
LOWunsloth/models/loader.py1429 # Set norms to float32 since anyways they get upcasted to float32COMMENT
LOWunsloth/models/loader.py1491 # Set norms to float32 since anyways they get upcasted to float32COMMENT
LOWunsloth/models/loader.py1506 # Set norms to float32 since anyways they get upcasted to float32COMMENT
LOWunsloth/models/loader.py1517 # Set norms to float32 since anyways they get upcasted to float32COMMENT
5 more matches not shown…
Modern Structural Boilerplate77 hits · 77 pts
SeverityFileLineSnippetContext
LOWstudio/backend/loggers/__init__.py6__all__ = ["get_logger"]CODE
LOWstudio/backend/core/__init__.py21__all__ = [CODE
LOWstudio/backend/core/data_recipe/__init__.py8__all__ = ["JobManager", "get_job_manager"]CODE
LOWstudio/backend/core/data_recipe/jobs/__init__.py6__all__ = ["JobManager", "get_job_manager"]CODE
LOWstudio/backend/core/training/__init__.py8__all__ = [CODE
LOWstudio/backend/core/training/s3_dataset.py26logger = logging.getLogger(__name__)CODE
LOWstudio/backend/core/rag/ingestion.py21logger = logging.getLogger(__name__)CODE
LOWstudio/backend/core/rag/captioner.py18logger = logging.getLogger(__name__)CODE
LOWstudio/backend/core/rag/embed_llama_server.py37logger = logging.getLogger(__name__)CODE
LOWstudio/backend/core/rag/__init__.py7__all__ = [CODE
LOWstudio/backend/core/rag/parsers.py21logger = logging.getLogger(__name__)CODE
LOWstudio/backend/core/rag/embeddings.py28logger = logging.getLogger(__name__)CODE
LOWstudio/backend/core/inference/api_monitor.py149 def set_reply(self, entry_id: Optional[str], text: str) -> None:CODE
LOWstudio/backend/core/inference/chat_template_helpers.py53logger = logging.getLogger(__name__)CODE
LOWstudio/backend/core/inference/llama_keepwarm.py184def _set_last_unloaded(value) -> None:CODE
LOWstudio/backend/core/inference/__init__.py21__all__ = [CODE
LOWstudio/backend/core/inference/llama_cpp.py8598 def _set_stream_read_timeout(response: "httpx.Response", read_timeout_s: float) -> None:CODE
LOWstudio/backend/core/inference/tensor_fallback.py20logger = logging.getLogger(__name__)CODE
LOWstudio/backend/core/inference/key_exchange.py23logger = logging.getLogger(__name__)CODE
LOWstudio/backend/core/inference/_html_to_md.py18__all__ = ["html_to_markdown"]CODE
LOWstudio/backend/core/export/worker.py40def _setup_log_capture(resp_queue: Any) -> None:CODE
LOWstudio/backend/core/export/__init__.py16__all__ = [CODE
LOWstudio/backend/auth/__init__.py33__all__ = [CODE
LOW…d-seed/src/data_designer_unstructured_seed/__init__.py15__all__ = [CODE
LOWstudio/backend/tests/test_checkpoints_scan.py29def _setup_training_runs_table(db_path: Path) -> None:CODE
LOWstudio/backend/utils/hf_xet_fallback.py252__all__ = [CODE
LOWstudio/backend/utils/hardware/__init__.py53__all__ = [CODE
LOWstudio/backend/utils/security/__init__.py38__all__ = [CODE
LOWstudio/backend/utils/datasets/cache_safe.py19logger = logging.getLogger(__name__)CODE
LOWstudio/backend/utils/datasets/__init__.py53__all__ = [CODE
LOWstudio/backend/utils/paths/__init__.py56__all__ = [CODE
LOWstudio/backend/utils/paths/storage_roots.py272def _setup_cache_env() -> None:CODE
LOWstudio/backend/utils/models/__init__.py30__all__ = [CODE
LOWstudio/backend/utils/inference/__init__.py10__all__ = ["load_inference_config"]CODE
LOWstudio/backend/models/__init__.py72__all__ = [CODE
LOWstudio/backend/state/tool_policy.py41def set_tool_policy(value: Optional[bool]) -> None:CODE
LOWstudio/backend/storage/studio_db.py21logger = logging.getLogger(__name__)CODE
LOWstudio/backend/storage/studio_db.py581def update_run_total_steps(id: str, total_steps: int) -> None:CODE
LOWstudio/backend/storage/studio_db.py685def update_run_display_name(id: str, display_name: Optional[str]) -> None:CODE
LOWstudio/backend/storage/rag_db.py22logger = logging.getLogger(__name__)CODE
LOWstudio/backend/storage/providers_db.py17logger = logging.getLogger(__name__)CODE
LOWstudio/backend/routes/__init__.py22__all__ = [CODE
LOWstudio/backend/routes/rag.py31logger = logging.getLogger(__name__)CODE
LOWstudio/backend/routes/data_recipe/__init__.py30__all__ = ["router"]CODE
LOWstudio/backend/hub/utils/paths.py504__all__ = [CODE
LOWstudio/backend/hub/routes/__init__.py9__all__ = [CODE
LOWstudio/backend/hub/services/download_lifecycle.py24logger = logging.getLogger(__name__)CODE
LOWscripts/scan_packages.py2736def update_req_file(filepath: str, updates: dict[int, str]) -> None:CODE
LOWunsloth/save.py71__all__ = [CODE
LOWunsloth/tokenizer_utils.py39__all__ = [CODE
LOWunsloth/import_fixes.py36logger = logging.getLogger(__name__)CODE
LOWunsloth/ollama_template_mappers.py15__all__ = [CODE
LOWunsloth/chat_templates.py15__all__ = [CODE
LOWunsloth/device_type.py15__all__ = [CODE
LOWunsloth/trainer.py46__all__ = [CODE
LOWunsloth/trainer.py56logger = logging.getLogger(__name__)CODE
LOWunsloth/kernels/moe/autotune_cache.py30logger = logging.getLogger(__name__)CODE
LOWunsloth/kernels/moe/grouped_gemm/interface.py28logger = logging.getLogger(__name__)CODE
LOWunsloth/kernels/moe/grouped_gemm/kernels/autotuning.py28logger = logging.getLogger(__name__)CODE
LOWunsloth/utils/__init__.py34__all__ = [CODE
17 more matches not shown…
Cross-File Repetition13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHunsloth-cli.py0below is an instruction that describes a task, paired with an input that provides further context. write a response thatSTRING
HIGHstudio/backend/utils/datasets/chat_templates.py0below is an instruction that describes a task, paired with an input that provides further context. write a response thatSTRING
HIGH…language_models/test_merge_model_perplexity_mistral.py0below is an instruction that describes a task, paired with an input that provides further context. write a response thatSTRING
HIGH…nguage_models/test_merged_model_perplexity_qwen_2.5.py0below is an instruction that describes a task, paired with an input that provides further context. write a response thatSTRING
HIGHstudio/install_llama_prebuilt.py0true if a hipinfo outside the venv is on path. shutil.which returns only the first hit, so the venv hipinfo could shadowSTRING
HIGHstudio/install_python_stack.py0true if a hipinfo outside the venv is on path. shutil.which returns only the first hit, so the venv hipinfo could shadowSTRING
HIGHstudio/backend/utils/hardware/amd.py0true if a hipinfo outside the venv is on path. shutil.which returns only the first hit, so the venv hipinfo could shadowSTRING
HIGHstudio/backend/core/training/worker.py0activate the correct transformers version before any ml imports.STRING
HIGHstudio/backend/core/inference/worker.py0activate the correct transformers version before any ml imports.STRING
HIGHstudio/backend/core/export/worker.py0activate the correct transformers version before any ml imports.STRING
HIGHstudio/backend/auth/storage.py0insert into auth_user ( username, password_salt, password_hash, jwt_secret, must_change_password ) values (?, ?, ?, ?, ?STRING
HIGHstudio/backend/tests/test_desktop_auth.py0insert into auth_user ( username, password_salt, password_hash, jwt_secret, must_change_password ) values (?, ?, ?, ?, ?STRING
HIGHunsloth_cli/commands/studio.py0insert into auth_user ( username, password_salt, password_hash, jwt_secret, must_change_password ) values (?, ?, ?, ?, ?STRING
Verbosity Indicators27 hits · 29 pts
SeverityFileLineSnippetContext
LOWinstall.sh511 # Step 1: Try installing without sudo (works when already root)COMMENT
LOWinstall.sh515 # Step 2: Check which packages are still missingCOMMENT
LOWinstall.sh534 # Step 3: Escalate -- need elevated permissions for remaining packagesCOMMENT
LOWstudio/backend/core/training/worker.py814 # Step 1: --no-deps keeps --force-reinstall off torch/CUDA via the dep graph.COMMENT
LOWstudio/backend/core/training/worker.py836 # Step 2: regular install pulls transitive deps (z3-solver, ml-dtypes) without touching torch.COMMENT
LOWstudio/backend/core/inference/inference.py1045 # Step 2: format with tokenizer.apply_chat_template().COMMENT
LOWstudio/backend/core/inference/inference.py1094 # Step 3: generateCOMMENT
LOWstudio/backend/core/inference/inference.py1004 # Step 1: apply get_chat_template if model is in mapper.COMMENT
LOWstudio/backend/utils/datasets/dataset_utils.py1135 # Step 1: Format the datasetCOMMENT
LOWstudio/backend/utils/datasets/dataset_utils.py1167 # Step 2: Apply chat templateCOMMENT
LOWstudio/backend/utils/datasets/dataset_utils.py1194 # Step 3: Generate summaryCOMMENT
LOWunsloth/save.py1897 # Step 2: Download and patch converter scriptCOMMENT
LOWunsloth/save.py1904 # Step 3: Initial GGUF conversionCOMMENT
LOWunsloth/save.py1880 # Step 1: Ensure llama.cpp is installedCOMMENT
LOWunsloth/save.py1951 # Step 4: Additional quantizations using llama-quantizeCOMMENT
LOWunsloth/save.py2785 # Step 1: Check if this is a VLM (Vision-Language Model) and check if gpt-ossSTRING
LOWunsloth/save.py2842 # Step 4: Save/merge model to 16-bit formatSTRING
LOWunsloth/save.py2884 # Step 6: Clean up memorySTRING
LOWunsloth/save.py2891 # Step 7: Get model dtype and typeSTRING
LOWunsloth/save.py2908 # Step 8: Convert to GGUF formatSTRING
LOWunsloth/save.py2993 # Step 10: Show BOS token warning if applicableSTRING
LOWunsloth/save.py3171 # Step 3: Upload to HuggingFace HubSTRING
LOWunsloth/save.py2797 # Step 2: Prepare arguments for model savingSTRING
LOWunsloth/save.py2831 # Step 3: Fix tokenizer BOS token if neededSTRING
LOWunsloth/save.py2971 # Step 9: Create Ollama modelfileSTRING
LOWunsloth/save.py3121 # Step 1: Determine save directorySTRING
LOWunsloth/save.py3134 # Step 2: Call save_pretrained_gguf to do the conversionSTRING
Structural Annotation Overuse26 hits · 28 pts
SeverityFileLineSnippetContext
LOWinstall.sh511 # Step 1: Try installing without sudo (works when already root)COMMENT
LOWinstall.sh515 # Step 2: Check which packages are still missingCOMMENT
LOWinstall.sh534 # Step 3: Escalate -- need elevated permissions for remaining packagesCOMMENT
LOWstudio/backend/core/training/worker.py836 # Step 2: regular install pulls transitive deps (z3-solver, ml-dtypes) without touching torch.COMMENT
LOWstudio/backend/core/inference/inference.py1045 # Step 2: format with tokenizer.apply_chat_template().COMMENT
LOWstudio/backend/core/inference/inference.py1094 # Step 3: generateCOMMENT
LOWstudio/backend/core/inference/inference.py1004 # Step 1: apply get_chat_template if model is in mapper.COMMENT
LOWstudio/backend/utils/datasets/dataset_utils.py1135 # Step 1: Format the datasetCOMMENT
LOWstudio/backend/utils/datasets/dataset_utils.py1167 # Step 2: Apply chat templateCOMMENT
LOWstudio/backend/utils/datasets/dataset_utils.py1194 # Step 3: Generate summaryCOMMENT
LOWunsloth/save.py1897 # Step 2: Download and patch converter scriptCOMMENT
LOWunsloth/save.py1904 # Step 3: Initial GGUF conversionCOMMENT
LOWunsloth/save.py1880 # Step 1: Ensure llama.cpp is installedCOMMENT
LOWunsloth/save.py1951 # Step 4: Additional quantizations using llama-quantizeCOMMENT
LOWunsloth/save.py2785 # Step 1: Check if this is a VLM (Vision-Language Model) and check if gpt-ossSTRING
LOWunsloth/save.py2842 # Step 4: Save/merge model to 16-bit formatSTRING
LOWunsloth/save.py2884 # Step 6: Clean up memorySTRING
LOWunsloth/save.py2891 # Step 7: Get model dtype and typeSTRING
LOWunsloth/save.py2908 # Step 8: Convert to GGUF formatSTRING
LOWunsloth/save.py2993 # Step 10: Show BOS token warning if applicableSTRING
LOWunsloth/save.py3171 # Step 3: Upload to HuggingFace HubSTRING
LOWunsloth/save.py2797 # Step 2: Prepare arguments for model savingSTRING
LOWunsloth/save.py2831 # Step 3: Fix tokenizer BOS token if neededSTRING
LOWunsloth/save.py2971 # Step 9: Create Ollama modelfileSTRING
LOWunsloth/save.py3121 # Step 1: Determine save directorySTRING
LOWunsloth/save.py3134 # Step 2: Call save_pretrained_gguf to do the conversionSTRING
Dead Code11 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMstudio/backend/utils/wheel_utils.py37CODE
MEDIUMstudio/backend/utils/wheel_utils.py38CODE
MEDIUMstudio/backend/utils/wheel_utils.py40CODE
MEDIUMstudio/backend/utils/wheel_utils.py51CODE
MEDIUMstudio/backend/utils/wheel_utils.py53CODE
MEDIUMstudio/backend/utils/wheel_utils.py64CODE
MEDIUMunsloth/kernels/fast_lora.py666CODE
MEDIUMunsloth/kernels/fast_lora.py667CODE
MEDIUMunsloth/kernels/fast_lora.py669CODE
MEDIUMunsloth/kernels/fast_lora.py732CODE
MEDIUMunsloth/kernels/moe/autotune_cache.py365CODE
Self-Referential Comments8 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMstudio/backend/core/training/training.py923 # Create the DB run row before the pump can consume events, so it appearsCOMMENT
MEDIUMstudio/backend/core/inference/orchestrator.py708 # Create the mailbox BEFORE sending, rechecking _unload_pending underCOMMENT
MEDIUMtests/sh/test_mac_intel_compat.sh179# Create a mock uname that returns DarwinCOMMENT
MEDIUMtests/sh/test_mac_intel_compat.sh294# Create a mock uv that logs all calls instead of running themCOMMENT
MEDIUMtests/saving/vision_models/test_push_to_hub_merged.py1## Import required librariesCOMMENT
MEDIUMunsloth/save.py3362 # Create the custom directory if it doesn't existSTRING
MEDIUMunsloth/models/loader.py618 # Create a combined error message showing both failuresCOMMENT
MEDIUMunsloth/models/loader.py1327 # Create a combined error message showing both failuresCOMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALunsloth/save.py1121 state_dict["model.embed_tokens.weight"] = internal_model.model.embed_tokens.weight.data.to(CODE
CRITICALunsloth/kernels/moe/grouped_gemm/kernels/tuning.py40 properties = triton.runtime.driver.active.utils.get_device_properties(CODE
Cross-Language Confusion (JS/TS)3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…nd/src/features/settings/components/usage-examples.tsx245 print(chunk.choices[0].delta.content or "", end="")`;CODE
HIGH…nd/src/features/settings/components/usage-examples.tsx283 print(chunk.choices[0].delta.content or "", end="")`CODE
HIGH…nd/src/features/settings/components/usage-examples.tsx285 print(chunk.choices[0].delta.content or "", end="")`;CODE
Example Usage Blocks5 hits · 9 pts
SeverityFileLineSnippetContext
LOWscripts/install_gemma4_mlx.sh15# Usage:COMMENT
LOWscripts/install_qwen3_6_mlx.sh18# Usage:COMMENT
LOW.github/scripts/assert-prompt-cache.sh38# Usage:COMMENT
LOW.github/scripts/agent-guides-drive.sh20# Usage:COMMENT
LOW.github/scripts/serve-unsloth-run.sh11# Usage:COMMENT
Slop Phrases3 hits · 3 pts
SeverityFileLineSnippetContext
MEDIUMstudio/backend/tests/test_safetensors_tool_loop.py4223 "</function>\n\nLet me know if you need anything else."CODE
LOWunsloth/kernels/cross_entropy_loss.py373 losses.masked_fill_(labels == -100, 0) # Don't forget to mask padding out!CODE
LOWunsloth/kernels/fast_lora.py64 Don't forget to see our blog post for more details!STRING
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…io/backend/tests/test_gguf_xet_fallback_integration.py144 def helper(CODE
Fake / Example Data1 hit · 0 pts
SeverityFileLineSnippetContext
LOWstudio/backend/tests/test_safetensors_tool_loop.py1463 assert args == {"name": "John Doe", "age": 30, "active": True, "score": 95.5}CODE