Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
221cb0332
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
221cb0332
Commits
98dc711f
Commit
98dc711f
authored
3 years ago
by
lizhenyu
Browse files
Options
Downloads
Patches
Plain Diff
bugfix for wide&deep ps mode
parent
8c7be1f3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
official/recommend/wide_and_deep/script/run_parameter_server_train_standalone.sh
+7
-5
7 additions, 5 deletions
..._and_deep/script/run_parameter_server_train_standalone.sh
with
7 additions
and
5 deletions
official/recommend/wide_and_deep/script/run_parameter_server_train_standalone.sh
+
7
−
5
View file @
98dc711f
...
...
@@ -15,7 +15,7 @@
# ============================================================================
#bash run_parameter_server_train_standalone.sh EPOCHS DEVICE_TARGET DATASET SERVER_NUM SCHED_HOST
# SCHED_PORT DEVICE_ID VOCAB_CACHE_SIZE SPARSE
# SCHED_PORT DEVICE_ID
RANK_TABLE_FILE
VOCAB_CACHE_SIZE SPARSE
execute_path
=
$(
pwd
)
self_path
=
$(
cd
"
$(
dirname
"
$0
"
)
"
||
exit
;
pwd
)
export
EPOCH_SIZE
=
$1
...
...
@@ -27,14 +27,15 @@ export MS_SERVER_NUM=$4
export
MS_SCHED_HOST
=
$5
export
MS_SCHED_PORT
=
$6
DEVICE_ID
=
$7
export
VOCAB_CACHE_SIZE
=
$8
export
SPARSE
=
$9
export
RANK_TABLE_FILE
=
$8
export
VOCAB_CACHE_SIZE
=
$9
export
SPARSE
=
${
10
}
if
[[
!
-n
"
$
8
"
]]
;
then
if
[[
!
-n
"
$
9
"
]]
;
then
export
VOCAB_CACHE_SIZE
=
0
fi
if
[[
!
-n
"
$
9
"
]]
;
then
if
[[
!
-n
"
$
{
10
}
"
]]
;
then
export
SPARSE
=
False
fi
...
...
@@ -76,6 +77,7 @@ export MS_ROLE=MS_WORKER
rm
-rf
${
execute_path
}
/worker/
mkdir
${
execute_path
}
/worker/
cd
${
execute_path
}
/worker/
||
exit
export
RANK_ID
=
0
python
-s
${
self_path
}
/../train_and_eval_parameter_server_standalone.py
--device_target
=
$DEVICE_TARGET
\
--epochs
=
$EPOCH_SIZE
--data_path
=
$DATASET
--parameter_server
=
1
\
--vocab_cache_size
=
$VOCAB_CACHE_SIZE
--sparse
=
$SPARSE
--dropout_flag
=
True
>
worker.log 2>&1 &
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment