forked from TensorAlchemy/TensorAlchemy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yml
59 lines (56 loc) · 1.54 KB
/
docker-compose.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.8'
services:
stableminer:
build:
context: .
dockerfile: ./neurons/miners/Dockerfile
container_name: stableminer_container
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
volumes:
- .:/app
- ~/.bittensor:/root/.bittensor
ports:
- "8101:8101"
command: ["bash", "-c", "python3.10 /app/neurons/miners/StableMiner/main.py \
--wallet.name YOUR_WALLET_NAME \
--wallet.hotkey YOUR_WALLET_HOTKEY \
--netuid 25 \
--subtensor.network test \
--axon.port 8101 \
--logging.debug \
--logging.trace \
--miner.device cuda:0 \
--miner.model stabilityai/stable-diffusion-xl-base-1.0 \
--refiner.enable false"]
networks:
- stableminer_network
validator:
build:
context: .
dockerfile: ./neurons/validator/Dockerfile
container_name: validator_container
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
volumes:
- .:/app
- ~/.bittensor:/root/.bittensor
ports:
- "8000:8000"
command: ["bash", "-c", "python3.10 /app/neurons/validator/main.py \
--wallet.name YOUR_WALLET_NAME \
--wallet.hotkey YOUR_WALLET_HOTKEY \
--netuid 25 \
--subtensor.network test \
--axon.port 8000 \
--logging.debug \
--logging.trace"]
networks:
- stableminer_network
networks:
stableminer_network:
driver: bridge