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

Error: special tags are not allowed as part of the prompt. #7

Open
wzrdtales opened this issue Sep 9, 2023 · 5 comments
Open

Error: special tags are not allowed as part of the prompt. #7

wzrdtales opened this issue Sep 9, 2023 · 5 comments

Comments

@wzrdtales
Copy link

It will return Error: special tags are not allowed as part of the prompt. as an error. No settings adjusted, completely fresh instance of vscode and the continue extension

@ss32
Copy link

ss32 commented Sep 10, 2023

@ss32
Copy link

ss32 commented Sep 10, 2023

I don't see any special tags in instructions though. I'm trying to have it complete

# load csv and plot results
def load_and_plot(csv_path):

And the contents of instructions is this

[[{'role': 'user', 'content': '[INST] Code in this file is highlighted (/home/user/codellama/local_test.py):\n```\n# load csv and plot results\ndef load_and_plot(csv_path):\n\n``` [/INST][INST] # load csv and plot results\ndef load_and_plot(csv_path):\n [/INST]'}]]

@wzrdtales
Copy link
Author

they are generated by continue. it turned out you have to replace this line

https://github.com/facebookresearch/codellama/blob/9cf7caef699f61386ab64bebd0fa53a277478e51/llama/generation.py#L54

with an empty array. apparently this is to fight back against instruction injection, not entirely in the topic of this yet, why they would have added to an instruction type model though.

@geekidentity
Copy link

how fix this

@wzrdtales
Copy link
Author

read my answer before

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

No branches or pull requests

3 participants