mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-03 04:02:49 +08:00
15 lines
287 B
Python
15 lines
287 B
Python
import uvicorn
|
|
|
|
from llmtuner import ChatModel, create_app
|
|
|
|
|
|
def main():
|
|
chat_model = ChatModel()
|
|
app = create_app(chat_model)
|
|
uvicorn.run(app, host="0.0.0.0", port=8000, workers=1)
|
|
# Visit http://localhost:8000/docs for document.
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|