RepoPilot

openai / whisper

Search openai/whisper

GitHub

Code

How openai/whisper is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely public API
  4. Likely public API
  5. Likely start-up file
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add support for a new language's text normalization

  • Import and register the normalizer in the normalizers package.
  • Update transcribe.py to select the normalizer based on detected or specified language.
  • Add test cases for the new language's normalization rules.

Implement a custom decoding strategy

  • Add a new decoding class inheriting from the base decoder pattern in decoding.py.
  • Register the strategy as a callable option in the model's decode method.
  • Update transcribe.py to accept the new strategy as a parameter.

Add a new inference optimization

  • Implement kernel or optimization logic, optionally using Triton.
  • Integrate the optimization into the model's forward pass or decoding loop.
  • Benchmark and document timing impact using timing utilities.

Change the public API

Trace runtime behavior

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.

Code quality and hotspots

Largest source files

  • Branch points12 per file on average
  • Code issues0 errors, 14 warnings
  • Largest file827 lines
  • Hotspot load0 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions2 workflows
  • Tests7 test filesPytest · 0.50 test files per source file (file count, not coverage)
  • Dependency updatesDependabot

Test folders: tests

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.