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

epic: cortex engines commands #1072

Closed
Closed

Description

@vansangpfiev

Goal

  • Cortex can install engines (e.g. llama.cpp, tensorrt-llm)
  • Strong error recovery

Spec

Tasklist

Install (this issue)

  • HTTP API support for cortex engines install
  • CLI support for cortex engines <name (cortex.llamacpp/cortex.tensorrt-llm/cortex.onnx)> install
  • Downloading and unzip engine file (currently store engine to engines/<engine>)
  • Downloading and unzip cuda toolkit (if needed - because, e.g. macos does not need this)
  • Libcurl adding libcurl to support pause/resume download #1179
  • Hardware detection
    • AVX information
    • OS
    • CPU arch
    • GPU driver version

Engines list

Engines get

Uninstall

Dependency Packing

Outstanding / Bugs:

Some resources

Nvidia Support Matrix
CUDA Compatibility

Activity

  1. namchuai commented on Aug 29, 2024

    @namchuai
    Contributor

    @vansangpfiev @nguyenhoangthuan99 , please add if I missing any. Thank you 🙏

  2. dan-menlo commented on Aug 29, 2024

    @dan-menlo
    Contributor

    @namchuai Can I clarify a few things:

    • CLI command: is it install or init? If install, let's change this issue name
    • Will we do an uninstall command as well?
  3. dan-menlo commented on Aug 29, 2024

    @dan-menlo
    Contributor

    @namchuai Another thought is, should the command be:

    cortex engines install tensorrt-llm
    or 
    cortex engines tensorrt-llm install
    

    I had originally gone with cortex engines tensorrt-llm install, because I initially thought that each of the engines would eventually expose its own CLI commands, e.g:

    cortex engines tensorrt-llm settings ...
    cortex engines tensorrt-llm gpu 2
    

    However, I realize that install is an action on engines, rather than tensorrt-llm (or engine name). In this case, the correct approach should be:

    cortex engines install tensorrt-llm
    cortex engines uninstall tensorrt-llm
    cortex engines list
    
  4. changed the title [-]cortex engines init[/-] [+]CLI: cortex engines <engine> install[/+] on Aug 30, 2024
  5. namchuai commented on Aug 30, 2024

    @namchuai
    Contributor

    @namchuai Can I clarify a few things:

    • CLI command: is it install or init? If install, let's change this issue name
    • Will we do an uninstall command as well?
    1. Yes, it's install. I updated the title.
    2. I agree about uninstall
      cc @vansangpfiev @nguyenhoangthuan99 , what do you think?
  6. namchuai commented on Aug 30, 2024

    @namchuai
    Contributor

    @namchuai Another thought is, should the command be:

    cortex engines install tensorrt-llm
    or 
    cortex engines tensorrt-llm install
    

    I had originally gone with cortex engines tensorrt-llm install, because I initially thought that each of the engines would eventually expose its own CLI commands, e.g:

    cortex engines tensorrt-llm settings ...
    cortex engines tensorrt-llm gpu 2
    

    However, I realize that install is an action on engines, rather than tensorrt-llm (or engine name). In this case, the correct approach should be:

    cortex engines install tensorrt-llm
    cortex engines uninstall tensorrt-llm
    cortex engines list
    

    IMHO, 2nd option is more natural to me.

    $ cortex engines install tensorrt-llm
    

    And I think we should support options if any, for example:

    $ cortex engines install cortex.llamacpp --vulkan 1
    
  7. vansangpfiev commented on Aug 30, 2024

    @vansangpfiev
    ContributorAuthor

    @namchuai Can I clarify a few things:

    • CLI command: is it install or init? If install, let's change this issue name
    • Will we do an uninstall command as well?
    1. Yes, it's install. I updated the title.
    2. I agree about uninstall
      cc @vansangpfiev @nguyenhoangthuan99 , what do you think?

    I agree, we should support uninstall. @namchuai Can you please create a ticket for it?

  8. transferred this issue fromon Sep 2, 2024
  9. moved this to Planning in Menloon Sep 2, 2024
  10. changed the title [-]CLI: cortex engines <engine> install[/-] [+]CLI: cortex engines install <engine_id>[/+] on Sep 6, 2024
  11. changed the title [-]CLI: cortex engines install <engine_id>[/-] [+]feat(CLI): cortex engines install <engine_id>[/+] on Sep 6, 2024
  12. added
    category: engine management
    on Sep 6, 2024
  13. changed the title [-]feat(CLI): cortex engines install <engine_id>[/-] [+]feat: cortex engines install <engine_id>[/+] on Sep 8, 2024
  14. changed the title [-]feat: cortex engines install <engine_id>[/-] [+]feat: `cortex engines install <engine_id>`[/+] on Sep 8, 2024
  15. changed the title [-]feat: `cortex engines install <engine_id>`[/-] [+]feat: `cortex engines install <engine_id>` and engine commands[/+] on Sep 8, 2024
  16. moved this from In Review to Review + QA in Menloon Sep 29, 2024
  17. changed the title [-]feat: `cortex engines install <engine_id>` and engine commands[/-] [+]epic: `cortex engines` commands[/+] on Oct 3, 2024
  18. gabbyong commented on Oct 5, 2024

    @gabbyong
    Contributor

    Closing this Epic 🌮 🎉 Thanks @vansangpfiev @namchuai!

  19. moved this from Review + QA to Completed in Menloon Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category: engine managementtype: feature request

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions