AlignmentResearch / tuned-lens

Tools for understanding how transformer predictions are built layer-by-layer
https://tuned-lens.readthedocs.io/en/latest/
MIT License
438 stars 47 forks source link

Stricter linting and type checking in pre-commit #82

Closed levmckinney closed 1 year ago

levmckinney commented 1 year ago

Does what it says on the tin enforces import sorting in the codebase using ruff.

codecov[bot] commented 1 year ago

Codecov Report

Merging #82 (f437942) into main (131c345) will decrease coverage by 0.02%. The diff coverage is 97.56%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #82      +/-   ##
==========================================
- Coverage   75.19%   75.18%   -0.02%     
==========================================
  Files          32       32              
  Lines        1770     1769       -1     
==========================================
- Hits         1331     1330       -1     
  Misses        439      439              
Impacted Files Coverage Δ
tests/plotting/test_token_formatter.py 100.00% <ø> (ø)
tests/plotting/test_trajectory_plotting.py 100.00% <ø> (ø)
tests/test_model_surgery.py 100.00% <ø> (ø)
tests/test_utils.py 100.00% <ø> (ø)
tuned_lens/causal/ablation.py 0.00% <0.00%> (ø)
tuned_lens/causal/utils.py 30.76% <ø> (ø)
tuned_lens/stats/distance.py 65.00% <ø> (ø)
tests/conftest.py 100.00% <100.00%> (ø)
tests/plotting/test_prediction_trajectory.py 100.00% <100.00%> (ø)
tests/scripts/test_integration.py 100.00% <100.00%> (ø)
... and 20 more