-
Notifications
You must be signed in to change notification settings - Fork 77
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
[Relax][Training] Optimizer API #107
Merged
Ubospica
merged 24 commits into
mlc-ai:relax
from
Ubospica:mlc-dev/2023-01-19-optimizer
Jan 29, 2023
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
04de133
original version
Ubospica 2200cb6
first draft
Ubospica 94b1b79
momentum + sgd
Ubospica 007ffb9
adam draft
Ubospica 14512c5
finished
Ubospica 4c99ce8
update doc
Ubospica ca51d7b
fix ci
Ubospica 0ec5b42
fix ci
Ubospica 88b28bf
fix ci
Ubospica edb6f98
remove examples
Ubospica 6097745
fix
Ubospica 68e6f2e
bug fixed
Ubospica ed6beaf
update doc
Ubospica b5b1acd
change names
Ubospica ee72496
rollback changes on structural_equal.cc
Ubospica 024df4d
add duplicate check
Ubospica 5e22cfa
fix commments v1
Ubospica a22844c
fix comments v2
Ubospica bb03c05
reformatted
Ubospica 19027e5
update docs
Ubospica 15ec2a0
update error messages
Ubospica 4e2286a
update anno
Ubospica 07dd34f
- Add __call__
Ubospica b983eaf
fix ci
Ubospica File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,3 +86,6 @@ | |
TupleStructInfo, | ||
FuncStructInfo, | ||
) | ||
|
||
# Training utils | ||
from .training import optimizer |
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,19 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
"""The Relax training APIs.""" | ||
|
||
from . import optimizer |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
C++ Blockbuilders have these parameters. We expose them to python