style: lint code

This commit is contained in:
Sun-ZhenXing
2026-02-23 17:41:05 +08:00
parent ced072de66
commit 7e14b01b78
240 changed files with 4301 additions and 1539 deletions

View File

@@ -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

View File

@@ -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]
```
## 使用方法

View File

@@ -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