#711 · Primary category: Education & Research

Llama-2-Open-Source-LLM-CPU-Inference

c-transformers chatgpt cpu cpu-inference deep-learning document-qa faiss langchain language-models large-language-models llama llama-2 llm machine-learning natural-language-processing nlp open-source-llm python sentence-transformers transformers

Running Llama 2 and other Open-Source LLMs on CPU Inference Locally for Document Q&A

Project last updated:11/06/23

GitHub Stars

971

Forks

206

Contributors

4

License

MIT

Why we included this project

GPU costs and data-residency rules are the usual reasons teams end up wanting their own document Q&A, and this project shows a workable version running on CPU. It takes a quantized Llama 2 chat model through C Transformers and GGML, embeds documents with Sentence-Transformers into a FAISS vector store, and ties the pieces together with LangChain so you can ask natural-language questions over your own files. The code is small and split into focused files, which makes it a solid reference for teams checking whether CPU-only inference is realistic for private retrieval. The step-by-step guide linked in the README explains each piece along the way, so it works as a learning resource for anyone still getting comfortable with how retrieval and generation fit together.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category