Views
No views yet
Salesforce/wikitext wikitext-2-raw-v1 train (chunked at 512
tokens) via the bergson
MAGIC pipeline. This is the exact checkpoint used to generate the
attribution scores published at
EleutherAI/bergson-magic-scores-gpt-2.1from transformers import AutoModelForCausalLM, AutoTokenizer
2model = AutoModelForCausalLM.from_pretrained("EleutherAI/bergson-magic-gpt-2")
3tokenizer = AutoTokenizer.from_pretrained("EleutherAI/bergson-magic-gpt-2")1run_path: runs/gpt2_wikitext
2model: gpt2
3overwrite: true
4
5data:
6 dataset: Salesforce/wikitext
7 subset: wikitext-2-raw-v1
8 split: "train"
9 chunk_length: 512
10
11query:
12 dataset: Salesforce/wikitext
13 subset: wikitext-2-raw-v1
14 split: "test[3:4]"
15 chunk_length: 0
16
17distributed:
18 nproc_per_node: 4
19 nnode: 4
20
21batch_size: 256
22num_epochs: 2
23lr_schedule:
24 lr_scheduler_type: polynomial
25 lr: 0.0008
26 lr_start: 1e-6
27 lr_end: 0.00008
28 warmup_steps: 0.25
29
30subset_strategy: random
31wandb_project: magicexamples/magic/gpt2_wikitext.yaml in the bergson repo.bergson magic examples/magic/gpt2_wikitext.yamlbergson magic step trains the model on the train split via its
own training loop (it must, because MAGIC's attribution scores are
the gradients of query loss with respect to per-example training
weights, computed by back-propagating through training). The final
trained weights end up at the hf_model/ subdirectory of the run
path; that's what was uploaded here.