Updated environment variables and volumes

This commit is contained in:
bud003
2025-01-02 22:59:13 +11:00
committed by GitHub
parent 64f8814eee
commit 10753578db
+5 -2
View File
@@ -4,9 +4,12 @@ services:
context: .
dockerfile: Dockerfile
environment:
#
# Set environment variables for your container
# PYTORCH_CUDA_ALLOC_CONF: "expandable_segments:True"
PYTORCH_CUDA_ALLOC_CONF: max_split_size_mb:128
#
# expandable_segments (default False) allows the allocator to create a segment initially and then expand its size later when more memory is needed.
# Ref: https://pytorch.org/docs/stable/notes/cuda.html
PYTORCH_CUDA_ALLOC_CONF: "expandable_segments:False"
runtime: nvidia # Use NVIDIA runtime for GPU support
deploy:
resources: