Skip to content

Tags: dsd/sherpa

Tags

2.2.1-dsd2

Toggle 2.2.1-dsd2's commit message
Pass initial message separately from prompt

The llama.cpp logic is built around the prompt ending with the
reverse-prompt and the actual user input being passed separately.

Adjust Sherpa to do the same, rather than appending the first line of
user input to the prompt.

2.2.1-dsd

Toggle 2.2.1-dsd's commit message
Update llama.cpp and move core processing to native code

Update llama.cpp to the latest version as part of an effort to make this
app usable on my Samsung Galaxy S10 smartphone.

The newer llama.cpp includes a double-close fix which was causing the app
to immediately crash upon starting the AI conversation (llama.cpp commit
47f61aaa5f76d04).

It also adds support for 3B models, which are considerably smaller. The
llama-7B models were causing Android's low memory killer to terminate
Sherpa after just a few words of conversation, whereas new models such as
orca-mini-3b.ggmlv3.q4_0.bin work on this device without quickly exhausting
all available memory.

llama.cpp's model compatibility has changed within this update, so ggml
files that were working in the previous version are unlikely to work now;
they need converting. However the orca-mini offering is already in the
new format and works out of the box.

llama.cpp's API has changed in this update. Rather than rework the Dart
code, I opted to leave it in C++, using llama.cpp's example code as a base.
This solution is included in a new "llamasherpa" library which calls
into llama.cpp. Since lots of data is passed around in large arrays,
I expect running this in Dart had quite some overhead, and this native
approach should perform considerably faster.

This eliminates the need for Sherpa's Dart code to call llama.cpp directly,
so there's no need to separately maintain a modified version of llama.cpp
and we can use the official upstream - with the exception of an Android
build fix that I've added in my fork.

2.2.1

Toggle 2.2.1's commit message
2.2.1+8

2.2.0

Toggle 2.2.0's commit message
2.2.0+7

2.1.0

Toggle 2.1.0's commit message
2.1.0+6

2.0.1

Toggle 2.0.1's commit message
2.0.1+5

2.0

Toggle 2.0's commit message
modif for merge

1.1.0

Toggle 1.1.0's commit message
saving file path if file found

1.0.0

Toggle 1.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update README.md