LocalDocs version 2 with text embeddings.

This commit is contained in:
Adam Treat
2023-10-24 12:13:32 -04:00
committed by AT
parent d4ce9f4a7c
commit 371e2a5cbc
30 changed files with 3540 additions and 164 deletions

View File

@@ -490,6 +490,9 @@ struct bert_ctx * bert_load_from_file(const char *fname)
#endif
bert_ctx * new_bert = new bert_ctx;
new_bert->buf_compute.force_cpu = true;
new_bert->work_buf.force_cpu = true;
bert_model & model = new_bert->model;
bert_vocab & vocab = new_bert->vocab;