You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content: The hessian.dataloader_hv_product method destructures dataloader items as _, inputs, targets. DataLoaders that emit (inputs, targets) pairs (the pervasive PyTorch convention) or dictionaries therefore raise ValueError: too many values to unpack. file: src/infty/utils/hessian.py code:
description: Relax the unpacking so it either (a) detects tuple length or (b) lets callers supply a small adapter callback. Accepting (inputs, targets) pairs with an optional sample-index fallback is sufficient to support the common vision and text dataloaders without breaking the existing 3-tuple case.
I'll take this. Plan: relax hessian.dataloader_hv_product batch unpacking to accept common (inputs, targets) pairs as well as the existing 3-tuple form, with a small helper so dict/custom loaders can adapt. Adding unit tests for 2-tuple and 3-tuple batches.
Activity
kabishou11 commentedon Sep 15, 2026
I'll take this. Plan: relax hessian.dataloader_hv_product batch unpacking to accept common (inputs, targets) pairs as well as the existing 3-tuple form, with a small helper so dict/custom loaders can adapt. Adding unit tests for 2-tuple and 3-tuple batches.