-
Notifications
You must be signed in to change notification settings - Fork 36
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
ollama completion does not work at all #15
Comments
Did you install Ollama? |
Yes, it works fine with the chatgpt plugin for chatting, and I can use it from the terminal, I tried several models so far none of them worked |
try setting |
I was having some issues at first as well, however, I think I wasn't waiting long enough and eventually it does show up (although sometimes it doesn't when I'm low on memory). @OneOfOne if it helps, here is the configuration that worked for, hitting |
same issue. Completion started, but no VRAM usage via Must be a config issue. I'll try to reproduce it with a minimal config. Edit: it was user error. I feel very stupid, but I'm going to leave stuff here to maybe help someone in the future. I mistakenly thought codellama:latest was unnecessary because it has the same id as codellama:instruct, and so I removed it. I was trying to use codellama:code as the provider, and that was the issue. I redownloaded codellama which pulled the cached codellama:latest, and switched to codellama as the provider as tzachar suggested above. Before going overboard and creating a minimal config like I did, make sure to do a very quick test using curl to debug.
and the not-so-minimal config with lazy,
|
I also tried to set it up, and it doesn't work for me. With Wireshark, I looked at request-responses that goes to the codellama model and there is a problem either in the prompt or in the prompt + response. Here are examples request {
"options": {"temperature": 0.2},
"model": "codellama",
"stream": false,
"prompt": "<PRE> from django import forms\nfrom django.core.validators import RegexValidator\n\n\nphone_number_validator = RegexValidator...(removed for readability)...\n\nclass ContactForm(forms.Form):\n name = forms.CharField(max_length=255)\n email = forms.EmailField()\n message = forms.CharField(widget=forms.Textarea(), required=True)\n\nclass ContactForm(f <SUF>) <MID>"
} response {
"model":"codellama",
"created_at":"2024-07-14T13:07:24.099798Z",
"response":" ```\nfrom django import forms\nfrom django.core.validators import RegexValidator...(removed for readability)...\n\nclass ContactForm(forms.Form):\n name = forms.CharField(max_length=255)\n email = forms.EmailField()\n message = forms.CharField(widget=forms.Textarea(), required=True)\n ```\n \n This is a Django form that includes three fields: `title`, `about`, and `url`. The `phone` field has a validator to check if the input is a correct phone number, and the `barcode` field has a validator to check if the input is a correct barcode. The `ReviewForm` class includes only one field, which is a textarea for the review body. The `ContactForm` class includes three fields: `name`, `email`, and `message`.\n\nIt's important to note that in order to use this form in a Django view, you need to import it and create an instance of it. For example:\n```\nfrom .forms import NodeCreateForm\n\ndef my_view(request):\n form = NodeCreateForm()\n return render(request, 'my_template.html', {'form': form})\n```\nIn this example, the `NodeCreateForm` class is imported and an instance of it is created and passed to the template as a context variable called `form`. The template can then use this variable to display the form and handle the user input.",
"done":true,"done_reason":"stop",
"context":[...],
"total_duration":15330468416,
"load_duration":9605625,
"prompt_eval_count":420,
"prompt_eval_duration":108984000,
"eval_count":633,
"eval_duration":15163806000
} I don't know how it supposed to work in the right way, but I guess that it should reply with code completion snippet rather than with description. |
Not sure what the issue is. Tabby seems to work fine. |
anyone having luck with this? |
Using manual completion (C-x) it just spams "Completion started" until I have to close nvim.
my config:
The text was updated successfully, but these errors were encountered: