Skip to content

feat: support puma run#55

Merged
InftyAI-Agent merged 3 commits into
InftyAI:mainfrom
kerthcet:feat/support-puma-run
Jul 5, 2026
Merged

feat: support puma run#55
InftyAI-Agent merged 3 commits into
InftyAI:mainfrom
kerthcet:feat/support-puma-run

Conversation

@kerthcet

@kerthcet kerthcet commented Jul 5, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #

Special notes for your reviewer

Does this PR introduce a user-facing change?


Signed-off-by: kerthcet <kerthcet@gmail.com>
Copilot AI review requested due to automatic review settings July 5, 2026 16:14
@InftyAI-Agent InftyAI-Agent added needs-triage Indicates an issue or PR lacks a label and requires one. needs-priority Indicates a PR lacks a label and requires one. do-not-merge/needs-kind Indicates a PR lacks a label and requires one. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a provider abstraction for model downloads and wires it into the CLI, including a new puma run subcommand that can download a model when it’s missing locally.

Changes:

  • Added a Provider enum and a downloader::download_model(...) helper to centralize provider-specific download logic.
  • Updated puma pull to use the new download helper (and provider enum from downloader).
  • Added puma run <model> [-p <provider>] to check the registry and download the model if needed (execution still TODO).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
src/downloader/mod.rs Adds provider enum and a unified download_model entrypoint.
src/cli/commands.rs Refactors pull to use the new downloader API and adds the run subcommand/args.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/downloader/mod.rs
Comment thread src/cli/commands.rs
Comment thread src/cli/commands.rs
Comment thread src/cli/commands.rs
Comment thread src/cli/commands.rs
kerthcet added 2 commits July 5, 2026 17:30
Signed-off-by: kerthcet <kerthcet@gmail.com>
Signed-off-by: kerthcet <kerthcet@gmail.com>
Copilot AI review requested due to automatic review settings July 5, 2026 16:39
@kerthcet

kerthcet commented Jul 5, 2026

Copy link
Copy Markdown
Member Author

/lgtm
/kind feature

@InftyAI-Agent InftyAI-Agent added lgtm Looks good to me, indicates that a PR is ready to be merged. feature Categorizes issue or PR as related to a new feature. and removed do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Jul 5, 2026

@InftyAI-Agent InftyAI-Agent left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: PR has both lgtm and approved labels

@InftyAI-Agent InftyAI-Agent merged commit 002d11a into InftyAI:main Jul 5, 2026
17 of 18 checks passed
@kerthcet kerthcet deleted the feat/support-puma-run branch July 5, 2026 16:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread tests/cli_test.rs
Comment on lines +175 to +178
// RUN command requires a model argument
let output = run_puma(home, &["run", "test/model"]);
// Will fail because test/model doesn't exist on HuggingFace, but at least it attempts
assert!(output_contains(&output, "not found locally") || output_contains(&output, "Error"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. feature Categorizes issue or PR as related to a new feature. lgtm Looks good to me, indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a label and requires one. needs-triage Indicates an issue or PR lacks a label and requires one.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants