Merge pull request #4736 from ollama/mxyng/vocab-only
vocab only for tokenize
This commit is contained in:
commit
eb2c443a79
1 changed files with 4 additions and 4 deletions
|
@ -47,11 +47,11 @@ func newLlamaModel(p string) *llamaModel {
|
|||
cs := C.CString(p)
|
||||
defer C.free(unsafe.Pointer(cs))
|
||||
|
||||
params := C.llama_model_default_params()
|
||||
params.vocab_only = true
|
||||
|
||||
return &llamaModel{
|
||||
C.llama_load_model_from_file(
|
||||
cs,
|
||||
C.llama_model_default_params(),
|
||||
),
|
||||
C.llama_load_model_from_file(cs, params),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue