lily_fast_api / lily_llm_api /app_v2_modular.py
gbrabbit's picture
Auto commit at 23-2025-08 10:05:36
84635f1
raw
history blame
878 Bytes
#!/usr/bin/env python3
"""
Lily LLM API μ„œλ²„ v2 - λͺ¨λ“ˆν™”λœ 버전
"""
import uvicorn
import logging
import warnings
# πŸ”„ RoPE κ²½κ³  숨기기
warnings.filterwarnings("ignore", message="The attention layers in this model are transitioning")
warnings.filterwarnings("ignore", message="rotary_pos_emb will be removed")
warnings.filterwarnings("ignore", message="position_embeddings will be mandatory")
# logging μ„€μ •
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
from .core.app_factory import create_app
# FastAPI μ• ν”Œλ¦¬μΌ€μ΄μ…˜ 생성
app = create_app()
def run_server():
"""μ„œλ²„ μ‹€ν–‰"""
uvicorn.run(
"app_v2_modular:app",
host="0.0.0.0",
port=8000,
reload=False,
workers=1
)
if __name__ == "__main__":
run_server()