llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Server enhancements - grammar segfault and helper titles.

Open jboero opened this issue 1 year ago • 4 comments

I noticed the server example segfaults on a null context if the grammar can't be parsed. This is fixed.

I also added titles with helpful mouseover explanations in the UI to help people understand n_predict, top_k, etc:

image

jboero avatar Jan 22 '24 15:01 jboero

Aaah smacked down by the dreaded trailing whitespace. Reviewbot must be a python coder.

jboero avatar Jan 22 '24 16:01 jboero

Oh is that why they were written that way? Yes that would be great for readability.

On Tue, Jan 23, 2024, 07:52 Georgi Gerganov @.***> wrote:

@.**** approved this pull request.

Nice!

Should we change the deps.sh script to output raw string literals?

— Reply to this email directly, view it on GitHub https://github.com/ggerganov/llama.cpp/pull/5080#pullrequestreview-1838054091, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZP3DFPUBKHSGYS7EHHHCDYP5T25AVCNFSM6AAAAABCFOHDUOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZYGA2TIMBZGE . You are receiving this because you authored the thread.Message ID: @.***>

jboero avatar Jan 23 '24 07:01 jboero

After rebasing and fixing the EditorConfig Checker we can merge

ggerganov avatar Jan 30 '24 18:01 ggerganov

Thx. :+1: https://github.com/ggerganov/llama.cpp/pull/5221

jboero avatar Jan 30 '24 18:01 jboero

I think this PR is quite outdated - probably not relevant anymore?

ggerganov avatar May 17 '24 07:05 ggerganov

Good question. I'll take another look but I think the segfault fix on no grammar is still important. Unless another PR fixed it.

jboero avatar May 17 '24 07:05 jboero

Is this bug still present? Just chasing up older PRs to make sure it's not obsolete

mofosyne avatar May 25 '24 15:05 mofosyne

It looks like @ggerganov fixed this directly so no need anymore. https://github.com/ggerganov/llama.cpp/blob/e2b065071c5fc8ac5697d12ca343551faee465cc/common/sampling.cpp#L17

jboero avatar May 28 '24 10:05 jboero