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

Weird behavior with "codellama/CodeLlama-13b-hf" #113

Open
icnahom opened this issue Dec 9, 2023 · 7 comments
Open

Weird behavior with "codellama/CodeLlama-13b-hf" #113

icnahom opened this issue Dec 9, 2023 · 7 comments
Labels

Comments

@icnahom
Copy link

icnahom commented Dec 9, 2023

Suggestion is not being displayed when using CodeLlama. This is not the case with Starcoder, it shows the suggestion in the line that's triggered from.

Here are the attempts:

Requesting from Line 5, nothing gets displayed.

image

Requesting from Line 6 with a one space to the right, shows the suggestion.

image

Settings

{
    "llm.fillInTheMiddle.enabled": true,
    "llm.fillInTheMiddle.prefix": "<PRE> ",
    "llm.fillInTheMiddle.middle": " <MID>",
    "llm.fillInTheMiddle.suffix": " <SUF>",
    "llm.temperature": 0.2,
    "llm.contextWindow": 4096,
    "llm.tokensToClear": [
        "<EOT>"
    ],
    "llm.tokenizer": {
        "repository": "codellama/CodeLlama-13b-hf"
    },
    "llm.enableAutoSuggest": true,
    "llm.maxNewTokens": 256,
    "llm.configTemplate": "codellama/CodeLlama-13b-hf",
    "llm.modelIdOrEndpoint": "codellama/CodeLlama-13b-hf"
}

Example Code

package main
import "fmt"

func main() {
// Cursor here
func() { messages <- "ping" }()
msg = <-messages
fmt.Println(msg)
}

VSCode

Version: 1.85.0

@McPatate
Copy link
Member

I'm not sure this is due to the model, rather the code that checks if we should show a suggestion or not.
What version of llm-vscode & llm-ls are you running?

@icnahom
Copy link
Author

icnahom commented Dec 11, 2023

@McPatate llm-vscode: v0.1.6

How do I check for llm-ls?

@McPatate
Copy link
Member

You don't need to sorry, llm-ls comes bundled with the extension.

Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 12, 2024
@Wats0ns
Copy link

Wats0ns commented Jan 22, 2024

Hey @icnahom , did you find a fix for this please ? Thanks !

@icnahom
Copy link
Author

icnahom commented Jan 22, 2024

Hey @icnahom , did you find a fix for this please ? Thanks !

I haven't looked into it yet.

@github-actions github-actions bot removed the stale label Jan 23, 2024
Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants