ontology-prototype / api /requirements.txt
ForStream
Fix OOM: KoSimCSE lazy 로드 + torch CPU 휠 + spaces 제거 + thread 제한
72ceb13
raw
history blame contribute delete
470 Bytes
# torch는 CPU 전용 휠 사용 (CUDA 라이브러리 ~5GB 제거 → 이미지·메모리 대폭 감소)
--extra-index-url https://download.pytorch.org/whl/cpu
fastapi==0.115.6
uvicorn[standard]==0.32.1
pydantic==2.10.4
python-multipart==0.0.20
# 기존 백엔드 의존성 (rag_engine, semantic_search)
rdflib==7.1.1
sentence-transformers==5.1.2
transformers==4.57.6
torch==2.8.0
numpy
# LLM 호출
anthropic==0.40.0
huggingface_hub==0.36.2
requests
ollama==0.4.4