Skip to content

Commit d606b98

Browse files
authored
Improve code blocks' comments formatting. (#37)
Very simple edit to improve the formatting of comments in code blocks + adds highlighting to Project Structure code block to make comments in gray color.
1 parent 034a7ce commit d606b98

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ docker-compose up --build
6565

6666
**Environment variables:**
6767
```bash
68-
NVIDIA_VISIBLE_DEVICES=0,1 # Specific GPUs (default: all)
68+
NVIDIA_VISIBLE_DEVICES=0,1 # Specific GPUs (default: all)
6969
NVIDIA_SMI=true # Force nvidia-smi mode for older GPUs
7070
GPU_HOT_MODE=hub # Set to 'hub' for multi-node aggregation (default: single node)
7171
NODE_NAME=gpu-server-1 # Node display name (default: hostname)
@@ -74,8 +74,8 @@ NODE_URLS=http://host:1312... # Comma-separated node URLs (required for hub mod
7474

7575
**Backend (`core/config.py`):**
7676
```python
77-
UPDATE_INTERVAL = 0.5 # Polling interval
78-
PORT = 1312 # Server port
77+
UPDATE_INTERVAL = 0.5 # Polling interval
78+
PORT = 1312 # Server port
7979
```
8080

8181
---
@@ -99,7 +99,7 @@ socket.on('gpu_data', (data) => {
9999

100100
## Project Structure
101101

102-
```
102+
```bash
103103
gpu-hot/
104104
├── app.py # Flask + WebSocket server
105105
├── core/
@@ -136,7 +136,7 @@ docker run --rm --gpus all nvidia/cuda:12.1.0-base-ubuntu22.04 nvidia-smi # Tes
136136
**Hub can't connect to nodes:**
137137
```bash
138138
curl http://node-ip:1312/api/gpu-data # Test connectivity
139-
sudo ufw allow 1312/tcp # Check firewall
139+
sudo ufw allow 1312/tcp # Check firewall
140140
```
141141

142142
**Performance issues:** Increase `UPDATE_INTERVAL` in `core/config.py`

0 commit comments

Comments
 (0)