First commit

This commit is contained in:
kyy
2025-11-05 15:20:21 +09:00
commit fe8601ac63
22 changed files with 3414 additions and 0 deletions

12
config/env_setup.py Normal file
View File

@@ -0,0 +1,12 @@
import os
import torch
def setup_environment():
"""
OCR 모델 실행에 필요한 환경 변수를 설정합니다.
"""
if torch.version.cuda == "11.8":
os.environ["TRITON_PTXAS_PATH"] = "/usr/local/cuda-11.8/bin/ptxas"
os.environ["VLLM_USE_V1"] = "0"
os.environ["CUDA_VISIBLE_DEVICES"] = "0"