feiyun0112 / local-llm-server Goto Github PK
View Code? Open in Web Editor NEWquick way to build a private large language model server and provide OpenAI-compatible interfaces | 快速搭建私有大语言模型(LLM)服务,提供OpenAI兼容接口
License: Apache License 2.0
quick way to build a private large language model server and provide OpenAI-compatible interfaces | 快速搭建私有大语言模型(LLM)服务,提供OpenAI兼容接口
License: Apache License 2.0
Does it support streaming API calls?
D:\Local-LLM-Server\demos\dotnet-demo\bin\Debug\net6.0>dotnet-demo.exe
Unhandled exception. Microsoft.SemanticKernel.HttpOperationException: Service request failed.
Status: 400 (Bad Request)
Content:
{"object":"error","message":"Only allowed now, your model ChatModel","code":40301}
Headers:
Date: Tue, 30 Jan 2024 06:08:50 GMT
Server: uvicorn
Content-Length: 83
Content-Type: application/json
---> Azure.RequestFailedException: Service request failed.
D:\Local-LLM-Server>python startup.py
2024-01-30 14:12:46 | ERROR | stderr | �[32mINFO�[0m: Started server process [�[36m9664�[0m]
2024-01-30 14:12:46 | ERROR | stderr | �[32mINFO�[0m: Waiting for application startup.
2024-01-30 14:12:46 | ERROR | stderr | �[32mINFO�[0m: Application startup complete.
2024-01-30 14:12:46 | ERROR | stderr | �[32mINFO�[0m: Uvicorn running on �[1mhttp://127.0.0.1:21001�[0m (Press CTRL+C to quit)
2024-01-30 14:12:47 | ERROR | stderr | INFO: Started server process [19276]
2024-01-30 14:12:47 | ERROR | stderr | INFO: Waiting for application startup.
2024-01-30 14:12:47 | ERROR | stderr | INFO: Application startup complete.
2024-01-30 14:12:47 | ERROR | stderr | INFO: Uvicorn running on http://127.0.0.1:21000 (Press CTRL+C to quit)
2024-01-30 14:12:52 | INFO | model_worker | Loading the model ['ChatModel'] on worker b8b48c0d ...
2024-01-30 14:13:04 | INFO | stdout | INFO: 127.0.0.1:50817 - "POST /list_models HTTP/1.1" 200 OK
2024-01-30 14:13:04 | INFO | stdout | INFO: 127.0.0.1:50816 - "POST /v1/chat/completions HTTP/1.1" 400 Bad Request
2024-01-30 14:13:09 | INFO | stdout | INFO: 127.0.0.1:50820 - "POST /list_models HTTP/1.1" 200 OK
2024-01-30 14:13:09 | INFO | stdout | INFO: 127.0.0.1:50819 - "POST /v1/chat/completions HTTP/1.1" 400 Bad Request
embedding的推理,根据日志好像是频繁加载再推理的,这个在embedding模型很大的时候,很浪费时间,所以希望优化一下,做到一次加载,多次推理。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.