Skip to content

feat: adopt local GGUFs into the hub with mba migrate - #22

Merged
SoryAK merged 1 commit into
mainfrom
feat/mba-migrate
Sep 10, 2026
Merged

feat: adopt local GGUFs into the hub with mba migrate#22
SoryAK merged 1 commit into
mainfrom
feat/mba-migrate

Conversation

@SoryAK

@SoryAK SoryAK commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add mba migrate (models [dir] / find [query]) to scan local GGUFs and copy or hardlink them into the model hub, then finish the same house as pull (POST /models/adopt).
  • TTY asks whether to remove the source after a successful adopt; --move skips the ask and removes, --yes/--json keep the source unless --move is set.
  • Drop mba migrate-paths (the old ~/.mba / adapters move). Hub skip is path or inode so a hardlinked adopt does not show up again.

Test plan

  • mba migrate --help lists models, find, --from, --move, and the TTY ask
  • mba migrate models <dir> lists new GGUFs, multi-select, confirm id/family, ask remove-source, print ADOPTED
  • mba migrate find <query> ranks matches under HF hub / ~/models (or --from)
  • --yes --json adopts without prompts; --move deletes the source; inplace adopt never deletes the hub file
  • Already-cataloged files are skipped; daemon must be up; mba s boot <id> works on an adopted model
  • npx vitest run packages/core/src/model/model-pull.test.ts packages/core/src/model/gguf-scan.test.ts packages/core/src/service/server-model-adopt.test.ts packages/core/src/cli/route.test.ts

Made with Cursor

Scan a folder or fuzzy-find weights, copy or hardlink into the model
store, and finish the same house as pull. Drop the one-shot migrate-paths
helper; the service owns the write via POST /models/adopt.
@SoryAK
SoryAK merged commit 59f9a6e into main Sep 10, 2026
3 checks 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