Views
No views yet
1python3 ./pretrain.py \
2 data_path=data/sudoku-extreme-full \
3 epochs=100 \
4 eval_interval=100 \
5 lr_min_ratio=0.1 \
6 global_batch_size=1152 \
7 lr=3e-4 \
8 puzzle_emb_lr=3e-4 \
9 weight_decay=0.1 \
10 puzzle_emb_weight_decay=0.1 \
11 arch.loss.loss_type=softmax_cross_entropy \
12 arch.L_cycles=8 \
13 arch.halt_max_steps=8 \
14 arch.pos_encodings=learnedevaluate.py typically produces across several max_steps settings, in an easier to read JSON format: evaluate-Sudoku-extreme-full.json.
| Steps | Total | Solved | Solved % | Unsolved | Unsolved % |
|---|---|---|---|---|---|
| 0 | 422,786 | 0 | 0.000% | 422,786 | 100.000% |
| 1 | 422,786 | 262,006 | 61.971% | 160,780 | 38.029% |
| 2 | 422,786 | 373,996 | 88.460% | 48,790 | 11.540% |
| 4 | 422,786 | 399,675 | 94.534% | 23,111 | 5.466% |
| 8 | 422,786 | 411,387 | 97.304% | 11,399 | 2.696% |
| 16 | 422,786 | 417,326 | 98.709% | 5,460 | 1.291% |
| 32 | 422,786 | 420,155 | 99.378% | 2,631 | 0.622% |
| 64 | 422,786 | 421,523 | 99.701% | 1,263 | 0.299% |
| 128 | 422,786 | 422,111 | 99.840% | 675 | 0.160% |
| 256 | 422,786 | 422,412 | 99.912% | 374 | 0.088% |
| 512 | 422,786 | 422,555 | 99.945% | 231 | 0.055% |
| 1024 | 422,786 | 422,619 | 99.961% | 167 | 0.039% |
| 2048 | 422,786 | 422,654 | 99.969% | 132 | 0.031% |
| 4096 | 422,786 | 422,679 | 99.975% | 107 | 0.025% |
| 8192 | 422,786 | 422,690 | 99.977% | 96 | 0.023% |
| 16384 | 422,786 | 422,702 | 99.980% | 84 | 0.020% |
| 32768 | 422,786 | 422,715 | 99.983% | 71 | 0.017% |
| 65536 | 422,786 | 422,718 | 99.984% | 68 | 0.016% |
| 131072 | 422,786 | 422,724 | 99.985% | 62 | 0.015% |
| 262144 | 422,786 | 422,728 | 99.986% | 58 | 0.014% |
| 524288 | 422,786 | 422,732 | 99.987% | 54 | 0.013% |
| 1048576 | 422,786 | 422,734 | 99.988% | 52 | 0.012% |
| 2097152 | 422,786 | 422,739 | 99.989% | 47 | 0.011% |
| 4194304 | 422,786 | 422,741 | 99.989% | 45 | 0.011% |
1HRM_LOCATION="/tmp/hrm" # Or wherever
2CHECKPOINT_LOCATION="/tmp/HRM-checkpoint-sudoku-full" # Or wherever, of course.
3
4git clone https://github.com/sapientinc/HRM "${HRM_LOCATION}"
5# Running this, requires a bunch of configuration. Obviously Sapient has their
6# own README.md, etc. But I've made a docker image that you might be able to
7# use as a guide as well. I'll link it below.
8
9git clone https://huggingface.co/bnsh/HRM-checkpoint-sudoku-full/ "${CHECKPOINT_LOCATION}"
10
11cd "${HRM_LOCATION}"
12python3 ./evaluate.py checkpoint="${CHECKPOINT_LOCATION}/checkpoint" data_path=data/sudoku-extreme-full/| Metric | Value |
|---|---|
| Train Accuracy | 0.98701 |
| Train Exact Accuracy | 0.96367 |
| Train LM Loss | 0.27213 |
| Train Q Continue Loss | 0.13321 |
| Train Q Halt Accuracy | 1.0 |
| Train Q Halt Loss | 0.00632 |
| Train Steps | 1.90995 |
num_params ▁
train/accuracy ▂▁▂▁▁▃▄▄▄▄▅▅▅▆▅▆▇▅▇▆▇▆▇▆▇▇▇▇▇▇██████████
train/count ▁███████████████████████████████████████
train/exact_accuracy ▁▁▂▂▃▄▄▅▅▅▅▆▆▆▆▇▇▇▇▇▇▇▇▇▇█▇█▇███████████
train/lm_loss ██▇▇▇▇▆▆▆▆▅▅▅▅▅▅▅▅▅▄▄▄▅▄▄▄▃▄▄▄▃▃▃▂▁▂▂▁▁▁
train/lr ██████████▇▇▇▆▆▆▆▆▆▆▅▄▄▄▄▄▃▃▃▃▂▂▁▁▁▁▁▁▁▁
train/q_continue_loss ▁▄▃█▃▅▅▆▅▅▅▆▆▆▅▆▅▅▆▆▅▅▅▄▅▅▄▅▅▄▄▄▄▃▃▄▃▃▃▂
train/q_halt_accuracy █▂██▁▄█▅███████████▆████████████████████
train/q_halt_loss ▁▃▇▁▄▆▄▆▂▄▅▄▇▄▇▄▄▃▆▅▇▃▂▆█▇▆█▅▄▄▆▆▅▄▆▇▅▇▆
train/steps █▇▇█▆▅▅▅▄▇▄▃▃▃▃▃▃▂▃▂▃▂▂▂▂▂▂▂▂▂▁▁▁▁▁▁█▁▁▁