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
ModelZoo
ChatGLM2-6B_pytorch
Commits
8a657534
Commit
8a657534
authored
Nov 09, 2023
by
zhaoying1
Browse files
Update run_train.sh
parent
73613eea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ptuning/multi_node/run_train.sh
ptuning/multi_node/run_train.sh
+2
-3
No files found.
ptuning/multi_node/run_train.sh
View file @
8a657534
...
@@ -18,8 +18,7 @@ hostfile=./hostfile
...
@@ -18,8 +18,7 @@ hostfile=./hostfile
np
=
$(
cat
$hostfile
|sort|uniq |wc
-l
)
np
=
$(
cat
$hostfile
|sort|uniq |wc
-l
)
np
=
$((
$np
*
8
))
np
=
$((
$np
*
8
))
nodename
=
$(
cat
$hostfile
|sed
-n
"1p"
)
dist_url
=
`
echo
$nodename
|
awk
'{print $1}'
`
which mpirun
which mpirun
mpirun
-np
$np
--allow-run-as-root
--hostfile
hostfile
--bind-to
none
--mca
btl_tcp_if_include
$dist_url
run_train_single.sh
mpirun
-np
$np
--allow-run-as-root
--hostfile
hostfile
--bind-to
none
--mca
btl_tcp_if_include
enp97s0f1
run_train_single.sh
8
echo
"END TIME:
$(
date
)
"
echo
"END TIME:
$(
date
)
"
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