Spaces:
Running
Running
File size: 878 Bytes
84635f1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
#!/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()
|