Validate downloaded model files #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context:\nModel downloads can silently save HTML, JSON, auth failure pages, or incomplete files. The manager must catch common mistakes before marking jobs successful.\n\nRequirements:\n- Reject obvious HTML, JSON, XML, and plain text responses.\n- Validate basic safetensors header structure for .safetensors files.\n- Optionally verify SHA256 when provided.\n- Record content type and final filename.\n- Keep failed .part files available for retry unless user deletes them.\n\nAcceptance criteria:\n- Invalid HTML saved as .safetensors is marked failed.\n- Valid safetensors files pass basic validation.\n- Error messages explain likely auth/download problems.