Commit Graph
7 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 1f0d4f9cc6 fix(gsq): preserve and bind chat templates and processor metadata
- Patch the pinned assembler to also copy chat_template.jinja,
  chat_template.json, chat_templates/*.jinja, added_tokens.json,
  processor_config.json, and video_preprocessor_config.json; the
  prepared tree digest is updated accordingly.
- Bind those files in the base-model hash set so drift before or during
  assembly is refused.
- Require each such base file to appear byte-identical in the assembled
  output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 12:10:43 -04:00
Joseph MaglyandClaude Opus 5.5 4c537eb640 fix(gsq): dispatch by config type, bind config to base, reject optional quant tensors
- Dispatch llama, qwen3, and qwen3.5 models from the declared config
  model type regardless of the path name.
- Require --model-config to be the base model's own config.json and
  reject configs whose topology disagrees with the base weights;
  partial assembly requires a matching partial validation.
- Reject zero-point and group-index tensors for the symmetric packed
  container in validation and post-assembly verification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:27:50 -04:00
Joseph MaglyandClaude Opus 5.5 b5b67ddf85 fix(gsq): patch Qwen3 packing, certify non-projection tensors, close prepare interrupt window
- Switch GSQ's Qwen3 dense save path to the current compressed-tensors
  packing helper, matching the Qwen3.5 patch.
- Require run-shard tensors that overwrite base weights to exist in the
  base model with matching dtype/shape and finite, non-empty contents;
  check every retained tensor in the assembled output the same way.
- Record promotion intent before os.replace so a post-rename interrupt
  is rolled back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 14:55:59 -04:00
Joseph MaglyandClaude Opus 5.5 d9d42e8a1d fix(gsq): drop dotenv overrides and verify assembled output contents
- Remove GSQ's load_dotenv() call so a .env file cannot re-inject
  override variables after the launcher sanitizes the environment.
- Read base-model shapes from the same top-level safetensors files the
  assembler reads, and fail closed when the index points elsewhere.
- Open the assembled shards to check every packed, scale, and shape
  tensor, and require every retained base tensor in the output.
- Detect Qwen3.5 linear attention from the declared model type when
  layer_types is omitted, so MLP-only assembly ignores it correctly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 14:17:48 -04:00
Joseph MaglyandClaude Opus 5.5 aa7deef652 fix(gsq): sanitize GSQ env, bind local snapshots, verify assembled ignore list
- Launch GSQ without GSQ_* / WANDB_* override variables and refuse
  configs with environment placeholders.
- Resolve models to local snapshots at config time (Hub ids require a
  revision) and require run/validate/assemble to use the same directory.
- Exclude Qwen3.5 vision and MTP modules from the assembled
  quantization ignore list, and verify every dense 2-D weight in the
  assembled output is ignored and every packed module is not.
- Enforce the assembler's 4-bit pack container width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 13:58:59 -04:00
Joseph MaglyandClaude Opus 5.5 10bb04c891 fix(gsq): close review gaps in adapter, coverage, and numerics guard
- Resolve checkout, config, interpreter, and output paths before
  launching GSQ so relative invocations work from any directory.
- Pass the resolved run directory to save_model.py (--run-dir) and
  refuse partial assembly before any output is written.
- Dispatch Qwen3.5 dense models from the declared config model type,
  falling back to name dispatch when the config cannot load.
- Verify complete per-file patch states in memory before writing; a
  half-applied tree fails closed.
- Certify only dense and Qwen3.5/3.8 hybrid topologies; reject MoE and
  mlp_only_layers configs; derive missing layer_types from
  full_attention_interval; detect the tensor prefix from checkpoint keys.
- Check finiteness after damping and of the Cholesky factor.
- Reject malformed or empty topology input.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 12:00:39 -04:00
Joseph MaglyandClaude Opus 5.5 e9a6a43c36 feat(gsq): add portable 2-bit GSQ quantization workflow
Add obliteratus.gsq: a pinned external GSQ source record (repository,
commit, prepared-tree SHA-256, calibration dataset revision), a
fail-closed textual adapter, a generic projection-coverage validator
(Qwen3.5/3.8 hybrid linear attention including in_proj_a/in_proj_b;
Qwen3.8 resolves to 496 projections), a standalone finite-Hessian /
damping / Cholesky-diagnostic guard that runs verbatim inside GSQ, and a
plain-environment fetch/prepare/config/run/validate/assemble CLI.

Rendered configs use num_workers 0 and keep activation capture in RAM;
the adapter asserts every capture batch was filled. No deployment
services, launcher identities, or GPU brokers are involved.

CPU tests cover coverage rejection and non-finite Hessian failure; a
gpu/download/slow conditional gate runs Qwen3.5-0.8B end to end.

Closes #248

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 11:33:01 -04:00