wifi-densepose/docs
lockewerks 67d186549a docs(huggingface): document safetensors header padding bug + workaround
The model.safetensors file currently published at
huggingface.co/ruvnet/wifi-densepose-pretrained has a malformed header:
the 8-byte u64 declares 1464 header bytes, the JSON document ends at
byte 1461, and the last 3 bytes of the header zone are literal 0x00
padding instead of the spec-required 0x20 spaces. Strict safetensors
readers — Rust safetensors crate, Candle, safetensors.torch.load_file —
reject with 'SafetensorError: trailing characters at line 1 column 1462'.

This commit:
- adds docs/huggingface/SAFETENSORS-HEADER-BUG.md with byte-level
  evidence, spec citation, source-of-bug location (the SafeTensorsWriter
  in vendor/ruvector/.../export.js — separate repo at ruvnet/ruvector),
  list of three trainer scripts that go through this path
  (train-wiflow.js, train-ruvllm.js, train-camera-free.js), table of
  affected vs lenient consumers, 10-line strict-reader repro that
  reproduces the exact error class against a synthetic file, proposed
  upstream fix (0x20 padding or no padding), and a follow-ups checklist
  including the need to re-train/re-export and re-upload the HF artifact
- flags the bundle as needing republish under [Unreleased] in CHANGELOG.md
- updates the HF model section of docs/user-guide.md so the load example
  now patches the header with scripts/fix-safetensors-header.py before
  calling safetensors.torch.load_file (which would otherwise crash on
  the current bundle), and flips the Python/PyTorch row of the
  consumer-status table from 'Works' to 'Broken header — strict readers
  reject; patch with scripts/fix-safetensors-header.py'
2026-05-25 17:03:42 -06:00
..
adr cog-ha-matter (ADR-116): P4 — mDNS wired into main, broker deferred 2026-05-23 18:36:14 -04:00
archtocode-visual-overview docs: add visual architecture overview images (#208) 2026-05-17 18:18:07 -04:00
benchmarks docs(bench): append v0.0.2 section to person-count benchmark log 2026-05-21 19:47:55 -04:00
ddd docs: rvCSI edge RF sensing platform — PRD, ADR-095, DDD domain model 2026-05-12 23:15:10 +00:00
edge-modules chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
huggingface docs(huggingface): document safetensors header padding bug + workaround 2026-05-25 17:03:42 -06:00
integrations docs(ha): add cross-industry application examples to home-assistant.md 2026-05-23 17:08:10 -04:00
prd docs: rvCSI edge RF sensing platform — PRD, ADR-095, DDD domain model 2026-05-12 23:15:10 +00:00
qe-reports chore(repo): move v1/ → archive/v1/ + add archive/README.md (#430) 2026-04-25 23:07:52 -04:00
releases ADR-115: Home Assistant + Matter integration (#778) 2026-05-23 16:13:28 -04:00
research cog-ha-matter (ADR-116 P3): extract pure publisher-input builder 2026-05-23 17:55:17 -04:00
tutorials docs(tutorials): Pi 5 + Hailo cluster rvcsi tutorial (#546) 2026-05-17 17:41:39 -04:00
ADR-110-BRANCH-STATE.md ADR-110: ESP32-C6 firmware extension (#764) 2026-05-23 15:34:48 -04:00
ADR-110-REVIEW-GUIDE.md ADR-110: ESP32-C6 firmware extension (#764) 2026-05-23 15:34:48 -04:00
TROUBLESHOOTING.md fix(docker): UDP relay for multi-source ESP32 on Docker Desktop Windows (#502) 2026-05-17 18:01:44 -04:00
WITNESS-LOG-028.md chore(repo): move v1/ → archive/v1/ + add archive/README.md (#430) 2026-04-25 23:07:52 -04:00
WITNESS-LOG-110.md ADR-110: ESP32-C6 firmware extension (#764) 2026-05-23 15:34:48 -04:00
build-guide.md chore(repo): move v1/ → archive/v1/ + add archive/README.md (#430) 2026-04-25 23:07:52 -04:00
readme-details.md docs(readme): split details to docs/readme-details.md and reorganize 2026-04-29 19:34:24 -04:00
security-audit-wasm-edge-vendor.md chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
user-guide.md docs(huggingface): document safetensors header padding bug + workaround 2026-05-25 17:03:42 -06:00
wifi-mat-user-guide.md chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00