-
Notifications
You must be signed in to change notification settings - Fork 0
feat: revise Models documentation and add Model Artifact management s… #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,49 +1,84 @@ | ||
| --- | ||
| title: Models | ||
| description: Manage and monitor Large Language Models. | ||
| description: Manage and monitor AI/ML models and artifacts. | ||
| --- | ||
|
|
||
| import { Steps, Aside } from '@astrojs/starlight/components'; | ||
|
|
||
| The Models section allows you to manage and monitor Large Language Models (LLMs) deployed in the OtterScale cluster. It provides real-time insights into model performance and resource usage. | ||
|
|
||
| The Models page provides a unified view of all AI/ML models deployed in your OtterScale cluster. It aggregates information about model deployments and their artifacts, allowing you to monitor status, manage resources, and perform lifecycle operations. | ||
|
|
||
|
|
||
| ## Introduction | ||
|
|
||
| The Models page displays a list of deployed LLMs. The table includes the following information: | ||
| The Models page displays a list of all models. The table includes the following columns (as shown in the UI): | ||
|
|
||
| | Column | Description | | ||
| | :---------------------- | :---------------------------------------------------------------------------------------- | | ||
| | **Model** | The name of the application hosting the model. Links to the application details. | | ||
| | **Name** | The specific name or identifier of the LLM (e.g., `llama3-8b`). | | ||
| | **Replicas** | The number of desired replicas for the model service. | | ||
| | **Healthies** | The number of currently healthy and ready replicas. | | ||
| | **GPU Cache** | The percentage of GPU cache currently in use. | | ||
| | **KV Cache** | The percentage of Key-Value (KV) cache usage, critical for transformer model performance. | | ||
| | **Requests** | The total request latency or load metric for the model. | | ||
| | **Time to First Token** | The average time taken to generate the first token of a response (latency metric). | | ||
| | Column | Description | | ||
| | :----------------- | :------------------------------------------------------------------------------------------------------------------- | | ||
| | **Name** | The name of the model. | | ||
| | **Model Name** | The unique identifier of the model (modelName/id). | | ||
| | **Namespace** | The Kubernetes namespace where the model is deployed. | | ||
| | **Status** | The current status of the model (e.g., Running, Pending). | | ||
| | **Description** | The description of the model. | | ||
| | **Prefill** | Prefill configuration: vGPU memory %, replica, tensor (if available). | | ||
| | **Decode** | Decode configuration: vGPU memory %, replica, tensor (if available). | | ||
| | **First Deployed** | Timestamp of first deployment. | | ||
| | **Last Deployed** | Timestamp of last deployment. | | ||
| | **GPU Relation** | GPU resource relation (shown only if status is 'deployed'). | | ||
| | **Test** | Test button for model API (only available when the model is in the "ready" state; opens a dialog to test the model). | | ||
| | **Actions** | Management actions (update, delete, etc.). | | ||
|
|
||
| ## Monitor Models | ||
|
|
||
| The dashboard integrates with Prometheus to provide real-time metrics for each model: | ||
|
|
||
| - **GPU & KV Cache**: Monitor these percentages to ensure your models are not running out of memory context, which could degrade performance or cause errors. | ||
| - **Latency Metrics**: Track "Requests" and "Time to First Token" to ensure the models are responsive and meeting service level objectives (SLOs). | ||
|
|
||
|
Comment on lines
31
to
33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are several formatting inconsistencies in the file:
Please clean up these minor formatting issues to improve the document's consistency. |
||
| ## Manage Models | ||
| ### Pods Table | ||
|
|
||
| You can perform basic lifecycle actions on the models: | ||
|
|
||
| ### Create a Model | ||
| The **Pods Table** (in the details view) lists all pods managed by this model, if available. | ||
| Click the expand icon at the beginning of a row to view detailed pod information. | ||
|
|
||
| To deploy a new model: | ||
| | Column | Description | | ||
| | :---------------------- | :--------------------------------------------------------------------------------------- | | ||
| | **Pod** | The unique name of the pod. | | ||
| | **Phase** | The current lifecycle phase of the pod (e.g., Running, Pending). | | ||
| | **Ready** | Number of ready containers vs total containers. | | ||
| | **Restarts** | Number of times containers in the pod have restarted. | | ||
| | **Conditions** | The most recent condition or error status for the pod. | | ||
| | **Time to First Token** | The sum of time (in seconds) taken to generate the first token for requests to this pod. | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The description for |
||
| | **Request Latency** | The 95th percentile end-to-end request latency (in seconds) for this pod. | | ||
| | **Log** | **Clickable**: Opens the log view for the pod. | | ||
| | **Create Time** | The timestamp when the pod was created. | | ||
|
|
||
| 1. Click the **Create** button (plus icon) at the top of the page. | ||
| 2. Follow the prompts to configure and deploy your LLM service. | ||
|
|
||
| ### Delete a Model | ||
|
|
||
| To remove a model: | ||
| ## Manage Models | ||
|
|
||
| 1. Locate the model in the list. | ||
| 2. Click the **Delete** button (trash icon) in the actions menu. | ||
| 3. Confirm the action to remove the model deployment. | ||
| You can manage the lifecycle of your models using the **Actions** menu. | ||
|
|
||
| ### Model Actions | ||
|
|
||
| The **Actions** menu (three dots icon) for each model provides: | ||
|
|
||
| #### Create | ||
| Create a new model. | ||
| <Steps> | ||
| 1. Select **Create** from the actions menu or click the **Create** button. | ||
| 2. You can search for models using the cloud icon next to the input box, or select a model from your model artifacts by clicking the archive icon. | ||
| 3. Fill in the model configuration (name, namespace, prefill/decode, description, etc.). | ||
| 4. Confirm to deploy the model. | ||
| </Steps> | ||
|
|
||
| #### Update | ||
| Modify the configuration of an existing model (such as prefill/decode, description, etc.). | ||
| <Steps> | ||
| 1. Select **Update** from the actions menu. | ||
| 2. Edit the desired fields. | ||
| 3. Confirm to apply the changes. | ||
| </Steps> | ||
|
|
||
| #### Delete | ||
| Delete a model. | ||
| <Steps> | ||
| 1. Select **Delete** from the actions menu. | ||
| 2. Confirm deletion. | ||
| </Steps> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| --- | ||
| title: Model Artifact | ||
| description: Manage model files and weights for AI/ML models. | ||
| --- | ||
|
|
||
| import { Steps, Aside } from '@astrojs/starlight/components'; | ||
|
|
||
|
|
||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| The Model Artifact page allows you to manage model artifacts for your AI/ML models. You can upload, view, and delete model artifacts associated with different models and namespaces. | ||
|
|
||
|
|
||
| ## Introduction | ||
|
|
||
| The Model Artifact page displays a list of all model artifacts. The table includes the following columns: | ||
|
|
||
| | Column | Description | | ||
| | :-------------- | :----------------------------------------------------------------- | | ||
| | **Name** | The name of the model artifact. | | ||
| | **Namespace** | The Kubernetes namespace where the artifact is stored. | | ||
| | **Model Name** | The name of the associated model. | | ||
| | **Status** | The current job status for downloading or processing the artifact. | | ||
| | **Phase** | The current phase/status of the artifact. | | ||
|
Comment on lines
+22
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The descriptions for |
||
| | **Size** | The size of the artifact (GB/TB). | | ||
| | **Volume** | The volume name where the artifact is stored. | | ||
| | **Create Time** | The timestamp when the artifact was created. | | ||
| | **Actions** | Management actions (delete). | | ||
|
|
||
|
|
||
| ## Manage Model Artifacts | ||
|
|
||
| You can create new model artifacts or manage existing ones using the **Actions** menu. | ||
|
|
||
| ### Create a New Model Artifact | ||
|
|
||
| To upload a new model artifact: | ||
|
|
||
| <Steps> | ||
| 1. Click the **Create** button (plus icon) at the top of the page. | ||
| 2. A modal window titled "Create Model Artifact" will appear. | ||
| 3. **Configuration**: | ||
| - **Name**: Enter a unique name for the artifact. | ||
| - **Namespace**: Select the namespace (usually `llm-d`). | ||
| - **Model Name**: Select the model name (supports Hugging Face models). | ||
| - **Size**: Set the artifact size (GB/TB). | ||
| 4. Click **Confirm** to create the model artifact. | ||
| </Steps> | ||
|
|
||
|
|
||
| ### Model Artifact Actions | ||
|
|
||
| The **Actions** menu (trash icon) for each model artifact provides the following option: | ||
|
|
||
| #### Delete | ||
|
|
||
| Permanently removes the model artifact. | ||
|
|
||
| <Aside type="danger" title="Warning"> | ||
| Deleting a model artifact will remove the file from storage. This action cannot be undone. | ||
| </Aside> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The distinction between
NameandModel Nameis unclear.Nameis described as "The name of the model," whileModel Nameis "The unique identifier of the model (modelName/id)." This could be confusing for users. Please clarify the difference. For example, isNamea user-friendly display name, whileModel Nameis the technical identifier used by the system? Providing a more distinct description and an example would be helpful.