Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
3725c8fc
Unverified
Commit
3725c8fc
authored
Apr 28, 2021
by
BUPTLYH
Committed by
GitHub
Apr 28, 2021
Browse files
modify the config bug about Automatic Model Pruning using NNI Tuners (#3541)
parent
063d6b74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
docs/en_US/Compression/AutoPruningUsingTuners.rst
docs/en_US/Compression/AutoPruningUsingTuners.rst
+1
-1
examples/model_compress/pruning/basic_pruners_torch.py
examples/model_compress/pruning/basic_pruners_torch.py
+1
-1
examples/model_compress/pruning/config.yml
examples/model_compress/pruning/config.yml
+1
-1
No files found.
docs/en_US/Compression/AutoPruningUsingTuners.rst
View file @
3725c8fc
...
@@ -64,7 +64,7 @@ Then, define a ``config`` file in YAML to automatically tuning model, pruning al
...
@@ -64,7 +64,7 @@ Then, define a ``config`` file in YAML to automatically tuning model, pruning al
trialConcurrency: 1
trialConcurrency: 1
trialGpuNumber: 0
trialGpuNumber: 0
tuner:
tuner:
name:
g
rid
name:
G
rid
Search
The full example can be found :githublink:`here <examples/model_compress/pruning/config.yml>`
The full example can be found :githublink:`here <examples/model_compress/pruning/config.yml>`
...
...
examples/model_compress/pruning/basic_pruners_torch.py
View file @
3725c8fc
...
@@ -373,6 +373,6 @@ if __name__ == '__main__':
...
@@ -373,6 +373,6 @@ if __name__ == '__main__':
print
(
params
)
print
(
params
)
args
.
sparsity
=
params
[
'sparsity'
]
args
.
sparsity
=
params
[
'sparsity'
]
args
.
pruner
=
params
[
'pruner'
]
args
.
pruner
=
params
[
'pruner'
]
args
.
model
=
params
[
'
pruner
'
]
args
.
model
=
params
[
'
model
'
]
main
(
args
)
main
(
args
)
examples/model_compress/pruning/config.yml
View file @
3725c8fc
...
@@ -15,4 +15,4 @@ trialCommand: python3 basic_pruners_torch.py --nni
...
@@ -15,4 +15,4 @@ trialCommand: python3 basic_pruners_torch.py --nni
trialConcurrency
:
1
trialConcurrency
:
1
trialGpuNumber
:
0
trialGpuNumber
:
0
tuner
:
tuner
:
name
:
g
rid
name
:
G
rid
Search
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment