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
chenpangpang
open-webui
Commits
9b38788a
Unverified
Commit
9b38788a
authored
Jun 09, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jun 09, 2024
Browse files
Merge pull request #2937 from mindspawn/cuda-fix
Enable case independent environment variable testing in start.sh
parents
c44fc82e
575f23cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
backend/start.sh
backend/start.sh
+2
-2
No files found.
backend/start.sh
View file @
9b38788a
...
...
@@ -20,12 +20,12 @@ if test "$WEBUI_SECRET_KEY $WEBUI_JWT_SECRET_KEY" = " "; then
WEBUI_SECRET_KEY
=
$(
cat
"
$KEY_FILE
"
)
fi
if
[
"
$USE_OLLAMA_DOCKER
"
=
"true"
]
;
then
if
[
[
"
$
{
USE_OLLAMA_DOCKER
,,
}
"
=
=
"true"
]
]
;
then
echo
"USE_OLLAMA is set to true, starting ollama serve."
ollama serve &
fi
if
[
"
$USE_CUDA_DOCKER
"
=
"true"
]
;
then
if
[
[
"
$
{
USE_CUDA_DOCKER
,,
}
"
=
=
"true"
]
]
;
then
echo
"CUDA is enabled, appending LD_LIBRARY_PATH to include torch/cudnn & cublas libraries."
export
LD_LIBRARY_PATH
=
"
$LD_LIBRARY_PATH
:/usr/local/lib/python3.11/site-packages/torch/lib:/usr/local/lib/python3.11/site-packages/nvidia/cudnn/lib"
fi
...
...
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