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
opencompass
Commits
889a6b26
"src/include/ConstantTensorDescriptor.cuh" did not exist on "ac1f62be3fbdad4f37d98ad0928914fe591a6364"
Unverified
Commit
889a6b26
authored
Nov 09, 2023
by
Hubert
Committed by
GitHub
Nov 09, 2023
Browse files
[Fix] fix log re-direct (#564)
parent
cf5a6d1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
configs/eval_minimax.py
configs/eval_minimax.py
+1
-1
opencompass/runners/local_api.py
opencompass/runners/local_api.py
+6
-1
No files found.
configs/eval_minimax.py
View file @
889a6b26
from
mmengine.config
import
read_base
from
opencompass.models
.minimax
import
MiniMax
from
opencompass.models
import
MiniMax
from
opencompass.partitioners
import
NaivePartitioner
from
opencompass.runners
import
LocalRunner
from
opencompass.runners.local_api
import
LocalAPIRunner
...
...
opencompass/runners/local_api.py
View file @
889a6b26
...
...
@@ -4,6 +4,7 @@ import os.path as osp
import
subprocess
import
sys
import
time
import
traceback
from
multiprocessing
import
Manager
,
Pool
from
multiprocessing.managers
import
SyncManager
from
typing
import
Any
,
Dict
,
List
,
Tuple
...
...
@@ -122,9 +123,13 @@ def launch(task: BaseTask, tokens: SyncManager.Semaphore):
end_time
=
time
.
time
()
logger
.
info
(
f
'time elapsed:
{
end_time
-
start_time
:.
2
f
}
s'
)
except
Exception
:
# print trace back in target file
traceback
.
print_exc
()
# reset stdout and stderr
reset_std
()
logger
.
warning
(
f
'task
{
task_name
}
fail, see
\n
{
out_path
}
'
)
returncode
=
1
finally
:
else
:
# reset stdout and stderr
reset_std
()
return
task_name
,
returncode
...
...
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