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)
|
cs := C.CString(p)
|
||||||
defer C.free(unsafe.Pointer(cs))
|
defer C.free(unsafe.Pointer(cs))
|
||||||
|
|
||||||
|
params := C.llama_model_default_params()
|
||||||
|
params.vocab_only = true
|
||||||
|
|
||||||
return &llamaModel{
|
return &llamaModel{
|
||||||
C.llama_load_model_from_file(
|
C.llama_load_model_from_file(cs, params),
|
||||||
cs,
|
|
||||||
C.llama_model_default_params(),
|
|
||||||
),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue