Skip to content

ASM-21393 refine inference docs#4

Merged
fyuan1316 merged 1 commit intomasterfrom
inference-tpl
Jul 4, 2025
Merged

ASM-21393 refine inference docs#4
fyuan1316 merged 1 commit intomasterfrom
inference-tpl

Conversation

@fyuan1316
Copy link
Copy Markdown
Contributor

@fyuan1316 fyuan1316 commented Jul 3, 2025

已发未合的pr jira

Summary by CodeRabbit

  • Documentation
    • Improved and reorganized documentation for the Inference Service, including clearer operational instructions, expanded feature explanations, a new section on template management, and enhanced guidance for service updates and usage.
    • Updated Model Repository documentation with a new structure, added benefits overview, clearer step-by-step instructions, and improved formatting for better readability.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jul 3, 2025

Walkthrough

The documentation for the inference service and model repository features was extensively revised. The updates include restructuring sections, clarifying instructions, adding operational guides, introducing new features such as template management, and expanding parameter descriptions. Titles and section names were updated for clarity, and step-by-step guides were enhanced across both documents.

Changes

Files Change Summary
docs/en/model_inference/inference_service/functions/inference_service.mdx Major restructuring and clarification; new sections on advantages, template management, rolling updates, expanded operational instructions, parameter tables, and improved API usage documentation.
docs/en/model_inference/model_management/functions/model_repository.mdx Title and section renaming, addition of "Advantages" and "Core Features," improved step-by-step instructions, and formatting enhancements.

Poem

In the warren of docs, we've tidied each page,
With templates and steps, we set the stage.
From models to inference, the journey's now clear,
With tables and guides, all rabbits can cheer!
🐇✨

Hop along, explore—new knowledge is here!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@fyuan1316 fyuan1316 changed the title refine inference docs ASM-21393 refine inference docs Jul 3, 2025
@fyuan1316 fyuan1316 marked this pull request as draft July 3, 2025 02:43
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (5)
docs/en/model_inference/model_management/functions/model_repository.mdx (2)

12-13: Minor wording tweak improves clarity.

“CLI/Notebook uploads leverage internal network bandwidth.” reads a little abrupt.
Consider:

-  - CLI/Notebook uploads leverage internal network bandwidth.
+  - CLI- or Notebook-based uploads use the internal network bandwidth for faster transfer.

60-64: Heading capitalization typo.

## Technical Notes is great, but the subsequent list isn’t capitalized consistently (Default Branch Rules).
Make headings Title-Case throughout or sentence-case throughout to keep style uniform.

docs/en/model_inference/inference_service/functions/inference_service.mdx (3)

67-70: Add hyphen & tighten phrasing in the tip block.

- Custom publishing inference service requires manual setting of parameters.
+ Custom-publishing an inference service requires manual parameter configuration.

93-96: Capitalisation of “KServe”.

The sentence references the CNCF project. Use the official capitalisation to avoid confusion.

- based on [kserve](https://github.com/kserve/kserve) InferenceService CRD
+ based on [KServe](https://github.com/kserve/kserve) InferenceService CRD

185-186: Clarify scope of Swagger/code examples.

The note is helpful but can be mis-read as a limitation of the platform rather than the runtime.

- In addition, the Swagger tab also only supports access to the inference service published by the mlserver runtime.
+ Likewise, the **Swagger** tab is generated only for services published with the *mlserver* runtime.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1234a33 and f931f6d.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (3)
  • docs/en/model_inference/inference_service/functions/inference_service.mdx (8 hunks)
  • docs/en/model_inference/model_management/functions/model_repository.mdx (1 hunks)
  • package.json (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/en/model_inference/model_management/functions/model_repository.mdx

[uncategorized] ~9-~9: Possible missing preposition found.
Context: ...t and deployment. ## Advantages 1. Git-native Version Control - Track m...

(AI_HYDRA_LEO_MISSING_OF)


[uncategorized] ~16-~16: This verb does not appear to agree with the subject. Consider using a different form.
Context: ...Seamless Integration* - Directly deploy models from the repository to inference...

(AI_EN_LECTOR_REPLACEMENT_VERB_AGREEMENT)

docs/en/model_inference/inference_service/functions/inference_service.mdx

[uncategorized] ~72-~72: Consider adding a hyphen.
Context: ...ck Publish Inference Service in the upper right corner. ### Step 3 If the **"Publish ...

(TOP_LEFT_CORNER)


[uncategorized] ~95-~95: Consider adding a hyphen.
Context: ...can also click the "YAML" button in the upper right corner when "Publish inference service ...

(TOP_LEFT_CORNER)

🔇 Additional comments (1)
package.json (1)

3-3: Check for breaking changes & lock-file update when bumping @alauda/doom.

Jumping three minor versions (0.19 → 0.23) can introduce breaking behaviour in dev-tooling.

  1. Review the CHANGELOG for @alauda/doom ≥ 0.23.0.
  2. Run yarn dlx @yarnpkg/doctor to ensure the lock-file has been refreshed (yarn install --mode=update-lockfile).
  3. Re-build the docs locally (yarn build) to surface any incompatibilities early.

Signed-off-by: Yuan Fang <yuanfang@alauda.io>
@fyuan1316 fyuan1316 marked this pull request as ready for review July 3, 2025 03:30
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (6)
docs/en/model_inference/model_management/functions/model_repository.mdx (2)

6-6: Improve phrasing of the integration sentence

The phrase “to bridge model development and deployment” reads awkwardly.
A small tweak improves clarity:

-… and integrates with MLOps workflows to bridge model development and deployment.  
+… and integrates with MLOps workflows to bridge the gap between model development and deployment.  

80-81: Tighten the instructional wording

Grammatically, proceed to Create is vague. A direct action verb reads better:

-After defining the necessary information, proceed to `Create` the empty Model Repository.
+After defining the necessary information, click **Create** to generate the empty model repository.
docs/en/model_inference/inference_service/functions/inference_service.mdx (4)

20-22: Replace “deployment threshold” with clearer wording

“Lower the deployment threshold” is unusual phrasing in English. Consider a more idiomatic alternative:

-… This simplifies the model deployment process and lowers the deployment threshold.
+… This simplifies the model deployment process and lowers the barrier to entry.

75-76: Use “disabled” instead of “not clickable”

“Not clickable” sounds informal and may confuse translators. Suggest:

-If the **"Publish Inference Service"** button is not clickable,
+If the **Publish Inference Service** button is disabled,

93-94: Streamline the auto-scaling explanation

Minor wording clean-up for brevity & clarity:

-At this time, if a request comes, the inference service can automatically start and load the model cached in the PVC.
+When a new request arrives, the service automatically restarts and loads the cached model from the PVC.

98-121: Clarify instance count vs. auto-scaling parameters

The table lists both Auto scaling (boolean) and Number of instances (required) without explaining their interaction. Readers may wonder which value is honored when auto-scaling is enabled.

Recommendation:

  1. Rename the field to Initial number of replicas.
  2. Add a note explaining it serves as the initial/min-replica count when auto-scaling is on.
-| Number of instances | Required, The number of instances running the inference service.|
+| Initial number of replicas | Required.  When auto-scaling is enabled, this acts as the minimum replica count.|
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f931f6d and 1e17189.

📒 Files selected for processing (2)
  • docs/en/model_inference/inference_service/functions/inference_service.mdx (7 hunks)
  • docs/en/model_inference/model_management/functions/model_repository.mdx (2 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/en/model_inference/inference_service/functions/inference_service.mdx

[uncategorized] ~72-~72: Consider adding a hyphen.
Context: ...ck Publish Inference Service in the upper right corner. ### Step 3: Configure Model Me...

(TOP_LEFT_CORNER)


[uncategorized] ~95-~95: Consider adding a hyphen.
Context: ...can also click the "YAML" button in the upper right corner when "Publish inference service ...

(TOP_LEFT_CORNER)

docs/en/model_inference/model_management/functions/model_repository.mdx

[uncategorized] ~9-~9: Possible missing preposition found.
Context: ...t and deployment. ## Advantages 1. Git-native Version Control - Track m...

(AI_HYDRA_LEO_MISSING_OF)


[uncategorized] ~16-~16: This verb does not appear to agree with the subject. Consider using a different form.
Context: ... Seamless Integration - Directly deploy models from the repository to inference...

(AI_EN_LECTOR_REPLACEMENT_VERB_AGREEMENT)

Comment on lines +70 to 77
### Step 1: Define Repository Metadata

| Parameters | Description |
| :----- | :--------------------------------- |
| Name | Required, Model Repository Name. |
| Labels | Custom tags for categorization and search. (e.g., "CV", "NLP", "production") |
| Description | Detailed explanation of the repository's purpose, model type, or usage guidelines. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add the missing “Visibility” field to the metadata table

The UI exposes a visibility option (Private / Shared / Public), yet the table omits it. Without documentation, users may overlook the setting and lock themselves out of cross-tenant sharing.

 | Name | Required, Model Repository Name. |
+| Visibility | Repository exposure level: **Private**, **Shared**, or **Public**. Determines who can see / clone the repo. |
 | Labels | Custom tags for categorization and search. (e.g., "CV", "NLP", "production") |
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
### Step 1: Define Repository Metadata
| Parameters | Description |
| :----- | :--------------------------------- |
| Name | Required, Model Repository Name. |
| Labels | Custom tags for categorization and search. (e.g., "CV", "NLP", "production") |
| Description | Detailed explanation of the repository's purpose, model type, or usage guidelines. |
### Step 1: Define Repository Metadata
| Parameters | Description |
| :----- | :--------------------------------- |
| Name | Required, Model Repository Name. |
| Visibility | Repository exposure level: **Private**, **Shared**, or **Public**. Determines who can see / clone the repo. |
| Labels | Custom tags for categorization and search. (e.g., "CV", "NLP", "production") |
| Description | Detailed explanation of the repository's purpose, model type, or usage guidelines. |
🤖 Prompt for AI Agents
In docs/en/model_inference/model_management/functions/model_repository.mdx
around lines 70 to 77, the metadata table is missing the "Visibility" field that
describes the repository's visibility options (Private / Shared / Public). Add a
new row to the table with "Visibility" as the parameter and a description
explaining the visibility settings and their impact on cross-tenant sharing to
ensure users are aware of this important configuration.

@fyuan1316 fyuan1316 merged commit 089766f into master Jul 4, 2025
2 checks passed
@JounQin JounQin deleted the inference-tpl branch August 13, 2025 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant