Views
No views yet
| detector | mean abs. error (steps) | exact | within 2 | never detected |
|---|---|---|---|---|
| loss curve alone | 0.50 | 2/6 | 4/6 | 2 |
| this model | 0.00 | 6/6 | 6/6 | 0 |
1from flashback.detector import FirstBadStepDetector
2from flashback.sketch import StepSketchIndex
3from huggingface_hub import snapshot_download
4
5det = FirstBadStepDetector.load(snapshot_download("<user>/flashback-first-bad-step"))
6report = det.predict(StepSketchIndex("runs/my-run/sketch", mode="r"))
7print(report.first_bad_step, report.confidence, report.top_metrics)1from flashback.integrations import FlashbackCallback
2trainer = Trainer(..., callbacks=[FlashbackCallback("runs/my-run")])1{
2 "win": 32,
3 "gap": 1,
4 "mode": "diff",
5 "k_cal": 8.0,
6 "k_min": 8.0,
7 "min_votes": 3,
8 "vote_window": 2,
9 "exclude": [
10 "lr",
11 "step_wall_ms",
12 "batch_id_mean",
13 "batch_uniq_frac"
14 ],
15 "use_logistic": true,
16 "logistic_threshold": 0.5,
17 "version": "1"
18}| feature | weight |
|---|---|
bias | -9.8951 |
log1p_max_z | +0.1471 |
log1p_top5_mean_z | +0.1950 |
frac_metrics_firing | +18.4084 |
hard_signal | +1.2226 |
log1p_z_grad_norm | +0.3008 |
log1p_z_update_max | +0.1584 |
log1p_z_loss | +0.0378 |
log1p_z_hist_tail | +0.2497 |
rel_position | +15.0875 |