llamafile
llamafile lets you distribute and run LLMswith a single file.
llamafile
makes open LLMs much more accessible to both developers and end users.llamafile
is doing that by combiningllama.cpp withCosmopolitan Libc into one framework that collapsesall the complexity of LLMs down to a single-file executable (called a "llamafile")that runs locally on most computers, with no installation.
Installation and Setup
See theinstallation instructions.
LLMs
See ausage example.
from langchain_community.llms.llamafileimport Llamafile
API Reference:Llamafile
Embedding models
See ausage example.
from langchain_community.embeddingsimport LlamafileEmbeddings
API Reference:LlamafileEmbeddings