Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Conversation

@namchuai
Copy link
Contributor

@namchuai namchuai commented Sep 16, 2024

Describe Your Changes

  • Support downloading from direct url.
  • Some refactoring to reuse the code.

Testing command

Can switch the url to your own url
build/cortex pull https://huggingface.co/BafS/gemma-2-2b-it-Q4_K_M-GGUF/blob/main/gemma-2-2b-it-q4_k_m.gguf

Screenshot

Screenshot 2024-09-17 at 10 12 31

Linked issue

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@namchuai namchuai force-pushed the j/download-model-direct-url branch from 80fea5b to 3c6ffcc Compare September 16, 2024 04:10
@namchuai namchuai changed the title J/download model direct url feat: download model with direct url Sep 16, 2024
@namchuai namchuai force-pushed the j/download-model-direct-url branch 2 times, most recently from 36de7e8 to 908f740 Compare September 16, 2024 14:14
@namchuai namchuai force-pushed the j/download-model-direct-url branch from 908f740 to 897e3f6 Compare September 16, 2024 15:35
@namchuai namchuai marked this pull request as ready for review September 16, 2024 17:02
Signed-off-by: James <namnh0122@gmail.com>
@namchuai namchuai force-pushed the j/download-model-direct-url branch from 897e3f6 to 8a3a590 Compare September 17, 2024 01:25
CLI_LOG("Failed to uninstall engine " << engine_ << ": " << e.what());
}
void EngineUninstallCmd::Exec(const std::string& engine) {
engine_service_.UninstallEngine(engine);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we return a boolean value for engine_service_.UninstallEngine? Seems like we always delete engine successfully.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-09-17 at 11 07 36

If the uninstallation is failed, it will be handled via exception here.

Signed-off-by: James <namnh0122@gmail.com>
@namchuai namchuai force-pushed the j/download-model-direct-url branch from 05e468e to 5d06c15 Compare September 17, 2024 04:08
@dan-menlo
Copy link
Contributor

dan-menlo commented Sep 17, 2024

@namchuai Can we be a bit careful about using force-push? It blows away the files changes in Github, making it difficult to review additional diffs

@namchuai
Copy link
Contributor Author

@namchuai Can we be a bit careful about using force-push? It blows away the files changes in Github, making it difficult to review additional diffs

I see. I'm using force push to clean up the commit list before merged to dev branch, for keeping it clean.

I'm not sure if this is enough but you can see that change via button Compare here.
Screenshot 2024-09-17 at 12 14 56

@namchuai namchuai merged commit 6dcecef into dev Sep 17, 2024
@namchuai namchuai deleted the j/download-model-direct-url branch September 17, 2024 05:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants