Views
No views yet
wjazzd_split.json),
held out from both training (gradient steps) and best-checkpoint selection:| combined ppl | pitch top1 | pitch top3 | pitch top5 | duration top1 | duration top3 | |
|---|---|---|---|---|---|---|
paper-default/ (this run) | 46.60 | 32.25% | 52.39% | 67.96% | 43.55% | 75.76% |
| Madaghiele 2021 (paper retrain) | 44.70 | — | — | — | — | — |
split.json[eval]=43):| combined ppl | pitch top1 | duration top1 | |
|---|---|---|---|
paper-default/ | 45.89 | 33.81% | 40.04% |
paper-default/
├── model.pt # final weights (step 500_000)
├── model_best.pt # best by val_loss — used for inference + final test eval
├── model_best_p_acc.pt # best by pitch top-1 accuracy
├── model_best_d_acc.pt # best by duration top-1 accuracy
├── args.json # model architecture (passed to MemTransformerLM)
├── converter_and_duration.pkl # vocabulary; required to load any of the .pt
├── train_model.yml # exact training config used
├── optimizer.pt # Ranger optimizer state (resume only)
└── train_state.json # resume metadata: train_step, best_val_loss, ...model_best.pt is what GeneratorBebopnet and BebopNet's authorial
generate_from_xml.py expect to load. The *_best_*_acc.pt variants are
saved by author's train.py automatically (different selection criteria) —
kept for completeness.MemTransformerLM). 4 layers / 8 heads /
d_model=400 / d_inner=1028 / mem_len=64 / tgt_len=64.chord_bias flag.wjazzd_split_prep.py:
split.json[train] (344 files) → train.pkl (gradient steps)split.json[eval] (43) → val.pkl (best-checkpoint selection)split.json[test] (40) → test_canonical/ (post-train evaluate only)1pip install -U huggingface_hub
2
3# Final / best weights for inference
4hf download maxkudryashov/bebopnet-1 \
5 paper-default/model_best.pt \
6 paper-default/converter_and_duration.pkl \
7 paper-default/args.json \
8 paper-default/train_model.yml \
9 --local-dir result
10
11# Resume checkpoints (optional — only if continuing training)
12hf download maxkudryashov/bebopnet-1 \
13 paper-default/optimizer.pt \
14 paper-default/train_state.json \
15 paper-default/model.pt \
16 --local-dir resultmodels/bebopnet-code/training/colab_train.ipynb
in our BebopNet fork. Notebook is idempotent: rerunning resumes from the
last train_state.json checkpoint via --restart --restart_dir <work_dir>.