-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: ram info * chore bump vcpkg to 2024.10.21 Release 10b7a17 * fix: vcpkg-configuration.json * feat: add ram and cpu info * feat: os info * temp gpu info * feat: gpu info * feat: v1/hardware * fix: rm fmt * fix: build macos * feat: v1/hardware/activate linux * chore: hardware awareness docs * fix: build windows * feat: activate for Windows * fix: build linux * feat: gpus parameters * fix: temp gguf * feat: windows fallback to CPU * fix: hang on restart * feat: hardware list command * feat: hardware activate command * feat: cortex models start with --gpus * feat: support run command with --gpus * fix: remove model estimation * fix: hardcoded * fix: typo * fix: CI * fix: CI * fix: check before updating * fix: clean * chores: update CLI docs * chore: Hardware API docs * chore: update docs for CLI * fix: macos RAM info * fix: warnings * chore: temporary disable hf test because main is broken * fix: update hardware config * e2e: stop server * e2e: add log for docker test * fix: guard nvidia available * fix: comments * chore: move FileManagerConfigTest test to the end * chore: disable docker test --------- Co-authored-by: vansangpfiev <[email protected]>
- Loading branch information
1 parent
a6d6be3
commit a055f69
Showing
64 changed files
with
2,450 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
docs/docs/capabilities/hardware/index.md → docs/docs/capabilities/hardware/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
--- | ||
title: Cortex Hardware | ||
--- | ||
|
||
import Tabs from "@theme/Tabs"; | ||
import TabItem from "@theme/TabItem"; | ||
|
||
# `cortex hardware` | ||
|
||
This command allows you manage and monitor hardware resources. | ||
|
||
|
||
**Usage**: | ||
:::info | ||
You can use the `--verbose` flag to display more detailed output of the internal processes. To apply this flag, use the following format: `cortex --verbose [subcommand]`. | ||
::: | ||
<Tabs> | ||
<TabItem value="MacOs/Linux" label="MacOs/Linux"> | ||
```sh | ||
cortex hardware [options] [subcommand] | ||
``` | ||
</TabItem> | ||
<TabItem value="Windows" label="Windows"> | ||
```sh | ||
cortex.exe hardware [options] | ||
|
||
``` | ||
</TabItem> | ||
</Tabs> | ||
|
||
**Options**: | ||
|
||
| Option | Description | Required | Default value | Example | | ||
|-------------------|-------------------------------------------------------|----------|---------------|-----------------| | ||
| `-h`, `--help` | Display help information for the command. | No | - | `-h` | | ||
|
||
--- | ||
# Subcommands: | ||
|
||
## `cortex hardware list` | ||
:::info | ||
This CLI command calls the following API endpoint: | ||
- [List Model](/api-reference#tag/hardware/get/v1/hardware) | ||
::: | ||
This command lists all the hardware resources. | ||
|
||
**Usage**: | ||
<Tabs> | ||
<TabItem value="MacOs/Linux" label="MacOs/Linux"> | ||
```sh | ||
cortex hardware list [options] | ||
``` | ||
</TabItem> | ||
<TabItem value="Windows" label="Windows"> | ||
```sh | ||
cortex.exe hardware list [options] | ||
``` | ||
</TabItem> | ||
</Tabs> | ||
|
||
For example, it returns the following: | ||
```bash | ||
OS Information: | ||
+---+---------------------------+--------------------+ | ||
| # | Version | Name | | ||
+---+---------------------------+--------------------+ | ||
| 1 | 24.04.1 LTS (Noble Numbat)| Ubuntu 24.04.1 LTS | | ||
+---+---------------------------+--------------------+ | ||
``` | ||
|
||
**Options**: | ||
|
||
| Option | Description | Required | Default value | Example | | ||
|---------------------------|----------------------------------------------------|----------|---------------|----------------------| | ||
| `-h`, `--help` | Display help for command. | No | - | `-h` | | ||
|`--cpu` | Display CPU information | No | - | `--cpu` | | ||
|`--os` | Display OS information | No | - | `--os` | | ||
|`--ram` | Display RAM information | No | - | `--ram` | | ||
|`--storage` | Display Storage information | No | - | `--storage` | | ||
|`--gpu` | Display GPU information | No | - | `--gpu` | | ||
|`--power` | Display Power information | No | - | `--power` | | ||
|`--monitors` | Display Monitors information | No | - | `--monitors` | | ||
|
||
## `cortex hardware activate` | ||
|
||
::info | ||
This CLI command calls the following API endpoint: | ||
- [List Model](/api-reference#tag/hardware/post/v1/hardware/activate) | ||
::: | ||
This command activates the Cortex's hardware, currently support only GPUs. | ||
|
||
**Usage**: | ||
<Tabs> | ||
<TabItem value="MacOs/Linux" label="MacOs/Linux"> | ||
```sh | ||
cortex hardware activate [options] | ||
``` | ||
</TabItem> | ||
<TabItem value="Windows" label="Windows"> | ||
```sh | ||
cortex.exe hardware activate [options] | ||
``` | ||
</TabItem> | ||
</Tabs> | ||
|
||
For example, it returns the following: | ||
```bash | ||
Activated GPUs: 0 | ||
``` | ||
|
||
**Options**: | ||
|
||
| Option | Description | Required | Default value | Example | | ||
|---------------------------|----------------------------------------------------|----------|---------------|----------------------| | ||
| `-h`, `--help` | Display help for command. | No | - | `-h` | | ||
|`--gpus` | List of GPUs to activate | Yes | - | `[0, 1]` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.