Skip to content
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

Chore(doc): merge multitask training doc #4395

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

iProzd
Copy link
Collaborator

@iProzd iProzd commented Nov 21, 2024

Summary by CodeRabbit

  • Documentation
    • Updated multi-task mode documentation to clarify the correct link for model freezing.
    • Enhanced fine-tuning documentation for TensorFlow and PyTorch, adding clarity on processes and configurations.
    • Consolidated multi-task training references in the documentation for easier navigation.
    • Removed deprecated TensorFlow multi-task training documentation, redirecting users to the PyTorch backend.
    • Revised multi-task training documentation to emphasize the transition to PyTorch as the sole supported backend.

Copy link
Contributor

coderabbitai bot commented Nov 21, 2024

📝 Walkthrough

Walkthrough

The pull request includes updates to several documentation files related to model freezing and fine-tuning processes for TensorFlow and PyTorch. Key changes involve correcting links, enhancing clarity on fine-tuning procedures, consolidating multi-task training references, and deprecating TensorFlow backend support for multi-task training in favor of PyTorch. Additionally, a deprecated TensorFlow multi-task training document was removed, and the overall documentation structure was refined to improve user guidance.

Changes

File Path Change Summary
doc/freeze/freeze.md Updated link in multi-task mode section for correct reference to multi-task training documentation.
doc/train/finetuning.md Enhanced clarity on fine-tuning processes, added warnings, and detailed single-task and multi-task approaches.
doc/train/index.rst Removed entries for multi-task-training-tf and multi-task-training-pt, added multi-task-training.
doc/train/multi-task-training-tf.md Deleted file warning about TensorFlow backend deprecation for multi-task training.
doc/train/multi-task-training.md Updated to reflect deprecation of TensorFlow backend for multi-task training, emphasizing PyTorch support.

Possibly related PRs

Suggested labels

Docs

Suggested reviewers

  • wanghan-iapcm

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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 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.

Copy link
Contributor

@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

🧹 Outside diff range and nitpick comments (1)
doc/freeze/freeze.md (1)

27-27: LGTM! Consider adding a note about TensorFlow deprecation.

The updated documentation link is correct and the instructions for head selection in multi-task mode are clear. However, since TensorFlow backend is being deprecated for multi-task training (as mentioned in the PR summary), it might be helpful to add a note about this.

Consider adding a note like this after the command example:

$ dp --pt freeze -o model_branch1.pth --head CHOSEN_BRANCH

+> Note: Multi-task training is only supported in PyTorch backend.


<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[misspelling] ~27-~27: This word is normally spelled as one.
Context: ...utput model is called `model.pth`.  In [multi-task mode](../train/multi-task-training), yo...

(EN_COMPOUNDS_MULTI_TASK)

</details>

</details>

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between e7925f38ba87b4cc3514121941117ab4aad205e3 and 629b208afec52ee1c07fa097ff02d0cfa3130c96.

</details>

<details>
<summary>📒 Files selected for processing (5)</summary>

* `doc/freeze/freeze.md` (1 hunks)
* `doc/train/finetuning.md` (1 hunks)
* `doc/train/index.rst` (1 hunks)
* `doc/train/multi-task-training-tf.md` (0 hunks)
* `doc/train/multi-task-training.md` (1 hunks)

</details>

<details>
<summary>💤 Files with no reviewable changes (1)</summary>

* doc/train/multi-task-training-tf.md

</details>

<details>
<summary>✅ Files skipped from review due to trivial changes (1)</summary>

* doc/train/index.rst

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🪛 LanguageTool</summary>

<details>
<summary>doc/freeze/freeze.md</summary>

[misspelling] ~27-~27: This word is normally spelled as one.
Context: ...utput model is called `model.pth`.  In [multi-task mode](../train/multi-task-training), yo...

(EN_COMPOUNDS_MULTI_TASK)

</details>
<details>
<summary>doc/train/multi-task-training.md</summary>

[misspelling] ~8-~8: This word is normally spelled as one.
Context: ...} We have deprecated TensorFlow backend multi-task training, please use the PyTorch one. :...

(EN_COMPOUNDS_MULTI_TASK)

</details>

</details>

</details>

<details>
<summary>🔇 Additional comments (2)</summary>

<details>
<summary>doc/train/multi-task-training.md (1)</summary>

`7-9`: **LGTM! Clear deprecation notice.**

The warning message effectively communicates the deprecation of TensorFlow backend and provides clear direction to users.

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[misspelling] ~8-~8: This word is normally spelled as one.
Context: ...} We have deprecated TensorFlow backend multi-task training, please use the PyTorch one. :...

(EN_COMPOUNDS_MULTI_TASK)

</details>

</details>

</details>
<details>
<summary>doc/train/finetuning.md (1)</summary>

`132-132`: **Verify and improve the documentation link.**

The link to `./multi-task-training` might need improvement:
1. Consider using the full path with file extension for better maintainability
2. Ensure it points to the correct document given the deprecation of TensorFlow multi-task training

Let's verify the link and find the correct document:

<details>
<summary>✅ Verification successful</summary>

**Link is correct and properly documented**

The link to `./multi-task-training` is valid and points to the correct document at `doc/train/multi-task-training.md`. The document is actively maintained and properly reflects the deprecation of TensorFlow backend for multi-task training, which aligns with the PR's context. The relative path format is consistent with other documentation links in the project.



</details>

<details>
<summary>🏁 Scripts executed</summary>

The following scripts were executed for the analysis:

Script:

```shell
#!/bin/bash
# Description: Verify the multi-task training documentation location and references

# Check for files matching the pattern
echo "Looking for multi-task training documentation files:"
fd -e md -e rst "multi.*task.*train"

# Check for references to multi-task training in the documentation
echo -e "\nChecking references to multi-task training in documentation:"
rg -i "multi.?task.?train" -g "*.{md,rst}"

Length of output: 2217

@github-actions github-actions bot added the Docs label Nov 21, 2024
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.58%. Comparing base (4334377) to head (629b208).
Report is 9 commits behind head on devel.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #4395      +/-   ##
==========================================
+ Coverage   84.50%   84.58%   +0.08%     
==========================================
  Files         604      614      +10     
  Lines       56945    57012      +67     
  Branches     3487     3486       -1     
==========================================
+ Hits        48120    48223     +103     
+ Misses       7698     7661      -37     
- Partials     1127     1128       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@wanghan-iapcm wanghan-iapcm added this pull request to the merge queue Nov 22, 2024
Merged via the queue into deepmodeling:devel with commit d1712c9 Nov 22, 2024
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants