LocalAI/pkg/templates
Ettore Di Giacinto cea5a0ea42
feat(template): read jinja templates from gguf files (#4332)
* Read jinja templates as fallback

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* Move templating out of model loader

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* Test TemplateMessages

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* Set role and content from transformers

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* Tests: be more flexible

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* More jinja

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* Small refactoring and adaptations

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2024-12-08 13:50:33 +01:00
..
cache.go feat(template): read jinja templates from gguf files (#4332) 2024-12-08 13:50:33 +01:00
evaluator_test.go feat(template): read jinja templates from gguf files (#4332) 2024-12-08 13:50:33 +01:00
evaluator.go feat(template): read jinja templates from gguf files (#4332) 2024-12-08 13:50:33 +01:00
multimodal_test.go feat(templates): use a single template for multimodals messages (#3892) 2024-10-22 09:34:05 +02:00
multimodal.go feat(templates): use a single template for multimodals messages (#3892) 2024-10-22 09:34:05 +02:00
utils_suite_test.go refactor(template): isolate and add tests (#2069) 2024-04-19 02:40:18 +00:00