MogensR commited on
Commit
afc85dc
·
1 Parent(s): 534613d

Create sitecustomize.py

Browse files
Files changed (1) hide show
  1. sitecustomize.py +9 -0
sitecustomize.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # sitecustomize.py (put at repo root)
2
+ import os
3
+ os.environ.setdefault(
4
+ "PYTORCH_CUDA_ALLOC_CONF",
5
+ "expandable_segments:True,max_split_size_mb:128",
6
+ )
7
+ # Optional knobs for our loader downscaling (safer defaults)
8
+ os.environ.setdefault("MATANYONE_MAX_EDGE", "640")
9
+ os.environ.setdefault("MATANYONE_TARGET_PIXELS", "400000")