abetlen / abetlen/llama-cpp-python

Switch to disable adding BOS token

オープン
#1,561 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
10.6k
フォーク
1.4k
PR マージ指標
PR 指標を取得中

説明

**Is your feature request related to a problem? Please describe.**
I am building the prompt myself and calling
```
llm.create_completion(prompt, max_tokens=max_tokens,
temperature=temperature, repeat_penalty=repeat_penalty,
stop=stops)
```
llama.cpp is telling me it is adding yet another in the beginning which could affect the performance:

```
RuntimeWarning: Detected duplicate leading "" in prompt, this will likely reduce response quality, consider removing it
```

**Describe the solution you'd like**
Either llama.cpp should not add a token in the beginning or there should be a switch.

**Additional context**

This is a prompt with gemma2 template that I give to the create_completion function:

```
user
You are a helpful chat bot, answering questions.
model
OKuser
What kind of questions can I ask you?model

```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。