Skip to content
fuegon7Public

About

Modular, Python-based system for running large language models (LLMs) locally

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

🧠 AIGN7 — Local AI with llama.cpp

AIGN7 is a modular, Python-based system for running large language models (LLMs) locally using llama.cpp as the backend. It supports .gguf models, such as OpenHermes-2.5-Mistral-7B.Q8_0, and provides a FastAPI-powered REST API for seamless interaction.

Explore compatible .gguf models: Hugging Face llama.cpp Models


📑 Table of Contents


🌟 Features

  • Fully Offline: Run LLMs locally without internet dependency.
  • Efficient Inference: Uses llama.cpp for optimized CPU/GPU performance.
  • REST API: FastAPI-based interface for programmatic interaction.
  • Modular Design: Extensible structure for adding new features or models.
  • Cross-Platform: Supports Linux, macOS, Windows, and WSL with proper backend configuration.

⚙️ Requirements

AIGN7 is designed to leverage GPU acceleration (Vulkan, CUDA, or Metal) for optimal performance, but it automatically falls back to CPU if GPU support or a backend is unavailable, depending on your llama.cpp configuration.


  • Python: 3.8 or higher
  • Git: Required for cloning the repository
  • llama.cpp Backend: Any version compatible with your CPU/GPU and Operating system
  • Model: Any .gguf model compatible with llama.cpp (e.g., openhermes-2.5-mistral-7b.Q8_0.gguf)

⚠️ Note:

Precompiled llama.cpp binaries are optimized for specific systems. For example:

  • llama-b6109-bin-ubuntu-vulkan-x64.zip: optimized for Ubuntu with Vulkan-compatible GPUs (AMD/Intel).
  • CPU-only versions are also available for maximum compatibility.

If you prefer or need to compile llama.cpp yourself (e.g., for NVIDIA CUDA, macOS Metal, or non-Ubuntu Linux distros like Arch or Fedora), refer to the official llama.cpp build instructions.


📦 Installation

Follow these steps to set up AIGN7. The project is designed to leverage GPU acceleration (Vulkan, CUDA, or Metal) for optimal performance but automatically falls back to CPU if the GPU or backend is unavailable, depending on the llama.cpp configuration.

  1. Clone the Repository
git clone https://github.com/yourusername/AIGN7.git
cd AIGN7
  1. Install Python Dependencies

Install dependencies from requirements.txt:

pip install -r requirements.txt
  1. Download or Compile llama.cpp

You must move the contents of the bin/ folder—either from a precompiled binary or a manual build—into the CORE/llama.cpp/bin.

  1. Download a Model
  • Download a .gguf model (e.g., openhermes-2.5-mistral-7b.Q8_0.gguf) from Hugging Face.
  • Place it in CORE/llama.cpp/models:
  1. Verify Setup
  • Test the llama.cpp binary:
./CORE/llama.cpp/bin/llama-cli --version

About

Modular, Python-based system for running large language models (LLMs) locally

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages