Skip to content

fix(cli): build_cmd should respect vindex dtype when saving gate vectors - #201

Merged
chrishayuk merged 2 commits into
chrishayuk:mainfrom
17skills:fix/f16-gate-save
Aug 6, 2026
Merged

fix(cli): build_cmd should respect vindex dtype when saving gate vectors#201
chrishayuk merged 2 commits into
chrishayuk:mainfrom
17skills:fix/f16-gate-save

Conversation

@17skills

@17skills 17skills commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

larql build currently calls save_gate_vectors(&output_dir), which hardcodes F32 output regardless of the vindex dtype in the build config.

save_gate_vectors_with_config() already exists (and is covered by save_gate_vectors_with_config_preserves_expert_geometry in crates/larql-vindex/src/index/mutate/tests.rs), but the CLI call site never adopted it — so an f16 vindex silently gets F32 gate vectors, doubling their size on disk and diverging from the declared dtype.

One-line change: route the CLI through the config-aware variant. Rebases cleanly onto current main.

17skills and others added 2 commits August 4, 2026 13:34
larql build calls save_gate_vectors(&output_dir), which hardcodes F32
output regardless of the vindex dtype in the build config. Route the CLI
through the existing config-aware save_gate_vectors_with_config() so an f16
vindex gets f16 gate vectors instead of silently doubling their size on
disk and diverging from the declared dtype.
Whitespace only, no behaviour change. The longer method name pushed the
call past rustfmt's `fn_call_width`, so it wraps into a method chain.

This was the sole reason CI was red on all three platforms — Format check
failed and every later step was skipped, so the fix itself was never
actually compiled or tested by CI.
@chrishayuk
chrishayuk merged commit b2ce6b3 into chrishayuk:main Aug 6, 2026
6 checks passed
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.

2 participants