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
ColossalAI
Commits
49715a78
"...sentence-bert_pytorch.git" did not exist on "b0f4f53a823b05a4ac28cccaa9c5f40fc25a6cde"
Commit
49715a78
authored
Jan 03, 2023
by
アマデウス
Committed by
Frank Lee
Jan 04, 2023
Browse files
[NFC] polish colossalai/cli/benchmark/benchmark.py code style (#2287)
parent
1c29b173
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
colossalai/cli/benchmark/benchmark.py
colossalai/cli/benchmark/benchmark.py
+8
-7
No files found.
colossalai/cli/benchmark/benchmark.py
View file @
49715a78
import
colossalai
from
functools
import
partial
from
typing
import
Dict
,
List
import
click
import
click
import
torch.multiprocessing
as
mp
import
torch.multiprocessing
as
mp
from
functools
import
partial
import
colossalai
from
typing
import
List
,
Dict
from
colossalai.cli.benchmark.utils
import
find_all_configs
,
get_batch_data
,
profile_model
from
colossalai.context
import
Config
from
colossalai.context
import
Config
from
colossalai.context.random
import
reset_seeds
from
colossalai.context.random
import
reset_seeds
from
colossalai.core
import
global_context
as
gpc
from
colossalai.core
import
global_context
as
gpc
from
colossalai.logging
import
disable_existing_loggers
,
get_dist_logger
from
colossalai.logging
import
disable_existing_loggers
,
get_dist_logger
from
colossalai.utils
import
free_port
,
MultiTimer
from
colossalai.utils
import
MultiTimer
,
free_port
from
colossalai.cli.benchmark.utils
import
find_all_configs
,
profile_model
,
get_batch_data
from
.models
import
MLP
from
.models
import
MLP
...
@@ -53,7 +54,7 @@ def run_dist_profiling(rank: int, world_size: int, port_list: List[int], config_
...
@@ -53,7 +54,7 @@ def run_dist_profiling(rank: int, world_size: int, port_list: List[int], config_
port_list (List[int]): a list of free ports for initializing distributed networks
port_list (List[int]): a list of free ports for initializing distributed networks
config_list (List[Dict]): a list of configuration
config_list (List[Dict]): a list of configuration
hyperparams (Config): the hyperparameters given by the user
hyperparams (Config): the hyperparameters given by the user
"""
"""
# disable logging for clean output
# disable logging for clean output
...
...
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