This view is limited to 50 files because it contains too many changes.  See the raw diff here.
Files changed (50) hide show
  1. .dockerignore +0 -2
  2. .gitattributes +0 -1
  3. Dockerfile +0 -25
  4. README.md +4 -1
  5. __pycache__/app.cpython-310.pyc +0 -0
  6. app.py +19 -24
  7. lens/CarperAI/stable-vicuna-13b/config.json +0 -1
  8. lens/EleutherAI/gpt-neox-20b/config.json +0 -1
  9. lens/EleutherAI/pythia-1.4b-deduped-v0/config.json +0 -1
  10. lens/EleutherAI/pythia-1.4b-deduped/config.json +0 -1
  11. lens/EleutherAI/pythia-12b-deduped-v0/config.json +0 -1
  12. lens/EleutherAI/pythia-12b-deduped-v0/params.pt +0 -3
  13. lens/EleutherAI/pythia-12b-deduped/config.json +0 -1
  14. lens/EleutherAI/pythia-12b-deduped/params.pt +0 -3
  15. lens/EleutherAI/pythia-160m-deduped-v0/config.json +0 -1
  16. lens/EleutherAI/pythia-160m-deduped/config.json +0 -1
  17. lens/EleutherAI/pythia-1b-deduped-v0/config.json +0 -1
  18. lens/EleutherAI/pythia-1b-deduped-v0/params.pt +0 -3
  19. lens/EleutherAI/pythia-2.8b-deduped-v0/config.json +0 -1
  20. lens/EleutherAI/pythia-2.8b-deduped-v0/params.pt +0 -3
  21. lens/EleutherAI/pythia-2.8b-deduped/config.json +0 -1
  22. lens/EleutherAI/pythia-2.8b-deduped/params.pt +0 -3
  23. lens/EleutherAI/pythia-410m-deduped-v0/config.json +0 -1
  24. lens/EleutherAI/pythia-410m-deduped-v0/params.pt +0 -3
  25. lens/EleutherAI/pythia-410m-deduped/config.json +0 -1
  26. lens/EleutherAI/pythia-410m-deduped/params.pt +0 -3
  27. lens/EleutherAI/pythia-6.9b-deduped-v0/config.json +0 -1
  28. lens/EleutherAI/pythia-6.9b-deduped-v0/params.pt +0 -3
  29. lens/EleutherAI/pythia-6.9b-deduped/config.json +0 -1
  30. lens/EleutherAI/pythia-6.9b-deduped/params.pt +0 -3
  31. lens/EleutherAI/pythia-70m-deduped-v0/config.json +0 -1
  32. lens/EleutherAI/pythia-70m-deduped-v0/params.pt +0 -3
  33. lens/EleutherAI/pythia-70m-deduped/config.json +0 -1
  34. lens/EleutherAI/pythia-70m-deduped/params.pt +0 -3
  35. lens/facebook/llama-13b/config.json +0 -1
  36. lens/facebook/llama-13b/params.pt +0 -3
  37. lens/facebook/llama-30b/config.json +0 -1
  38. lens/facebook/llama-30b/params.pt +0 -3
  39. lens/facebook/llama-65b/config.json +0 -1
  40. lens/facebook/llama-65b/params.pt +0 -3
  41. lens/facebook/llama-7b/config.json +0 -1
  42. lens/facebook/llama-7b/params.pt +0 -3
  43. lens/facebook/opt-1.3b/config.json +0 -1
  44. lens/facebook/opt-1.3b/params.pt +0 -3
  45. lens/facebook/opt-125m/config.json +0 -1
  46. lens/facebook/opt-125m/params.pt +0 -3
  47. lens/facebook/opt-6.7b/config.json +0 -1
  48. lens/facebook/opt-6.7b/params.pt +0 -3
  49. lens/gpt-neox-20b/config.json +1 -0
  50. lens/{EleutherAI/gpt-neox-20b → gpt-neox-20b}/params.pt +2 -2
.dockerignore DELETED
@@ -1,2 +0,0 @@
1
- lens
2
- .git
 
 
 
.gitattributes CHANGED
@@ -32,4 +32,3 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
- *.pyc filter=lfs diff=lfs merge=lfs -text
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
Dockerfile DELETED
@@ -1,25 +0,0 @@
1
- FROM python:3.9
2
-
3
- WORKDIR /code
4
-
5
- COPY ./requirements.txt /code/requirements.txt
6
-
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
-
9
- # Set up a new user named "user" with user ID 1000
10
- RUN useradd -m -u 1000 user
11
-
12
- # Switch to the "user" user
13
- USER user
14
-
15
- # Set home to the user's home directory
16
- ENV HOME=/home/user \
17
- PATH=/home/user/.local/bin:$PATH
18
-
19
- # Set the working directory to the user's home directory
20
- WORKDIR $HOME/app
21
-
22
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
23
- COPY --chown=user . $HOME/app
24
-
25
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -3,7 +3,10 @@ title: Tuned Lens
3
  emoji: 🔎
4
  colorFrom: pink
5
  colorTo: blue
6
- sdk: docker
 
 
 
7
  pinned: false
8
  license: mit
9
  ---
 
3
  emoji: 🔎
4
  colorFrom: pink
5
  colorTo: blue
6
+ sdk: gradio
7
+ python_version: 3.10.2
8
+ sdk_version: 3.20.0
9
+ app_file: app.py
10
  pinned: false
11
  license: mit
12
  ---
__pycache__/app.cpython-310.pyc ADDED
Binary file (3.92 kB). View file
 
app.py CHANGED
@@ -1,20 +1,17 @@
1
  import torch
2
  from tuned_lens.nn.lenses import TunedLens, LogitLens
3
  from transformers import AutoModelForCausalLM, AutoTokenizer
4
- from tuned_lens.plotting import PredictionTrajectory
5
  import gradio as gr
6
  from plotly import graph_objects as go
7
 
8
  device = torch.device("cpu")
9
  print(f"Using device {device} for inference")
10
- model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-410m-deduped")
11
  model = model.to(device)
12
- tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-410m-deduped")
13
- tuned_lens = TunedLens.from_model_and_pretrained(
14
- model=model,
15
- map_location=device,
16
- )
17
- logit_lens = LogitLens.from_model(model)
18
 
19
  lens_options_dict = {
20
  "Tuned Lens": tuned_lens,
@@ -23,35 +20,32 @@ lens_options_dict = {
23
 
24
  statistic_options_dict = {
25
  "Entropy": "entropy",
26
- "Cross Entropy": "cross_entropy",
27
  "Forward KL": "forward_kl",
28
  }
29
 
30
 
31
  def make_plot(lens, text, statistic, token_cutoff):
32
- input_ids = tokenizer.encode(text)
33
- input_ids = [tokenizer.bos_token_id] + input_ids
34
- targets = input_ids[1:] + [tokenizer.eos_token_id]
35
 
36
- if len(input_ids) == 1:
37
  return go.Figure(layout=dict(title="Please enter some text."))
38
 
39
  if token_cutoff < 1:
40
  return go.Figure(layout=dict(title="Please provide valid token cut off."))
41
 
42
- start_pos=max(len(input_ids) - token_cutoff, 0)
43
- pred_traj = PredictionTrajectory.from_lens_and_model(
44
- lens=lens_options_dict[lens],
45
- model=model,
 
46
  input_ids=input_ids,
47
- tokenizer=tokenizer,
48
- targets=targets,
49
- start_pos=start_pos,
50
  )
51
 
52
- return getattr(pred_traj, statistic_options_dict[statistic])().figure(
53
- title=f"{lens} ({model.name_or_path}) {statistic}",
54
- )
55
 
56
  preamble = """
57
  # The Tuned Lens 🔎
@@ -114,4 +108,5 @@ with gr.Blocks() as demo:
114
  demo.load(make_plot, [lens_options, text, statistic, token_cutoff], plot)
115
 
116
  if __name__ == "__main__":
117
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
 
1
  import torch
2
  from tuned_lens.nn.lenses import TunedLens, LogitLens
3
  from transformers import AutoModelForCausalLM, AutoTokenizer
4
+ from tuned_lens.plotting import plot_lens
5
  import gradio as gr
6
  from plotly import graph_objects as go
7
 
8
  device = torch.device("cpu")
9
  print(f"Using device {device} for inference")
10
+ model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-410m-deduped-v0")
11
  model = model.to(device)
12
+ tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-410m-deduped-v0")
13
+ tuned_lens = TunedLens.load("pythia-410m-deduped-v0", map_location=device)
14
+ logit_lens = LogitLens(model)
 
 
 
15
 
16
  lens_options_dict = {
17
  "Tuned Lens": tuned_lens,
 
20
 
21
  statistic_options_dict = {
22
  "Entropy": "entropy",
23
+ "Cross Entropy": "ce",
24
  "Forward KL": "forward_kl",
25
  }
26
 
27
 
28
  def make_plot(lens, text, statistic, token_cutoff):
29
+ input_ids = tokenizer.encode(text, return_tensors="pt")
 
 
30
 
31
+ if len(input_ids[0]) == 0:
32
  return go.Figure(layout=dict(title="Please enter some text."))
33
 
34
  if token_cutoff < 1:
35
  return go.Figure(layout=dict(title="Please provide valid token cut off."))
36
 
37
+ fig = plot_lens(
38
+ model,
39
+ tokenizer,
40
+ lens_options_dict[lens],
41
+ layer_stride=2,
42
  input_ids=input_ids,
43
+ start_pos=max(len(input_ids[0]) - token_cutoff, 0),
44
+ statistic=statistic_options_dict[statistic],
 
45
  )
46
 
47
+ return fig
48
+
 
49
 
50
  preamble = """
51
  # The Tuned Lens 🔎
 
108
  demo.load(make_plot, [lens_options, text, statistic, token_cutoff], plot)
109
 
110
  if __name__ == "__main__":
111
+ demo.launch()
112
+
lens/CarperAI/stable-vicuna-13b/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "vicuna-13b", "d_model": 5120, "num_hidden_layers": 40, "bias": true, "base_model_revision": null, "unembed_hash": "270c781d8280754a30abaf6fc186b1d754cc5d6bb17173d572d5517d5c7c702c", "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/gpt-neox-20b/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/gpt-neox-20b", "d_model": 6144, "num_hidden_layers": 44, "bias": true, "base_model_revision": "4e49eadb5d14bd22f314ec3f45b69a87b88c7691", "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-1.4b-deduped-v0/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-1.4b-deduped-v0", "d_model": 2048, "num_hidden_layers": 24, "bias": true, "base_model_revision": "b541e01fddacd3038799915cf8ff5b52e835a6c4", "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-1.4b-deduped/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-1.4b-deduped", "d_model": 2048, "num_hidden_layers": 24, "bias": true, "base_model_revision": null, "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-12b-deduped-v0/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-12b-deduped-v0", "d_model": 5120, "num_hidden_layers": 36, "bias": true, "base_model_revision": "b497662035bf3c80b4f6a1ddfe09bc27763e843a", "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-12b-deduped-v0/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a9e34c28c900b7230afe7ae1dc99b58b82c22b3265de2cbf939e3946cdcec126
3
- size 3775627331
 
 
 
 
lens/EleutherAI/pythia-12b-deduped/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-12b-deduped", "d_model": 5120, "num_hidden_layers": 36, "bias": true, "base_model_revision": null, "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-12b-deduped/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8452947780e3caf7009a752d62f1a2d71c66f67b3855c7e409869b7e633db40e
3
- size 3775628355
 
 
 
 
lens/EleutherAI/pythia-160m-deduped-v0/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-160m-deduped-v0", "d_model": 768, "num_hidden_layers": 12, "bias": true, "base_model_revision": "7e57cc978f5da949f028f36b5baf8f5d6c3281b1", "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-160m-deduped/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-160m-deduped", "d_model": 768, "num_hidden_layers": 12, "bias": true, "base_model_revision": null, "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-1b-deduped-v0/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-1b-deduped-v0", "d_model": 2048, "num_hidden_layers": 16, "bias": true, "base_model_revision": "021f79f50ff000ae1c159e22402ffec62284664d", "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-1b-deduped-v0/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e10ed1a0b10251aaf1b7c542f14ad2c7a850103dfdffcd9da3d21e107d779eeb
3
- size 268573731
 
 
 
 
lens/EleutherAI/pythia-2.8b-deduped-v0/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-2.8b-deduped-v0", "d_model": 2560, "num_hidden_layers": 32, "bias": true, "base_model_revision": null, "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-2.8b-deduped-v0/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f7892bd4af71a436aaba3a650ea907c94a077b8f16eb343c9a8762872c73026f
3
- size 839204003
 
 
 
 
lens/EleutherAI/pythia-2.8b-deduped/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-2.8b-deduped", "d_model": 2560, "num_hidden_layers": 32, "bias": true, "base_model_revision": null, "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-2.8b-deduped/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:314d403f2e1b1bf575ab2e851419d3a687c54138bfae5feace3ff00f1a96fd60
3
- size 839204003
 
 
 
 
lens/EleutherAI/pythia-410m-deduped-v0/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-410m-deduped-v0", "d_model": 1024, "num_hidden_layers": 24, "bias": true, "base_model_revision": "3538d3569a7e313e445ad6401c92c6e16777a2da", "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-410m-deduped-v0/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:257a17d052d6bda84f338b1aa22ded8c17c401e1299b64cdab521178708ee7ac
3
- size 100772515
 
 
 
 
lens/EleutherAI/pythia-410m-deduped/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-410m-deduped", "d_model": 1024, "num_hidden_layers": 24, "bias": true, "base_model_revision": null, "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-410m-deduped/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:166ea259b35481e1eb2feba50b5ac4d9a8faed47b0937ede0d7bd6d9830dbc95
3
- size 100773155
 
 
 
 
lens/EleutherAI/pythia-6.9b-deduped-v0/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-6.9b-deduped-v0", "d_model": 4096, "num_hidden_layers": 32, "bias": true, "base_model_revision": "cbd53efc2e56056e3bd0235277b5d0b668a6dfbb", "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-6.9b-deduped-v0/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3c99da7167d4a45a71c2f04c2db4d716a7a63f27406cb8948c9cb9f6c052b91c
3
- size 2148022563
 
 
 
 
lens/EleutherAI/pythia-6.9b-deduped/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-6.9b-deduped", "d_model": 4096, "num_hidden_layers": 32, "bias": true, "base_model_revision": null, "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-6.9b-deduped/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e2d00af6f64631b932b089fac5ca031061e207d51132a0f7433bd7a34fb06da0
3
- size 2148023459
 
 
 
 
lens/EleutherAI/pythia-70m-deduped-v0/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-70m-deduped-v0", "d_model": 512, "num_hidden_layers": 6, "bias": true, "base_model_revision": "ec30f7539a604fcb0b7fbba04fb1eb0110735d29", "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-70m-deduped-v0/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cbfc06e4d8733b1fccd5e1bb9cabd845072abfc8b92902ae1bbcbb2763fbc014
3
- size 6306739
 
 
 
 
lens/EleutherAI/pythia-70m-deduped/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "EleutherAI/pythia-70m-deduped", "d_model": 512, "num_hidden_layers": 6, "bias": true, "base_model_revision": null, "lens_type": "linear_tuned_lens"}
 
 
lens/EleutherAI/pythia-70m-deduped/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c363b641564af68e9f9b73af56015b6b5c5b08caea5880787744eaabfab01343
3
- size 6306803
 
 
 
 
lens/facebook/llama-13b/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "huggyllama/llama-13b", "d_model": 5120, "num_hidden_layers": 40, "bias": true, "base_model_revision": null, "unembed_hash": "86cefdfd94bb3da225b405dd1328136786f6177b03d82f90e5c734d23c47e8ca", "lens_type": "linear_tuned_lens"}
 
 
lens/facebook/llama-13b/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2700859b4335f4e4bdd4040232f594170bb717f8af04f65e5560c49cfb6da122
3
- size 2097581027
 
 
 
 
lens/facebook/llama-30b/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "huggyllama/llama-30b", "d_model": 6656, "num_hidden_layers": 60, "bias": true, "base_model_revision": null, "unembed_hash": "512b41bb8fc0e2b3647a877b5e114ca9503d7c800185b14a8e7ad9e921424367", "lens_type": "linear_tuned_lens"}
 
 
lens/facebook/llama-30b/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:10e781269b476a6de8f4ac12ea3f8b20fe22d3a8ca8cfdf770366a5f4e36c78f
3
- size 5317111487
 
 
 
 
lens/facebook/llama-65b/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "huggyllama/llama-65b", "d_model": 8192, "num_hidden_layers": 80, "bias": true, "base_model_revision": null, "unembed_hash": "8ffc2dbf80dd5c131c4be9e347d090856bef2dbc973433dbd42ca9257b00d5e1", "lens_type": "linear_tuned_lens"}
 
 
lens/facebook/llama-65b/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c9199874796630e1be615b0b34cd48e7f37ed09c6140153cdf6b7c509c45361b
3
- size 10738779199
 
 
 
 
lens/facebook/llama-7b/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "huggyllama/llama-7b", "d_model": 4096, "num_hidden_layers": 32, "bias": true, "base_model_revision": null, "unembed_hash": "7d0c2d720d286bdd706e662ea04f327204090f7d54054b0d5faabbc1b06a72fe", "lens_type": "linear_tuned_lens"}
 
 
lens/facebook/llama-7b/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:02186a08b29e7173ae229218823b65891a7b2f2eadf0e69baf44a9c62b55a7cf
3
- size 1074019491
 
 
 
 
lens/facebook/opt-1.3b/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "facebook/opt-1.3b", "d_model": 2048, "num_hidden_layers": 24, "bias": true, "base_model_revision": "8c7b10754972749675d22364c25c428b29face51", "lens_type": "linear_tuned_lens"}
 
 
lens/facebook/opt-1.3b/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2b5620752d01fcca26f5b7c36ec2b741974b570adfb64bffbd901cdc01dc9df9
3
- size 402860707
 
 
 
 
lens/facebook/opt-125m/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "facebook/opt-125m", "d_model": 768, "num_hidden_layers": 12, "bias": true, "base_model_revision": "3d2b5f275bdf882b8775f902e1bfdb790e2cfc32", "lens_type": "linear_tuned_lens"}
 
 
lens/facebook/opt-125m/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f61d7716618783244f2e7f5d26022df092b80695e9620ccb02c5ffb70f9b1405
3
- size 28353795
 
 
 
 
lens/facebook/opt-6.7b/config.json DELETED
@@ -1 +0,0 @@
1
- {"base_model_name_or_path": "facebook/opt-6.7b", "d_model": 4096, "num_hidden_layers": 32, "bias": true, "base_model_revision": "a45aa65bbeb77c1558bc99bedc6779195462dab0", "lens_type": "linear_tuned_lens"}
 
 
lens/facebook/opt-6.7b/params.pt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:9580fbf6e967c1be832ef415f3f74c0f6ee111637fba253dc5a75216dc305ebb
3
- size 2148022563
 
 
 
 
lens/gpt-neox-20b/config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bias": true, "identity_init": true, "include_input": true, "include_final": false, "orthogonal": false, "rank": null, "sublayers": false, "d_model": 6144, "num_layers": 44, "vocab_size": 50432}
lens/{EleutherAI/gpt-neox-20b → gpt-neox-20b}/params.pt RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e3c0e5911cbdabd33e5a59112eefb4f234a487fac77f830be7fc238ffb72e776
3
- size 6644881483
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:774144e329ee3741d0a7fff85b342f1a996aa24c788c3f741b03df596948a66d
3
+ size 3942186487