Closed wupengfei0904 closed 1 year ago
This is unexpected. Are you running a default example or a heavy task like running a local LLM?
I just reproduced it again. My environment is Win11 + Python 3.11. I used the example from the documentation, and after running it, both the CPU and RAM suddenly spiked.
Okay, could you try with the wheel provided in this PR? https://github.com/Chainlit/chainlit/pull/40 you can just pip install it and run chainlit hello
to see if you see the same resource consumption.
Hello, author. I have resolved the issue using version 0.3.0 of Chainlit. Both the CPU and RAM are stable now, and there are no spikes.
Amazing! this version is not yet merged (soon hopefully) and the docs are not updated to reflect the changes. So be careful with that while we update everything
+
O
Pjv
ptc
Hello, author. May I ask when the official release of FastAPI version will be available? Additionally, have you considered supporting the ChatGPT standard plugins, such as ChatGPT UI, which allows for installing and selecting the desired plugins for use?
I hope to merge it early next week if everything is ok. We thought about the plugins, our first try was with the LangChain integration: https://github.com/Chainlit/cookbook/tree/main/langchain-aiplugins but not every plugin is compatible. Plus not all the plugins are public.
Should be fixed in the latest version 0.3.0
. Please note that it contains breaking changes. We prepared a migration guide to make it easy for everyone.
I start Chainlit, the CPU usage reaches 50%, and the memory gradually increases by 5GB. My computer is equipped with an i7 12700 processor and 32GB of RAM. When I close the program, approximately 6GB of memory is released.