AlignmentResearch / tuned-lens

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

Better errors for when lens loading fails #118

Closed levmckinney closed 1 year ago

levmckinney commented 1 year ago

Resolves #37

codecov[bot] commented 1 year ago

Codecov Report

Merging #118 (7be3cbc) into main (51e988b) will increase coverage by 0.35%. Report is 2 commits behind head on main. The diff coverage is 97.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #118      +/-   ##
==========================================
+ Coverage   81.08%   81.43%   +0.35%     
==========================================
  Files          32       32              
  Lines        2141     2160      +19     
==========================================
+ Hits         1736     1759      +23     
+ Misses        405      401       -4     
Files Changed Coverage Δ
tests/scripts/test_integration.py 100.00% <ø> (ø)
tuned_lens/scripts/eval_loop.py 92.59% <85.71%> (+2.23%) :arrow_up:
tests/test_load_artifact.py 100.00% <100.00%> (ø)
tuned_lens/load_artifacts.py 91.66% <100.00%> (+5.30%) :arrow_up: