Skip to content

"Stop generating" button only stops the printing, llama.cpp continues #890

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

Open
reversebias opened this issue Mar 1, 2024 · 0 comments
Open

Comments

@reversebias
Copy link
Contributor

Not sure if this is intended behaviour, but when hitting the "Stop generating" button, while the output being displayed does stop streaming, the llama.cpp server backend keeps generating until the stop token or the token limit.

Running a standard llama.cpp server, other frontends using the same server will stop generating as expected:
./server -m ~/models/mixtral-8x7b-instruct-v0.1.Q6_K.gguf -c 32768 -ngl 128 -ts 39,61,0 -sm row --host 0.0.0.0

.env.local

HF_TOKEN=None
USE_LOCAL_WEBSEARCH=true
MODELS=`[
  {
      "name": "mixtral-instrtuct",
      "preprompt" : "",
      "chatPromptTemplate": "<s> {{#each messages}}{{#ifUser}}[INST]{{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}} {{content}} [/INST]{{/ifUser}}{{#ifAssistant}} {{content}}</s> {{/ifAssistant}}{{/each}}",
      "parameters": {
        "temperature" : 0.2,
        "top_p" : 0.95,
        "repetition_penalty" : 1.2,
        "top_k" : 50,
        "truncate" : 24576,
        "max_new_tokens" : 512,
        "stop" : ["</s>"]
      },
      "endpoints": [
        {
         "url": "http://127.0.0.1:8080",
         "type": "llamacpp"
        }
      ]
  }
]`
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

1 participant