vocab only
This commit is contained in:
parent
e91d0ef737
commit
bf54c845e9
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