Skip to content

Commit e078839

Browse files
committed
fix(gguf): 移除不必要的 tokenizer.pre 要求
Signed-off-by: YdrMaster <[email protected]>
1 parent c391886 commit e078839

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ itertools = "0.13"
3434
env_logger = "0.11"
3535
build-script-cfg = "0.0"
3636

37-
operators = { git = "https://github.com/YdrMaster/operators-rs", rev = "c81600f", default-features = false }
37+
operators = { git = "https://github.com/YdrMaster/operators-rs", rev = "d88d716", default-features = false }
3838

3939
search-cl-tools = { git = "https://github.com/InfiniTensor/clrt", rev = "9b6289d" }
4040
search-infini-tools = { git = "https://github.com/InfiniTensor/infini-rt", rev = "f40bcb5" }

gguf/src/tokenizer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ impl Tokenizer {
6161
}
6262

6363
fn bpe_from_gguf(gguf: &GGufModel) -> Self {
64-
let _pre = gguf.get_str("tokenizer.ggml.pre").unwrap();
6564
let tokens = gguf.tokenizer_ggml_tokens().unwrap();
6665
let scores = gguf.tokenizer_ggml_scores().unwrap();
6766
let token_type = gguf.tokenizer_ggml_token_type().unwrap();

0 commit comments

Comments
 (0)