Compare commits
1
Commits
main
...
fix/cpu-limit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d59b3fe09 |
No files matched your search
+1
-1
@@ -117,7 +117,7 @@ $running = docker ps --format '{{.Names}}' | Select-String -Quiet 'd0a1-hermes-o
|
||||
if (-not $running) {
|
||||
$GpuArgs = @()
|
||||
if ($HasGpu) { $GpuArgs = @('--gpus', 'all') }
|
||||
docker run -d --name d0a1-hermes-ollama --memory 6g @GpuArgs `
|
||||
docker run -d --name d0a1-hermes-ollama --memory 6g --cpus 6.0 @GpuArgs `
|
||||
-p "${OllamaPort}:11434" `
|
||||
-v d0a1_hermes_ollama:/root/.ollama `
|
||||
-e OLLAMA_HOST=0.0.0.0 `
|
||||
|
||||
+1
-1
@@ -117,7 +117,7 @@ $running = docker ps --format '{{.Names}}' | Select-String -Quiet 'd0a1-openclaw
|
||||
if (-not $running) {
|
||||
$GpuArgs = @()
|
||||
if ($HasGpu) { $GpuArgs = @('--gpus', 'all') }
|
||||
docker run -d --name d0a1-openclaw-ollama --memory 6g @GpuArgs `
|
||||
docker run -d --name d0a1-openclaw-ollama --memory 6g --cpus 6.0 @GpuArgs `
|
||||
-p "${OllamaPort}:11434" `
|
||||
-v d0a1_openclaw_ollama:/root/.ollama `
|
||||
-e OLLAMA_HOST=0.0.0.0 `
|
||||
|
||||
@@ -30,6 +30,7 @@ services:
|
||||
resources:
|
||||
limits:
|
||||
memory: 6G
|
||||
cpus: "6.0"
|
||||
|
||||
openwebui:
|
||||
container_name: d0a1-openwebui
|
||||
|
||||
@@ -63,6 +63,7 @@ services:
|
||||
resources:
|
||||
limits:
|
||||
memory: 6G
|
||||
cpus: "6.0"
|
||||
|
||||
openwebui:
|
||||
container_name: d0a1-wp-openwebui
|
||||
|
||||
Reference in new issue
Block a user