Skip to content
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

Cache completion on cursor movement #9

Open
VJHack opened this issue Jan 23, 2025 · 1 comment
Open

Cache completion on cursor movement #9

VJHack opened this issue Jan 23, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@VJHack
Copy link

VJHack commented Jan 23, 2025

To maximize server and cache utilization, it might be wise to make a FIM completion request whenever there is cursor movement. A lot of the time when we move the cursor around without typing, the server is idle. We should always be speculating the user's next action. After we receive a FIM completion response from the server, this will not be displayed until the user starts typing and it's a cache hit.

Logic:

  1. User moves cursor or just opens a file
  2. Make FIM completion request to llama-server
  3. Cache response (don't display suggestion)

Implementing this feature would help reduce "cold start" times as prefill has already taken place.

@VJHack VJHack added the enhancement New feature or request label Jan 23, 2025
@igardev
Copy link
Collaborator

igardev commented Jan 29, 2025

Makes sense. Thank you for the idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants