erikjm commited on
Commit
147d9f3
·
verified ·
1 Parent(s): ee1542d

Move the notebook and its scripts into the formality_gsm8k folder

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. formality-gsm8k-grid/README.md +4 -4
README.md CHANGED
@@ -13,4 +13,4 @@ Recorded data of the optimization experiments of the [Steerability toolkit](http
13
 
14
  | Folder | Contents | Read by |
15
  |---|---|---|
16
- | [`formality-gsm8k-grid/`](./formality-gsm8k-grid/README.md) | Per-item scores of `Qwen/Qwen2.5-0.5B-Instruct` under one CAA formality vector at 10 layers and 10 multipliers, and of the unsteered model, on GSM8K and a formality objective | `examples/notebooks/optimization/formality_gsm8k.ipynb` |
 
13
 
14
  | Folder | Contents | Read by |
15
  |---|---|---|
16
+ | [`formality-gsm8k-grid/`](./formality-gsm8k-grid/README.md) | Per-item scores of `Qwen/Qwen2.5-0.5B-Instruct` under one CAA formality vector at 10 layers and 10 multipliers, and of the unsteered model, on GSM8K and a formality objective | `examples/notebooks/optimization/formality_gsm8k/formality_gsm8k.ipynb` |
formality-gsm8k-grid/README.md CHANGED
@@ -20,9 +20,9 @@ A measurement has one entry per item, in the order of `items`. Its lists are `va
20
  - Settings: layers 6, 8, 10, 12, 14, 16, 18, 20, 22, 23 and multipliers 0.5, 1, 1.5, 2, 3, 4, 5, 6, 8, 10. The unsteered model was measured twice.
21
  - Commands: the settings were divided into eight shards, and shard 7 also measured the unsteered model (the other shards passed `--skip-baseline`). GSM8K and the formality objective were measured in separate passes over the shards. The GSM8K pass ran an earlier revision of `truth_grid.py` that measured GSM8K only, under the same protocol.
22
 
23
- python examples/notebooks/optimization/scripts/truth_grid.py collect runs/truth_grid/shard_<i> --shard <i> --shards 8 --benchmarks gsm8k --skip-baseline
24
- python examples/notebooks/optimization/scripts/truth_grid.py collect runs/truth_grid/shard_<i> --shard <i> --shards 8 --benchmarks formality --skip-baseline
25
- python examples/notebooks/optimization/scripts/replay.py export runs/truth_grid/shard_{0..7} --output grid.json
26
 
27
  - Cost: about 21 GPU-hours on NVIDIA A100 GPUs (about 19 for GSM8K and 2 for the formality objective).
28
 
@@ -37,4 +37,4 @@ A measurement has one entry per item, in the order of `items`. Its lists are `va
37
  revision="<a commit of this repository>",
38
  )
39
 
40
- Pin a commit, as the notebook does. `replay.load_export(path)` in the toolkit's `examples/notebooks/optimization/scripts/replay.py` reads the file.
 
20
  - Settings: layers 6, 8, 10, 12, 14, 16, 18, 20, 22, 23 and multipliers 0.5, 1, 1.5, 2, 3, 4, 5, 6, 8, 10. The unsteered model was measured twice.
21
  - Commands: the settings were divided into eight shards, and shard 7 also measured the unsteered model (the other shards passed `--skip-baseline`). GSM8K and the formality objective were measured in separate passes over the shards. The GSM8K pass ran an earlier revision of `truth_grid.py` that measured GSM8K only, under the same protocol.
22
 
23
+ python examples/notebooks/optimization/formality_gsm8k/scripts/truth_grid.py collect runs/truth_grid/shard_<i> --shard <i> --shards 8 --benchmarks gsm8k --skip-baseline
24
+ python examples/notebooks/optimization/formality_gsm8k/scripts/truth_grid.py collect runs/truth_grid/shard_<i> --shard <i> --shards 8 --benchmarks formality --skip-baseline
25
+ python examples/notebooks/optimization/formality_gsm8k/scripts/replay.py export runs/truth_grid/shard_{0..7} --output grid.json
26
 
27
  - Cost: about 21 GPU-hours on NVIDIA A100 GPUs (about 19 for GSM8K and 2 for the formality objective).
28
 
 
37
  revision="<a commit of this repository>",
38
  )
39
 
40
+ Pin a commit, as the notebook does. `replay.load_export(path)` in the toolkit's `examples/notebooks/optimization/formality_gsm8k/scripts/replay.py` reads the file.