File size: 438 Bytes
d187b57
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
version: '3.8'

services:
  toxic-classifier:
    build: .
    runtime: nvidia  # Enable NVIDIA runtime for GPU support
    environment:
      - NVIDIA_VISIBLE_DEVICES=all
      - WANDB_API_KEY=${WANDB_API_KEY}  # Set this in .env file
    volumes:
      - ./dataset:/app/dataset  # Mount dataset directory
      - ./weights:/app/weights  # Mount weights directory
    command: python model/train.py  # Default command, can be overridden