marker icon indicating copy to clipboard operation
marker copied to clipboard

Docker compose ?

Open drmetro09 opened this issue 1 year ago • 5 comments

Hi , is there any way to install marker using docker compose?

drmetro09 avatar May 31 '24 17:05 drmetro09

need this too

hoey94 avatar Jun 08 '24 16:06 hoey94

Even im waiting for docker compose file of this amazing project

drmetro09 avatar Jun 09 '24 10:06 drmetro09

I was using this last year:

# This example builds and runs the cuda version
services:
  marker:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        - BASE_IMAGE=pytorch/pytorch:2.1.2-cuda12.1-cudnn8-devel
    command: poetry run python3 main.py
    # restart: always
    shm_size: '16gb' # set this to the size of VRAM if possible
    volumes:
      - ./input:/input
      - ./output:/output
      - xdg_cache:/root/.cache
    environment:
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=compute,utility
      - TORCH_DEVICE=cuda
      - INFERENCE_RAM=16
    ports:
      - "8000:8000"
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

volumes:
  xdg_cache:

gardner avatar Mar 23 '25 07:03 gardner

torch 2.7.0 version is here

xiaoyao9184 avatar Jun 11 '25 01:06 xiaoyao9184