Unverified Commit eb2c443a authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #4736 from ollama/mxyng/vocab-only

vocab only for tokenize
parents 278e25ea bf54c845
......@@ -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),
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment