-
Notifications
You must be signed in to change notification settings - Fork 74
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
Feature Request: Preview completions like zsh-autosuggestions #19
Comments
Cool idea! However that would mean that everything you type in the command line is going to be sent to some remote server. Would you be comfortable with that? |
Not necessarily: Normally the |
In case anybody here is still interested, I hacked in an LLM-based backend to @tom-doerr: I didn't compare them, but I wonder how the FIM-based prompting I'm using here with one of the code-tuned models compares to your call into the chat model (here). Sometimes I've had trouble getting the models to actually return just the code/structured information I want it to, but maybe your system prompt and adding |
Might make sense to just drop OpenAI altogether and use one of the open source finetune models that runs locally |
Yeah I agree, I'm doing it in there by running Code Llama locally with FastChat (serving it via OpenAI-compatible API). And fine-tuning a small/fast local model on one's own shell history may be the key to faster completions, rather than including more history in the prompt every time. I'm finding the lag unfortunately noticeable and slow with the suggestions running for every character I type :/ |
What model are you using? There seem to be good tiny LMs that might do a decent job |
I've been trying Code Llama 7b and WizardCoder-1B for now |
(Any other recommendations?) |
Also unrelated, you may be interested for this project how |
Yeah there are a lot of ways to improve completions. I'm surprised there is still a lot of lag with a 1B model |
zsh-autosuggestions is able to provide a tab-autocompletion preview based on the
.zsh_history
:Something similar would be useful for this plugin: This way, one could accept codex completions using
<TAB>
or discard them with any other key.The text was updated successfully, but these errors were encountered: