We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5e6a10 commit 0adb2ccCopy full SHA for 0adb2cc
llama-cpp-2/src/model.rs
@@ -210,7 +210,7 @@ impl LlamaModel {
210
}
211
212
match self.token_type(token) {
213
- LlamaTokenType::Normal => {}
+ LlamaTokenType::Normal | LlamaTokenType::UserDefined => {}
214
LlamaTokenType::Control => {
215
if token == self.token_bos() || token == self.token_eos() {
216
return Ok(String::new());
@@ -219,7 +219,6 @@ impl LlamaModel {
219
LlamaTokenType::Unknown
220
| LlamaTokenType::Undefined
221
| LlamaTokenType::Byte
222
- | LlamaTokenType::UserDefined
223
| LlamaTokenType::Unused => {
224
225
0 commit comments