-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TTFX optimization of aigenerate("whats the meaning of life"; model) #236
Comments
I wonder if we could somehow bring it down 0.3 seconds, what is the time for |
There is already mocking like this: https://github.com/svilupp/PromptingTools.jl/blob/main/src/precompilation.jl It seems that the majority of the time is spent on the HTTP call (as per our Slack chat), so we would need to make sure the right HTTP paths get precompiled, perhaps with a mock server to make sure the HTTP stack gets called. Did you manage to isolate how much is the compilation vs the API request itself? |
Yes, it looks like HTTP.jl takes up 6 seconds and 0.3-0.4 on PromptingTools, so hopefully we will have a solution for this issue, it seems surreal, I hope I am just missing here something. |
It got fixed in |
FYI. It's in the patch release 1.10.12, so set the dep if you want to enforce it. |
Recently I decided to cut down on TTFX of EasyContext.jl and realized that TTFX of PromptingTools needs to improve a lot:
Correct me if I did something wrong here.
The text was updated successfully, but these errors were encountered: