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 2dbd8f1 commit 06eef67Copy full SHA for 06eef67
llama-cpp-2/src/token_type.rs
@@ -42,7 +42,7 @@ impl TryFrom<llama_cpp_sys_2::llama_token_type> for LlamaTokenAttrs {
42
type Error = LlamaTokenTypeFromIntError;
43
44
fn try_from(value: llama_cpp_sys_2::llama_vocab_type) -> Result<Self, Self::Error> {
45
- Ok(Self(BitFlags::from_bits(value).map_err(|e| {
+ Ok(Self(BitFlags::from_bits(value as u32).map_err(|e| {
46
LlamaTokenTypeFromIntError::UnknownValue(e.invalid_bits())
47
})?))
48
}
0 commit comments