File size: 539 Bytes
ecc5f2a
 
 
 
 
f4f7720
 
ecc5f2a
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# huggingface.yml
build:
  dockerfile: Dockerfile  # Path to Dockerfile from the root of the repository
  context: .  # Docker build context

runtime:
  env:  # Environment variables needed by the application
    TRANSFORMERS_CACHE: /app/.cache/huggingface/transformers  # Cache directory for Transformers
  port: 80  # The port on which your FastAPI application is configured to run

resources:
  cpu: 2  # Number of CPU cores
  memory: 4G  # Amount of memory allocated (4 GB in this example)
  gpu: 0  # Number of GPUs (0 for CPU only)