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
text-generation-inference
Commits
1ba78207
Unverified
Commit
1ba78207
authored
May 22, 2023
by
Xin Yang
Committed by
GitHub
May 22, 2023
Browse files
fix: set MODEL_ID in sagemaker-entrypoint script (#343)
parent
5a582261
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
sagemaker-entrypoint.sh
sagemaker-entrypoint.sh
+2
-1
No files found.
sagemaker-entrypoint.sh
View file @
1ba78207
...
@@ -4,6 +4,7 @@ if [[ -z "${HF_MODEL_ID}" ]]; then
...
@@ -4,6 +4,7 @@ if [[ -z "${HF_MODEL_ID}" ]]; then
echo
"HF_MODEL_ID must be set"
echo
"HF_MODEL_ID must be set"
exit
1
exit
1
fi
fi
export
MODEL_ID
=
"
${
HF_MODEL_ID
}
"
if
[[
-n
"
${
HF_MODEL_REVISION
}
"
]]
;
then
if
[[
-n
"
${
HF_MODEL_REVISION
}
"
]]
;
then
export
REVISION
=
"
${
HF_MODEL_REVISION
}
"
export
REVISION
=
"
${
HF_MODEL_REVISION
}
"
...
@@ -17,4 +18,4 @@ if [[ -n "${HF_MODEL_QUANTIZE}" ]]; then
...
@@ -17,4 +18,4 @@ if [[ -n "${HF_MODEL_QUANTIZE}" ]]; then
export
QUANTIZE
=
"
${
HF_MODEL_QUANTIZE
}
"
export
QUANTIZE
=
"
${
HF_MODEL_QUANTIZE
}
"
fi
fi
text-generation-launcher
--port
8080
text-generation-launcher
--port
8080
\ No newline at end of file
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