vocab only

This commit is contained in:
Michael Yang 2024-05-30 16:49:28 -07:00
parent e91d0ef737
commit bf54c845e9

View file

@ -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),
}
}