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
8215a202
Unverified
Commit
8215a202
authored
Apr 27, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Apr 27, 2024
Browse files
Merge pull request #1799 from karaketir16/patch-1
fix: docker gpus option "all" support in run-compose.sh
parents
c1d85f8a
57d17845
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
run-compose.sh
run-compose.sh
+2
-1
No files found.
run-compose.sh
View file @
8215a202
...
...
@@ -82,6 +82,7 @@ usage() {
echo
"Examples:"
echo
"
$0
--drop"
echo
"
$0
--enable-gpu[count=1]"
echo
"
$0
--enable-gpu[count=all]"
echo
"
$0
--enable-api[port=11435]"
echo
"
$0
--enable-gpu[count=1] --enable-api[port=12345] --webui[port=3000]"
echo
"
$0
--enable-gpu[count=1] --enable-api[port=12345] --webui[port=3000] --data[folder=./ollama-data]"
...
...
@@ -160,7 +161,7 @@ else
if
[[
$enable_gpu
==
true
]]
;
then
# Validate and process command-line arguments
if
[[
-n
$gpu_count
]]
;
then
if
!
[[
$gpu_count
=
~ ^[0-9]+
$
]]
;
then
if
!
[[
$gpu_count
=
~ ^
(
[
0-9]+
|all
)
$
]]
;
then
echo
"Invalid GPU count:
$gpu_count
"
exit
1
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