repo_id
string
cross_repo_split
string
commit_index
int32
commit_sha
string
in_repo_split
string
test_file
string
file_split
string
split_group
string
lineno
int32
col_offset
int32
assertion_type
string
test_function
string
prefix
large_string
target
string
assertion_event_type
string
assertion_event_id
string
assertion_anchor
large_string
old_target
string
old_lineno
int32
old_col_offset
int32
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
162
4
assert
test_rank_correctness
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
(1, 2, 2, 3)
added
706a7c608a9cf2837edec33e35e6affaed871f2d9316b19124e1d65c77fc63a6
assert|test_rank_correctness|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.predict...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
172
4
assert
test_rank_correctness
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
(2, 2)
added
7023782611a1494d1600ad0d07ac2d14733e6edfcedf54e339a41b21ca9ea06b
assert|test_rank_correctness|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.predict...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
173
4
assert
test_rank_correctness
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
2 + 1
added
5c8339056afccb081fc0de9a797ee80a5bb6d282cff4bbf2a081e916dea8335e
assert|test_rank_correctness|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.predict...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
174
4
assert
test_rank_correctness
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
1 + 1
added
ed0db64262837ae11d0e254d41094318685061919225f82c340c7bc74fd7664e
assert|test_rank_correctness|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.predict...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
175
4
assert
test_rank_correctness
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
1 + 1
added
3085bf047555884eb64d3872292ee6e582d5e741ef04680de44c3a7284f24a52
assert|test_rank_correctness|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.predict...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
176
4
assert
test_rank_correctness
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
1 + 1
added
c1aa6bc9671f974f0955f4e4600d089700877709c7840c9b937efe8c571b0ea2
assert|test_rank_correctness|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.predict...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
183
4
assert
test_entropy_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"Entropy"
added
9e1d8afb6a757e4f0d532eb7dc2ac942b57e8b28c78f06d1772e066572ef4f61
assert|test_entropy_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
184
4
assert
test_entropy_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"nats"
added
d0317564cb34c0ab925242ef6d9aa11f59907f014bc1891f73cd9eb745232cf8
assert|test_entropy_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
185
4
assert
test_entropy_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
601d726e691760feba4cf5de2175520b1467672bbe03413671fd908e9d747dd0
assert|test_entropy_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
186
4
assert
test_entropy_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
60052883d8a064ac1f2ec916f931f1b758ba6884c5babdf89a677b3a52a8d6e4
assert|test_entropy_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
187
4
assert
test_entropy_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
(3, 10)
added
a62844cc4ad871f0021b96db5b84e14108edd65ef9ac75087aff2fc05e907480
assert|test_entropy_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
194
4
assert
test_forward_kl_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"Forward KL"
added
1be8c0b286ce8cb128471fd32b10d96abcd4fc5b82a95d7f6a82af70ac030b10
assert|test_forward_kl_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.predict...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
195
4
assert
test_forward_kl_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"nats"
added
9c641ba7d8a1eb8c3397c3a40ca4946f6626069ba5db7b317b0c866c8705fe34
assert|test_forward_kl_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.predict...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
196
4
assert
test_forward_kl_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
4e683e306b9251d8a1c244fad0b1739b142e6a4dda108ed408c93a43fbe6f0c6
assert|test_forward_kl_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.predict...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
197
4
assert
test_forward_kl_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
43649817febef64f69237e7e68a1fb1bf1f9fa29ce0595ea750fc81f118f7823
assert|test_forward_kl_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.predict...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
198
4
assert
test_forward_kl_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
(3, 10)
added
6d9b93a4a55b5cdd7f742da47eb9204840114ebb761b3033c55636a54acdde1c
assert|test_forward_kl_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.predict...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
205
4
assert
test_max_probability_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"Max Probability"
added
fb574d95cc9a9b7036bc7bf60fa9b5929fec5bc18fc6245a35bf57a303bd8cd0
assert|test_max_probability_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pr...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
206
4
assert
test_max_probability_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"probs"
added
e1511bcafb5383bff75ad11c15cb1dbb4a3248c9d3ec1526b1b784cb51a4ca92
assert|test_max_probability_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pr...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
207
4
assert
test_max_probability_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
3c667d8c8c45e001a6e45b70d5855ca459951ff97bc2d3c1365735827ab850bc
assert|test_max_probability_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pr...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
208
4
assert
test_max_probability_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
aaab13cf9ad507500091452cde1030c14475d34e13849b4312fe0f3e283ba439
assert|test_max_probability_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pr...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
209
4
assert
test_max_probability_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
(3, 10)
added
34c1c6106ea2929a6d1f88aba0547b47057fd09cfbeabda5957e1fc2b9d4ee9d
assert|test_max_probability_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pr...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
219
4
assert
test_kl_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"KL(Self | Other)"
added
88bba295aed8386dce994d77f535c2e7c22542da6b0f130d8e7d2a121bbfc21c
assert|test_kl_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
220
4
assert
test_kl_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"nats"
added
fc286e1846b8b51146cf0b49c7a8f4e3e33397eef44d57722297b8c32e70587e
assert|test_kl_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
221
4
assert
test_kl_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
3a3df3edc961fae0534e54a556d44f84db2d05aebf58164bd10a7643b1cdeaf4
assert|test_kl_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
222
4
assert
test_kl_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
aa64c8e05e5ca85711e683c6aefb1517b979b09bb5ef2eed4fcb01c656c5cec8
assert|test_kl_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
223
4
assert
test_kl_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
(3, 10)
added
4ce3f45fb4a96d299360f2bd60392b90d8ae1bb409b3104d08f10983d1b38902
assert|test_kl_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
225
4
assert
test_kl_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
np.isclose(kl_stat.stats, 0.0).all()
added
21df7951477920b4f55d268ac3bc80ab4c36abc06f3b75d4d77be5f19142e153
assert|test_kl_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
235
4
assert
test_js_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"JS(Self | Other)"
added
dc93e7920b5f3148f3289731cff33d8eee6a4ff489e6e77b67585db7bfb0929b
assert|test_js_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
236
4
assert
test_js_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"nats"
added
616e23368b912c69dc2ea92ca5244dc01805cbaf3b4628612ffdf610ab4df412
assert|test_js_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
237
4
assert
test_js_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
fd4c5931bc979a33f5631cc067e363b2995e7d7add2251003f05ee73df37bd2f
assert|test_js_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
238
4
assert
test_js_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
6e1483527d004173233dd3ba95444db232c545668d11edd8b0882184fb897525
assert|test_js_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
239
4
assert
test_js_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
(3, 10)
added
68c12683351e9bbca7765fbf3e0c2622a2dca2d7d75d900d5e398680cb741f26
assert|test_js_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
241
4
assert
test_js_divergence_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
np.isclose(js_stat.stats, 0.0).all()
added
1789874723b6a62c84951e6a9cf68d657640bdb3647ba9ae6b036d9b91ade134
assert|test_js_divergence_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pred...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
251
4
assert
test_total_variation_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"TV(Self | Other)"
added
2e3de79d161992936c09ccb258afaaa1eae8f5a0bc16f14bb999304a97f8c7cd
assert|test_total_variation_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pr...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
252
4
assert
test_total_variation_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
"probs"
added
2a54dba73dd4b43c862511d2eccf20ccf3f6f23716ba670864898a8c4466f0bb
assert|test_total_variation_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pr...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
253
4
assert
test_total_variation_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
48097a8029706c9c5801d7bd978777d0ed9cec9318bc01cd854147920df739fa
assert|test_total_variation_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pr...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
254
4
assert
test_total_variation_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
None
added
ac57dcbfefe44e3d17a7ac90c63080b05de6904b45daf4b93f10f97e548c7b6f
assert|test_total_variation_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pr...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
255
4
assert
test_total_variation_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
(3, 10)
added
e41bb45fa6cf023bb1a67e48bbfe30266da04369353f48a0da2b2c251b318047
assert|test_total_variation_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pr...
null
null
null
AlignmentResearch/tuned-lens
train
34
76bde8c5ebde3bc7c032a101241236a1ed9800cd
val
tests/plotting/test_prediction_trajectory.py
train
AlignmentResearch/tuned-lens:tests/plotting/test_prediction_trajectory.py
257
4
assert
test_total_variation_smoke
import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.prediction_trajectory import _selec...
np.isclose(js_stat.stats, 0.0).all()
added
a5a615a2fcba3cc859819e1df5576723522d406975e7dc02f28177a82fdf9881
assert|test_total_variation_smoke|import numpy as np import pytest import torch as th import transformer_lens as tl from transformers import AutoModelForCausalLM, AutoTokenizer from tuned_lens.nn.lenses import LogitLens, TunedLens, Unembed from tuned_lens.plotting import PredictionTrajectory from tuned_lens.plotting.pr...
null
null
null
AlignmentResearch/tuned-lens
train
35
51e988b77ac6aba527786ca6f06d6ede5d0a811f
val
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
35
4
assert
test_train_subcommand
from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {text_data...
Path(tmp_path, "checkpoints/snapshot_2.pth").exists()
modified
c5b0538cfc614970fbf8477a92cdf6b0822fe224e898337f1b096329bc7f2a35
assert|test_train_subcommand|from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {tex...
Path(tmp_path, "checkpoints/snapshot_2.pth").exists()
35
4
AlignmentResearch/tuned-lens
train
35
51e988b77ac6aba527786ca6f06d6ede5d0a811f
val
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
36
4
assert
test_train_subcommand
from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {text_data...
Path(tmp_path, "config.json").exists()
modified
5ad100495ea413c9deea5f72d6a12fcbce33f82c4909c1bda45abb5f3e47346e
assert|test_train_subcommand|from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {tex...
Path(tmp_path, "config.json").exists()
36
4
AlignmentResearch/tuned-lens
train
35
51e988b77ac6aba527786ca6f06d6ede5d0a811f
val
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
37
4
assert
test_train_subcommand
from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {text_data...
Path(tmp_path, "params.pt").exists()
modified
e2657532975457810aa796cc91b174f400d19b700c9332d48da62479c2d323c2
assert|test_train_subcommand|from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {tex...
Path(tmp_path, "params.pt").exists()
37
4
AlignmentResearch/tuned-lens
train
36
9adcb0adf289ac22756ceee1cbf86e2f0c0da256
val
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
36
4
assert
test_train_subcommand
from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {text_data...
Path(tmp_path, "checkpoints/snapshot_2.pth").exists()
modified
bc74bda4b9cc9ebb3ec131fcbf36271c59a786fb744530a60b1d3ac0e9d35e0a
assert|test_train_subcommand|from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {tex...
Path(tmp_path, "checkpoints/snapshot_2.pth").exists()
35
4
AlignmentResearch/tuned-lens
train
36
9adcb0adf289ac22756ceee1cbf86e2f0c0da256
val
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
37
4
assert
test_train_subcommand
from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {text_data...
Path(tmp_path, "config.json").exists()
modified
58f59ac5b893d7ae801cc1ba5ccd1dc21bb8156223b1dc7e17362129ceec8307
assert|test_train_subcommand|from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {tex...
Path(tmp_path, "config.json").exists()
36
4
AlignmentResearch/tuned-lens
train
36
9adcb0adf289ac22756ceee1cbf86e2f0c0da256
val
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
38
4
assert
test_train_subcommand
from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {text_data...
Path(tmp_path, "params.pt").exists()
modified
bbf4d59f51ad75a4aa64e88931970073553dfb98e7e5936b2ad8da1483cd729e
assert|test_train_subcommand|from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data.name {tex...
Path(tmp_path, "params.pt").exists()
37
4
AlignmentResearch/tuned-lens
train
37
7825d1bfb25f5898620a06ce4aa90f546e24be48
val
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
41
4
assert
test_train_subcommand
import warnings from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data...
Path(tmp_path, "checkpoints/snapshot_2.pth").exists()
added
c61d40684d3399f3898b563b077a0b676789be270ae31fddee98a454f27c9c57
assert|test_train_subcommand|import warnings from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval ...
null
null
null
AlignmentResearch/tuned-lens
train
37
7825d1bfb25f5898620a06ce4aa90f546e24be48
val
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
42
4
assert
test_train_subcommand
import warnings from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data...
Path(tmp_path, "config.json").exists()
added
12ec77e93bae7cda271630c6320e7105bc22ab481caa2bd26321c454b0a86df6
assert|test_train_subcommand|import warnings from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval ...
null
null
null
AlignmentResearch/tuned-lens
train
37
7825d1bfb25f5898620a06ce4aa90f546e24be48
val
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
43
4
assert
test_train_subcommand
import warnings from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval --data...
Path(tmp_path, "params.pt").exists()
added
4f137b3541d2308e438a6184aed89ce454168115b8ba4c663a1bf6910f5c2436
assert|test_train_subcommand|import warnings from pathlib import Path from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( f"--log_level DEBUG eval ...
null
null
null
AlignmentResearch/tuned-lens
train
38
45d0cc1b0b64fcf9a7c66801715520df5fcb91c5
test
tests/test_lenses.py
train
AlignmentResearch/tuned-lens:tests/test_lenses.py
145
4
assert
test_tuned_lens_generate_smoke
from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixture def model_config(): config =...
11
added
780ddcc5e11f1a8bfc248c2e962d744ff879946d34e2f2480bc9045bd9cb1eda
assert|test_tuned_lens_generate_smoke|from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixtur...
null
null
null
AlignmentResearch/tuned-lens
train
38
45d0cc1b0b64fcf9a7c66801715520df5fcb91c5
test
tests/test_lenses.py
train
AlignmentResearch/tuned-lens:tests/test_lenses.py
146
4
assert
test_tuned_lens_generate_smoke
from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixture def model_config(): config =...
1
added
64c6696c23dea03bc1f84fd942445a890e34a5b2dca954726a70ec2a5540c6f3
assert|test_tuned_lens_generate_smoke|from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixtur...
null
null
null
AlignmentResearch/tuned-lens
train
38
45d0cc1b0b64fcf9a7c66801715520df5fcb91c5
test
tests/test_lenses.py
train
AlignmentResearch/tuned-lens:tests/test_lenses.py
147
4
assert
test_tuned_lens_generate_smoke
from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixture def model_config(): config =...
tokens[:, :1]
added
0e57c9c543b4d264bc1fbf4beffc62d90b88aeba314c3cc754d51d18a59cd79e
assert|test_tuned_lens_generate_smoke|from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixtur...
null
null
null
AlignmentResearch/tuned-lens
train
38
45d0cc1b0b64fcf9a7c66801715520df5fcb91c5
test
tests/test_lenses.py
train
AlignmentResearch/tuned-lens:tests/test_lenses.py
148
4
assert
test_tuned_lens_generate_smoke
from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixture def model_config(): config =...
th.tensor([bos_token_id])
added
2b1a08d09f158cfc35f094ef2ff77160424ab05cad70932f1bcce47ffbc93178
assert|test_tuned_lens_generate_smoke|from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixtur...
null
null
null
AlignmentResearch/tuned-lens
train
38
45d0cc1b0b64fcf9a7c66801715520df5fcb91c5
test
tests/test_lenses.py
train
AlignmentResearch/tuned-lens:tests/test_lenses.py
157
4
assert
test_tuned_lens_generate_smoke
from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixture def model_config(): config =...
11
added
c020582596dac179846791396e8f972b9403d82b52726a268e2fc679d1852f7f
assert|test_tuned_lens_generate_smoke|from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixtur...
null
null
null
AlignmentResearch/tuned-lens
train
38
45d0cc1b0b64fcf9a7c66801715520df5fcb91c5
test
tests/test_lenses.py
train
AlignmentResearch/tuned-lens:tests/test_lenses.py
158
4
assert
test_tuned_lens_generate_smoke
from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixture def model_config(): config =...
1
added
ba0c801eea4df6cecf4df54da6c485bad2b56f3fbb2025213094e2d4324295c3
assert|test_tuned_lens_generate_smoke|from pathlib import Path import mock import pytest import torch as th import transformers as trf from tuned_lens.load_artifacts import load_lens_artifacts from tuned_lens.nn.lenses import LogitLens, TunedLens, TunedLensConfig from tuned_lens.nn.unembed import Unembed @pytest.fixtur...
null
null
null
AlignmentResearch/tuned-lens
train
39
960f3388b1f8668efd6c9ac1727baa551be8a0e0
test
tests/test_load_artifact.py
train
AlignmentResearch/tuned-lens:tests/test_load_artifact.py
11
9
pytest.raises
test_load_lens_artifact_raises_smoke
import pytest from tuned_lens.load_artifacts import available_lens_artifacts, load_lens_artifacts def test_load_lens_artifact_smoke(): load_lens_artifacts("gpt2", "AlignmentResearch/tuned-lens") def test_load_lens_artifact_raises_smoke(): with pytest.raises(
ValueError, match="Could not find lens at the specified")
added
c5d313d645f94e5d32dfb75a60684f36d32745dfcb53497c661edd5f7f31719e
pytest.raises|test_load_lens_artifact_raises_smoke|import pytest from tuned_lens.load_artifacts import available_lens_artifacts, load_lens_artifacts def test_load_lens_artifact_smoke(): load_lens_artifacts("gpt2", "AlignmentResearch/tuned-lens") def test_load_lens_artifact_raises_smoke(): with pytest.raises(
null
null
null
AlignmentResearch/tuned-lens
train
39
960f3388b1f8668efd6c9ac1727baa551be8a0e0
test
tests/test_load_artifact.py
train
AlignmentResearch/tuned-lens:tests/test_load_artifact.py
17
4
assert
test_list_available_lens_artifacts_smoke
import pytest from tuned_lens.load_artifacts import available_lens_artifacts, load_lens_artifacts def test_load_lens_artifact_smoke(): load_lens_artifacts("gpt2", "AlignmentResearch/tuned-lens") def test_load_lens_artifact_raises_smoke(): with pytest.raises(ValueError, match="Could not find lens at the spe...
0
added
67d63bc01214150f3f7595130927d1df9a43e1cb0c102f1fb2cc0898cf43219c
assert|test_list_available_lens_artifacts_smoke|import pytest from tuned_lens.load_artifacts import available_lens_artifacts, load_lens_artifacts def test_load_lens_artifact_smoke(): load_lens_artifacts("gpt2", "AlignmentResearch/tuned-lens") def test_load_lens_artifact_raises_smoke(): with pytest.raises(ValueError, ma...
null
null
null
AlignmentResearch/tuned-lens
train
39
960f3388b1f8668efd6c9ac1727baa551be8a0e0
test
tests/test_load_artifact.py
train
AlignmentResearch/tuned-lens:tests/test_load_artifact.py
23
4
assert
test_list_available_lens_artifacts_smoke
import pytest from tuned_lens.load_artifacts import available_lens_artifacts, load_lens_artifacts def test_load_lens_artifact_smoke(): load_lens_artifacts("gpt2", "AlignmentResearch/tuned-lens") def test_load_lens_artifact_raises_smoke(): with pytest.raises(ValueError, match="Could not find lens at the spe...
0
added
ff2d038442284cc119c62a1b4b38a49bb22a5417c94dbc9a06dcebcbe30305de
assert|test_list_available_lens_artifacts_smoke|import pytest from tuned_lens.load_artifacts import available_lens_artifacts, load_lens_artifacts def test_load_lens_artifact_smoke(): load_lens_artifacts("gpt2", "AlignmentResearch/tuned-lens") def test_load_lens_artifact_raises_smoke(): with pytest.raises(ValueError, ma...
null
null
null
AlignmentResearch/tuned-lens
train
40
36c41e0bbb5e9a766cc0b30cd06106890b283dcc
test
tests/test_load_artifact.py
train
AlignmentResearch/tuned-lens:tests/test_load_artifact.py
18
9
pytest.raises
test_list_available_lens_artifacts_smoke
import pytest from tuned_lens.load_artifacts import available_lens_artifacts, load_lens_artifacts def test_load_lens_artifact_smoke(): load_lens_artifacts("gpt2", "AlignmentResearch/tuned-lens") def test_load_lens_artifact_raises_smoke(): with pytest.raises(ValueError, match="Could not find lens at the spe...
FileNotFoundError)
added
718461df8a5fe20e3619c99f0e58f03c90f94cd6e3b2fd5ddd93e5dde579e035
pytest.raises|test_list_available_lens_artifacts_smoke|import pytest from tuned_lens.load_artifacts import available_lens_artifacts, load_lens_artifacts def test_load_lens_artifact_smoke(): load_lens_artifacts("gpt2", "AlignmentResearch/tuned-lens") def test_load_lens_artifact_raises_smoke(): with pytest.raises(ValueEr...
null
null
null
AlignmentResearch/tuned-lens
train
41
874b0659b2b752d6889ec8cff45ec6d68aaa7b51
test
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
44
9
pytest.raises
test_eval_subcommand_fails_when_not_enough_data_given
import warnings from pathlib import Path import pytest from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( # Using a very s...
ValueError, match="Requested to evaluate on")
added
73cf2bcf657d8e7b8a4cd48453a100b704d4f814a250919a10aca49cd5334fab
pytest.raises|test_eval_subcommand_fails_when_not_enough_data_given|import warnings from pathlib import Path import pytest from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are us...
null
null
null
AlignmentResearch/tuned-lens
train
41
874b0659b2b752d6889ec8cff45ec6d68aaa7b51
test
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
66
4
assert
test_train_subcommand
import warnings from pathlib import Path import pytest from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( # Using a very s...
Path(tmp_path, "checkpoints/snapshot_2.pth").exists()
added
59d8f1cdc038c6bc73d37b3f5cb1db1fc5dc387240cd333477fa0b406541bfed
assert|test_train_subcommand|import warnings from pathlib import Path import pytest from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( # Using a v...
null
null
null
AlignmentResearch/tuned-lens
train
41
874b0659b2b752d6889ec8cff45ec6d68aaa7b51
test
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
67
4
assert
test_train_subcommand
import warnings from pathlib import Path import pytest from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( # Using a very s...
Path(tmp_path, "config.json").exists()
added
237c99f9af35bab0b4ea89445cd4b8fb8d8c8a41c18d9b234efd86cc81b9f648
assert|test_train_subcommand|import warnings from pathlib import Path import pytest from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( # Using a v...
null
null
null
AlignmentResearch/tuned-lens
train
41
874b0659b2b752d6889ec8cff45ec6d68aaa7b51
test
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
68
4
assert
test_train_subcommand
import warnings from pathlib import Path import pytest from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( # Using a very s...
Path(tmp_path, "params.pt").exists()
added
91db0bd677a6b690898c0016a137379ed90fd16d535728638c52c981ff94c754
assert|test_train_subcommand|import warnings from pathlib import Path import pytest from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( # Using a v...
null
null
null
AlignmentResearch/tuned-lens
train
41
874b0659b2b752d6889ec8cff45ec6d68aaa7b51
test
tests/scripts/test_integration.py
train
AlignmentResearch/tuned-lens:tests/scripts/test_integration.py
85
9
pytest.raises
test_train_subcommand_fails_when_not_enough_data_given
import warnings from pathlib import Path import pytest from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are using the logit lens args = ( # Using a very s...
ValueError, match="Can only take")
added
185318a2dd720039ac6093f174fd764d5440a926e7269cae1a424020138a8c90
pytest.raises|test_train_subcommand_fails_when_not_enough_data_given|import warnings from pathlib import Path import pytest from tuned_lens.__main__ import main def test_eval_subcommand( text_dataset_path: Path, gpt2_tiny_random_model_local_path: Path, tmp_path: Path ): # Note we do not specify a lens here, so we are u...
null
null
null
AlignmentResearch/tuned-lens
train
41
874b0659b2b752d6889ec8cff45ec6d68aaa7b51
test
tests/test_data.py
train
AlignmentResearch/tuned-lens:tests/test_data.py
22
8
assert
test_chunk_and_tokenize
import math import transformers as tr from datasets import Dataset from tuned_lens import data def test_chunk_and_tokenize( text_dataset: Dataset, small_model_tokenizer: tr.PreTrainedTokenizerBase ): max_seq_len = 128 chunked, _ = data.chunk_and_tokenize( text_dataset, small_model_tokeni...
length
added
e133b8b5b393cc6bfffdd2ec238cfac6766643233e5c1972a031efa92a88ec06
assert|test_chunk_and_tokenize|import math import transformers as tr from datasets import Dataset from tuned_lens import data def test_chunk_and_tokenize( text_dataset: Dataset, small_model_tokenizer: tr.PreTrainedTokenizerBase ): max_seq_len = 128 chunked, _ = data.chunk_and_tokenize( text_dataset, small_model_tokeniz...
null
null
null
AlignmentResearch/tuned-lens
train
41
874b0659b2b752d6889ec8cff45ec6d68aaa7b51
test
tests/test_data.py
train
AlignmentResearch/tuned-lens:tests/test_data.py
38
8
assert
test_chunk_and_tokenize_slow
import math import transformers as tr from datasets import Dataset from tuned_lens import data def test_chunk_and_tokenize( text_dataset: Dataset, small_model_tokenizer: tr.PreTrainedTokenizerBase ): max_seq_len = 128 chunked, _ = data.chunk_and_tokenize( text_dataset, small_model_tokeni...
length
added
97fd2555f88ab88312b509542d506aa81c5094d40d03eacfa37c0ca83a227e14
assert|test_chunk_and_tokenize_slow|import math import transformers as tr from datasets import Dataset from tuned_lens import data def test_chunk_and_tokenize( text_dataset: Dataset, small_model_tokenizer: tr.PreTrainedTokenizerBase ): max_seq_len = 128 chunked, _ = data.chunk_and_tokenize( text_dataset, small_model_to...
null
null
null
AlignmentResearch/tuned-lens
train
41
874b0659b2b752d6889ec8cff45ec6d68aaa7b51
test
tests/test_data.py
train
AlignmentResearch/tuned-lens:tests/test_data.py
50
4
assert
test_compute_nats_to_bpb_ratio
import math import transformers as tr from datasets import Dataset from tuned_lens import data def test_chunk_and_tokenize( text_dataset: Dataset, small_model_tokenizer: tr.PreTrainedTokenizerBase ): max_seq_len = 128 chunked, _ = data.chunk_and_tokenize( text_dataset, small_model_tokeni...
ratio
added
46a8d861bf1f13c0b694e7faf24e18818f29df19c0ab60427c25d2f6febb5d95
assert|test_compute_nats_to_bpb_ratio|import math import transformers as tr from datasets import Dataset from tuned_lens import data def test_chunk_and_tokenize( text_dataset: Dataset, small_model_tokenizer: tr.PreTrainedTokenizerBase ): max_seq_len = 128 chunked, _ = data.chunk_and_tokenize( text_dataset, small_model_...
null
null
null
AlignmentResearch/tuned-lens
train
42
550644a07ed193007d006797b1ffe15d0a5c0cd2
test
tests/conftest.py
train
AlignmentResearch/tuned-lens:tests/conftest.py
101
4
assert
from pathlib import Path import pytest import torch as th import transformers as tr from datasets import Dataset @pytest.fixture(scope="module") def text_dataset_path() -> Path: dir_path = Path(__file__).parent.absolute() return Path(dir_path, "test_data", "pile_text.jsonl") @pytest.fixture(scope="module")...
isinstance(model, tr.PreTrainedModel)
added
6cb58b4b17f79d3747bef6eea9b1f32e9b7223871762886d094bcdaad1ab3b0d
assert||from pathlib import Path import pytest import torch as th import transformers as tr from datasets import Dataset @pytest.fixture(scope="module") def text_dataset_path() -> Path: dir_path = Path(__file__).parent.absolute() return Path(dir_path, "test_data", "pile_text.jsonl") @pytest.fixture(scope="module") def ...
null
null
null
AlignmentResearch/tuned-lens
train
42
550644a07ed193007d006797b1ffe15d0a5c0cd2
test
tests/test_model_surgery.py
val
AlignmentResearch/tuned-lens:tests/test_model_surgery.py
10
9
pytest.raises
test_get_final_layer_norm_raises
import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(
ValueError)
modified
aec2432971145d121bcaaf5386ef9ec3f2d647a12f5ebb1a80190f45f2fc9c35
pytest.raises|test_get_final_layer_norm_raises|import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(
ValueError)
10
9
AlignmentResearch/tuned-lens
train
42
550644a07ed193007d006797b1ffe15d0a5c0cd2
test
tests/test_model_surgery.py
val
AlignmentResearch/tuned-lens:tests/test_model_surgery.py
11
8
assert
test_get_final_layer_norm_raises
import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(ValueError): assert
model_surgery.get_final_norm(opt_random_model)
modified
747de353f888b3406cead9b030d3f2525063d89c21c9b27a469289326a4e899c
assert|test_get_final_layer_norm_raises|import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(ValueError): asse...
model_surgery.get_final_norm(opt_random_model)
11
8
AlignmentResearch/tuned-lens
train
42
550644a07ed193007d006797b1ffe15d0a5c0cd2
test
tests/test_model_surgery.py
val
AlignmentResearch/tuned-lens:tests/test_model_surgery.py
16
4
assert
test_get_final_layer_norm
import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(ValueError): assert model_surgery.get_...
any(isinstance(ln, Norm) for Norm in model_surgery.Norm.__args__)
added
60422a630d4a208793a99193d10ff1ca3bceaa27cce33e3cdefa38c5ad0565b5
assert|test_get_final_layer_norm|import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(ValueError): assert mode...
null
null
null
AlignmentResearch/tuned-lens
train
42
550644a07ed193007d006797b1ffe15d0a5c0cd2
test
tests/test_model_surgery.py
val
AlignmentResearch/tuned-lens:tests/test_model_surgery.py
21
4
assert
test_get_layers_from_model
import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(ValueError): assert model_surgery.get_...
isinstance(layers, th.nn.ModuleList)
added
b6635e0338b97aca76788e427a857207bc255dd32ba2b43b71d42ce38e6bafa3
assert|test_get_layers_from_model|import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(ValueError): assert mod...
null
null
null
AlignmentResearch/tuned-lens
train
42
550644a07ed193007d006797b1ffe15d0a5c0cd2
test
tests/test_model_surgery.py
val
AlignmentResearch/tuned-lens:tests/test_model_surgery.py
22
4
assert
test_get_layers_from_model
import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(ValueError): assert model_surgery.get_...
isinstance(path, str)
added
317c967e6814dbef8a11afa82a885182e847373926cbd1ff8ff7562f40b25c0c
assert|test_get_layers_from_model|import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(ValueError): assert mod...
null
null
null
AlignmentResearch/tuned-lens
train
42
550644a07ed193007d006797b1ffe15d0a5c0cd2
test
tests/test_model_surgery.py
val
AlignmentResearch/tuned-lens:tests/test_model_surgery.py
23
4
assert
test_get_layers_from_model
import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(ValueError): assert model_surgery.get_...
random_small_model.config.num_hidden_layers
added
c2fba3d1934045936a6d9f620693284d7b4aca0df5d50b6b171dcbaadab0f950
assert|test_get_layers_from_model|import pytest import torch as th from transformers import PreTrainedModel from tuned_lens import model_surgery def test_get_final_layer_norm_raises(opt_random_model: PreTrainedModel): opt_random_model.base_model.decoder.final_layer_norm = None with pytest.raises(ValueError): assert mod...
null
null
null
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
226
13
pytest.raises
test_not_a_subclass
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
RenderableError, match="'Foo' is not a subclass")
modified
070756621ac3541f51f4f3b6675760f58a332e0ac730f4aeb6874613bc9f69ce
pytest.raises|test_not_a_subclass|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, ...
RenderableError, match="'Foo' is not a subclass")
225
13
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
233
12
assert
test_base
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
Renderable.__dict__
modified
13e4db6c9eee62e50b4dad6b8fca67fda2d141f7f08818dbe437d7758ea3d3a1
assert|test_base|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from ...
Renderable.__dict__
232
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
234
12
assert
test_base
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
isinstance(Renderable._ALL_DEFAULT_ARGS, MappingProxyType)
modified
cd3bee772389ce1d2949388f2699ceaab7af0a69bac90fc8b8329d7fb6e6de90
assert|test_base|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from ...
isinstance(Renderable._ALL_DEFAULT_ARGS, MappingProxyType)
233
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
235
12
assert
test_base
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
{}
modified
ccd13c643442a73ed2ad2afc92f8ef0d93a9e35cab0dfebc4c87307f13a0a6ee
assert|test_base|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from ...
{}
234
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
238
17
pytest.raises
test_invalid_type
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
TypeError, match="'Foo.Args'")
modified
9c68b2b6d5b88e78941c63f896168684c5aa55d473f5f8b95c7f1d42744b9dab
pytest.raises|test_invalid_type|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SH...
TypeError, match="'Foo.Args'")
237
17
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
244
17
pytest.raises
test_not_a_subclass
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
RenderableError, match="'Foo.Args' .* subclass of 'RenderArgs.Namespace'")
modified
f3f7615f18586ad5458dc166e9b18d23522c469ff1c8c128cc601d8d62f89ad3
pytest.raises|test_not_a_subclass|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, ...
RenderableError, match="'Foo.Args' .* subclass of 'RenderArgs.Namespace'")
243
17
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
258
17
pytest.raises
test_already_associated
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
RenderableError, match="'Bar.Args' .* associated with .* 'Foo'")
modified
4dc5187fc7a2a43a1e9490de4da6fd978b11e261631fc70d42e498c520f88e1b
pytest.raises|test_already_associated|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURS...
RenderableError, match="'Bar.Args' .* associated with .* 'Foo'")
257
17
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
270
12
assert
test_no_args
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
None
modified
638abd334047641df977e43702e42a599e358cc0798dab296780ccfa8badf964
assert|test_no_args|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR fr...
None
269
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
271
12
assert
test_no_args
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
Foo.__dict__
modified
fce4414ccf15f1f0478fd46ffa7fde9415a192a2b22280be23be4f2a759efeaf
assert|test_no_args|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR fr...
Foo.__dict__
270
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
272
12
assert
test_no_args
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
isinstance(Foo._ALL_DEFAULT_ARGS, MappingProxyType)
modified
c5a62a48cdab93d006a9ddec4b667c1e9180b979b8f4c074468eef2f04056de2
assert|test_no_args|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR fr...
isinstance(Foo._ALL_DEFAULT_ARGS, MappingProxyType)
271
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
273
12
assert
test_no_args
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
Renderable._ALL_DEFAULT_ARGS
modified
7fc167f39a60b9cd7813325f904ebcea2196015d66e6d8eb0e8d6b669b471617
assert|test_no_args|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR fr...
Renderable._ALL_DEFAULT_ARGS
272
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
279
12
assert
test_args_none
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
None
modified
4661c98cf4d400f2ae2a3c46e84da368b42bbe8e9465044f6e96f8ba35b2e622
assert|test_args_none|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR ...
None
278
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
280
12
assert
test_args_none
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
Foo.__dict__
modified
ea355b7373036f4be1e1fe6f16f8262624ae702eca68feca29313beaf1fb620c
assert|test_args_none|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR ...
Foo.__dict__
279
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
281
12
assert
test_args_none
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
isinstance(Foo._ALL_DEFAULT_ARGS, MappingProxyType)
modified
966c540005ce16e1f2f0ad6d790c964fb1ac866792b8686f84a01dbbe264159d
assert|test_args_none|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR ...
isinstance(Foo._ALL_DEFAULT_ARGS, MappingProxyType)
280
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
282
12
assert
test_args_none
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
Renderable._ALL_DEFAULT_ARGS
modified
42754c0a13711c376ce6967356d6486b74c584f9d6fd9bdf01b834dc98172e3c
assert|test_args_none|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR ...
Renderable._ALL_DEFAULT_ARGS
281
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
290
12
assert
test_has_args
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
Args
modified
9725ec06aa7a08ac26396a75abec4ee98f5ef673b90a68b6f288d6c588b0bf78
assert|test_has_args|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR f...
Args
289
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
291
12
assert
test_has_args
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
Foo.__dict__
modified
0db679f4aec27597cdf89267db959a740c4cd73368aec8e294ae2d0211aa0e8f
assert|test_has_args|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR f...
Foo.__dict__
290
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
292
12
assert
test_has_args
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
isinstance(Foo._ALL_DEFAULT_ARGS, MappingProxyType)
modified
6cd6defb6f69035499ec118652d09278921afbbd7ff8ef5586cd17897819887e
assert|test_has_args|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR f...
isinstance(Foo._ALL_DEFAULT_ARGS, MappingProxyType)
291
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
293
12
assert
test_has_args
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
{ **Renderable._ALL_DEFAULT_ARGS, Foo: Foo.Args(), }
modified
cdeba480c7293e0ffbeed7c64f17290a2fe3f49b215e6620ab49ab318ce20b61
assert|test_has_args|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR f...
{ **Renderable._ALL_DEFAULT_ARGS, Foo: Foo.Args(), }
292
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
302
12
assert
test_association
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
None
modified
5d1c091fc638d146cfb3ba7533f6393cd02f2ee824c87f87f4225ec699130f00
assert|test_association|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSO...
None
301
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
305
12
assert
test_association
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
Foo
modified
76cffa605ff333b8c63abfe6edbaaf9c99c9fee4123366a30cba482f3f0b5699
assert|test_association|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSO...
Foo
304
12
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
316
16
assert
test_child_with_no_args
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
{ **Renderable._ALL_DEFAULT_ARGS, self.A: self.A.Args(), }
modified
4d8570973c8cd201d868320364c22599a012ea21ab7f730f3fe8b23fe4b1460c
assert|test_child_with_no_args|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHO...
{ **Renderable._ALL_DEFAULT_ARGS, self.A: self.A.Args(), }
315
16
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
329
16
assert
test_parent_with_no_args
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
{ **Renderable._ALL_DEFAULT_ARGS, C: C.Args(), }
modified
3b6b982380e6e4b1b75409a4da3b4348f5f0c3e63781be4e8e4f99c2ed3a5917
assert|test_parent_with_no_args|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SH...
{ **Renderable._ALL_DEFAULT_ARGS, C: C.Args(), }
328
16
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
339
16
assert
test_multi_level
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
{ **Renderable._ALL_DEFAULT_ARGS, self.A: self.A.Args(), B: B.Args(), }
modified
84e43331a4bb60581b72e6c4967915232ab379e168e1e33fe30c489e98b06d55
assert|test_multi_level|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSO...
{ **Renderable._ALL_DEFAULT_ARGS, self.A: self.A.Args(), B: B.Args(), }
338
16
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
349
16
assert
test_multi_level
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
{ **Renderable._ALL_DEFAULT_ARGS, self.A: self.A.Args(), B: B.Args(), C: C.Args(), }
modified
27981f47eba79ddbd9c065b567da0febb2ccd3987a662ef7fbfc62a983d9ae52
assert|test_multi_level|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSO...
{ **Renderable._ALL_DEFAULT_ARGS, self.A: self.A.Args(), B: B.Args(), C: C.Args(), }
348
16
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
365
16
assert
test_multiple
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
{ **Renderable._ALL_DEFAULT_ARGS, self.A: self.A.Args(), B: B.Args(), C: C.Args(), }
modified
57eb851a5f443175015509bf93973863e6d911171d8bcaacff81329923bb8876
assert|test_multiple|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR f...
{ **Renderable._ALL_DEFAULT_ARGS, self.A: self.A.Args(), B: B.Args(), C: C.Args(), }
364
16
AnonymouX47/term-image
train
120
b21a2fa852cb99ff8d3ac5850e57346b7f66920c
val
tests/renderable/test_renderable.py
train
AnonymouX47/term-image:tests/renderable/test_renderable.py
393
16
assert
test_complex
from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR from term_image.geo...
{ **Renderable._ALL_DEFAULT_ARGS, self.A: self.A.Args(), B: B.Args(), C: C.Args(), D: D.Args(), E: E.Args(), F: F.Args(), }
modified
270b641759e026418199c29dbb010fc1d669bcb6f40a8ba1ffc560a065a2b7e0
assert|test_complex|from __future__ import annotations import atexit import io import sys from contextlib import contextmanager from tempfile import TemporaryFile from types import MappingProxyType, SimpleNamespace from typing import Any, Iterator import pytest from term_image.ctlseqs import HIDE_CURSOR, SHOW_CURSOR fr...
{ **Renderable._ALL_DEFAULT_ARGS, self.A: self.A.Args(), B: B.Args(), C: C.Args(), D: D.Args(), E: E.Args(), F: F.Args(), }
392
16