File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ enum Model {
5252 /// Download a model from huggingface (or use a cached version)
5353 #[ clap( name = "hf-model" ) ]
5454 HuggingFace {
55- /// the repo containing the model. e.g. `TheBloke/Llama-2-7B-Chat-GGUF `
55+ /// the repo containing the model. e.g. `BAAI/bge-small-en-v1.5 `
5656 repo : String ,
57- /// the model name. e.g. `llama-2-7b-chat .Q4_K_M.gguf`
57+ /// the model name. e.g. `BAAI-bge-small-v1.5 .Q4_K_M.gguf`
5858 model : String ,
5959 } ,
6060}
@@ -147,7 +147,7 @@ fn main() -> Result<()> {
147147
148148 // create a llama_batch with the size of the context
149149 // we use this object to submit token data for decoding
150- let mut batch = LlamaBatch :: new ( n_ctx, tokens_lines_list . len ( ) as i32 ) ;
150+ let mut batch = LlamaBatch :: new ( n_ctx, 1 ) ;
151151
152152 // Amount of tokens in the current batch
153153 let mut s_batch = 0 ;
You can’t perform that action at this time.
0 commit comments