Skip to content

Conversation

@Ubospica
Copy link
Contributor

@Ubospica Ubospica commented Jul 4, 2023

This PR adds these features to the gradient system:

  • Checkpointing for gradient pass
    • tvm.relax.testing.nn.checkpoint
    • tvm.relax.op.grad.start_checkpoint and tvm.relax.op.grad.start_checkpoint
    • Support in the Gradient pass
  • Fix several minor problems in op_gradient

The logics for registering tir gradients still need be considered and refactored for several design considerations.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Jul 4, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@Ubospica Ubospica force-pushed the unity-dev/2023-07-04-gradient-update branch from 0b1334d to 1f0ef8c Compare July 8, 2023 19:13
@Ubospica Ubospica force-pushed the unity-dev/2023-07-04-gradient-update branch from 1f0ef8c to f131c95 Compare July 12, 2023 00:38
@Ubospica Ubospica marked this pull request as ready for review July 12, 2023 00:51
@tqchen tqchen merged commit e2a6e8f into apache:unity Jul 16, 2023
junrushao pushed a commit that referenced this pull request Jul 18, 2023
This PR adds these features to the gradient system:
- Checkpointing for gradient pass
    - `tvm.relax.testing.nn.checkpoint`
    - `tvm.relax.op.grad.start_checkpoint` and `tvm.relax.op.grad.start_checkpoint`
    - Support in the Gradient pass
- Fix several minor problems in op_gradient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants