config.yaml                                                                    kalfa 0.2.5
  layers      config.yaml, /alias/kalfa/base, /alias/kalfa/vision
  params
    epochs       100
    lr           0.0003
    temperature  0.5
    seed         7
  seed        7
  device      cuda
  rng         derived (no rng key)
  record      runs/simclr_$datetime$

── DATA ──────────────────────────────────────────────────────────────────────────────────
  source      image_folder  data/stl10/unlabeled          512 rows · 2 columns
  split       random  1 / 0 / 0  seed=7                   train 512  ·  valid 0  ·  test 0
  batch       256                                         feed  table

  field  columns  preprocessors                        role
  ────────────────────────────────────────────────────────────
  image  image    two_views (train only) ─→ to_tensor  feature

  data/stl10/unlabeled ─→ split random
    ├─ train      512  ─→ fit simclr_aug, two_views, to_tensor ─→ table
    ├─ valid        0  ─→ apply                                ─→ table
    └─ test         0  ─→ apply                                ─→ table

── MODEL ─────────────────────────────────────────────────────────────────────────────────
  backbone   trained  ·  optimizer main
    image ─→ timm_backbone name=resnet18 pooled=true ─→ h

  head   trained  ·  optimizer main
    h ─→ linear_relu 512 ─→ linear 128 ─→ z

  the parameter counts need --measure

  simclr   composite
    inputs image   outputs z
    image  ─→  backbone  ─→  h
    h      ─→  head      ─→  z

── TRAINING ──────────────────────────────────────────────────────────────────────────────
  turn        alternating         100 epochs      predicts simclr
              amp=true

  optimizer  lego             trains             loss  schedule
  ────────────────────────────────────────────────────────────────
  main       adamw lr=0.0003  ─→ backbone, head  ntx   no schedule

  loss  lego                                 reported on
  ────────────────────────────────────────────────────────────────────────
  ntx   ntxent model=simclr temperature=0.5  train        active at turn 1

  checkpoint  last                                        report last

── AFTER ─────────────────────────────────────────────────────────────────────────────────
  report      last        predict simclr ─→ predictions.parquet
  plots       loss_curve  ─→ plots/
  record      runs/simclr_$datetime$

── COLUMNS ───────────────────────────────────────────────────────────────────────────────
  column  dtype  field  preprocessors           role         tensor
  ─────────────────────────────────────────────────────────────────
  image   image  image  two_views ─→ to_tensor  feature      x
  label   int64  —      —                       not a field  —
  the produced widths and the tensor slots need --measure
