-
Notifications
You must be signed in to change notification settings - Fork 810
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add special tokens to server llama_decode() inputs
The llamafile server /embedding endpoint was returning embeddings that were very inconsistent with llama.cpp. This is due to changes upstream with tokenization. The upstream project was adding special tokens like ["[CLS]", " apples", " are", " red", " .", "[SEP]"] before running the operation. We're now handling things more similar to upstream although the llama.cpp server has diverged so much since removing LLaVA support that they're very different pieces of software at this point. Fixes #391
- Loading branch information
Showing
3 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters