mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
f647b635b2
* feat: pull Ochre model weights from a hub into predastore Add `spx admin ochre weights pull`: fetch a self-host model's weights from Hugging Face directly into predastore, producing a prefix `weights stage` consumes. Streams safetensors-only artefacts (plus config/tokenizer and the shard index), refusing pickle/.bin. Pins an immutable commit SHA, writes an ochre-pull.json manifest that stage records as SourceRevision, and aborts clean (removing any written object) on a gated or mid-stream failure. Token resolves from --hf-token, HF_TOKEN, or a stored platform credential; never logged. Also add `spx admin ochre credentials set` to store an encrypted provider credential from stdin, and SourceRevision on the weights KV record + list. * fix: stream hub downloads without a whole-request timeout http.Client.Timeout bounds the entire request including the body read, so a multi-GB safetensors shard was guillotined mid-download at 30s. Bound dial and response-header latency via the transport instead, leaving the body free to stream for as long as the server keeps sending.