Skip to content

Commit

Permalink
fix(gguf): 移除不必要的 tokenizer.pre 要求
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <ydrml@hotmail.com>
  • Loading branch information
YdrMaster committed Jan 25, 2025
1 parent c391886 commit e078839
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ itertools = "0.13"
env_logger = "0.11"
build-script-cfg = "0.0"

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

search-cl-tools = { git = "https://github.com/InfiniTensor/clrt", rev = "9b6289d" }
search-infini-tools = { git = "https://github.com/InfiniTensor/infini-rt", rev = "f40bcb5" }
Expand Down
1 change: 0 additions & 1 deletion gguf/src/tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ impl Tokenizer {
}

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

0 comments on commit e078839

Please sign in to comment.