Skip to content

Expose apply_batch_size through InversionConfig - #450

Open
luciaquirke wants to merge 1 commit into
mainfrom
expose-apply-batch-size
Open

Expose apply_batch_size through InversionConfig#450
luciaquirke wants to merge 1 commit into
mainfrom
expose-apply-batch-size

Conversation

@luciaquirke

Copy link
Copy Markdown
Collaborator

EkfacConfig.apply_batch_size controls how many query-gradient columns the inverse application holds on-device at once, but the pipeline constructs EkfacConfig without it, so the default of 32 is unreachable from a run config. At 1.5B parameters with 20 per-query columns the default loads ~45 GB of query gradients on top of the eigenvectors and OOMs a 48 GB card, with no workaround short of patching the source (which is what we did in production — batching is numerically exact, so this is purely a memory knob).

This plumbs it through InversionConfig, next to the other knobs the apply stage already reads.

🤖 Generated with Claude Code

https://claude.ai/code/session_0167XKnE2yoCE162n3jHvxC1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant