Skip to content

feat: cpm download-weights command with HF Hub provider#42

Merged
jeanmachuca merged 1 commit into
developmentfrom
feat/download-weights
Jul 5, 2026
Merged

feat: cpm download-weights command with HF Hub provider#42
jeanmachuca merged 1 commit into
developmentfrom
feat/download-weights

Conversation

@jeanmachuca

Copy link
Copy Markdown
Member

Implements ADR-002.\n\n- cpm download-weights --provider hf --kind <raw|wide> --type <gguf|safetensors> \n- weights.Provider interface for future providers\n- HF Hub search via public API (no auth)\n- Large-file streaming download with SHA-256 verification\n- Auto-download in cpm install when manifest declares weights.remote.source = huggingface\n- cpm init --template gguf-model

Adds:
- cpm download-weights --provider hf --kind <raw|wide> --type <gguf|safetensors> <name>
- weights.Provider interface for future providers (models.dev)
- HF Hub search via public API (library=gguf, sorted by downloads)
- Large-file streaming download with SHA-256 verification
- Decoupled progress reporting (TextProgress/NoopProgress callbacks)
- Auto-download when cpm install encounters manifest brain.*.weights.remote
- cpm init --template gguf-model for model publishers
- Raw model skip-if-exists; wide model always overwrites
@jeanmachuca jeanmachuca merged commit 0c7ee4e into development Jul 5, 2026
1 check 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.

1 participant