style: lint code
This commit is contained in:
@@ -50,8 +50,8 @@ deploy:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
device_ids: [ '0' ]
|
||||
capabilities: [ gpu ]
|
||||
device_ids: ['0']
|
||||
capabilities: [gpu]
|
||||
```
|
||||
|
||||
### Requirements
|
||||
@@ -78,8 +78,8 @@ To use AMD GPUs with ROCm support:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: amdgpu
|
||||
device_ids: [ '0' ]
|
||||
capabilities: [ gpu ]
|
||||
device_ids: ['0']
|
||||
capabilities: [gpu]
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -50,8 +50,8 @@ deploy:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
device_ids: [ '0' ]
|
||||
capabilities: [ gpu ]
|
||||
device_ids: ['0']
|
||||
capabilities: [gpu]
|
||||
```
|
||||
|
||||
### 要求
|
||||
@@ -78,8 +78,8 @@ deploy:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: amdgpu
|
||||
device_ids: [ '0' ]
|
||||
capabilities: [ gpu ]
|
||||
device_ids: ['0']
|
||||
capabilities: [gpu]
|
||||
```
|
||||
|
||||
## 使用方法
|
||||
|
||||
@@ -4,14 +4,14 @@ x-defaults: &defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
max-file: "3"
|
||||
max-file: '3'
|
||||
|
||||
services:
|
||||
gpustack:
|
||||
<<: *defaults
|
||||
image: ${GLOBAL_REGISTRY:-}gpustack/gpustack:${GPUSTACK_VERSION:-v0.7.1}
|
||||
ports:
|
||||
- "${GPUSTACK_PORT_OVERRIDE:-80}:80"
|
||||
- '${GPUSTACK_PORT_OVERRIDE:-80}:80'
|
||||
volumes:
|
||||
- gpustack_data:/var/lib/gpustack
|
||||
environment:
|
||||
@@ -33,10 +33,10 @@ services:
|
||||
memory: ${GPUSTACK_MEMORY_RESERVATION:-4G}
|
||||
devices:
|
||||
- driver: nvidia
|
||||
device_ids: [ '0' ]
|
||||
capabilities: [ gpu ]
|
||||
device_ids: ['0']
|
||||
capabilities: [gpu]
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/health"]
|
||||
test: [CMD, wget, --no-verbose, --tries=1, --spider, 'http://localhost:80/health']
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user