Library for advanced LLM reasoning with search algorithms
Top 21.0% on sourcepulse
This library provides a framework for enhancing Large Language Models (LLMs) with advanced reasoning capabilities, targeting researchers and developers building complex AI applications. It offers a suite of cutting-edge reasoning algorithms and tools for visualization and efficient inference, aiming to improve LLM performance on tasks requiring step-by-step problem-solving.
How It Works
The library abstracts LLM reasoning into three core components: reward function, world model, and search algorithm. Users can implement custom reasoning by inheriting provided classes for SearchConfig
and WorldModel
, and integrating pre-built SearchAlgorithm
implementations. This modular design allows for flexible integration of various LLM backends (e.g., SGLang, Hugging Face Transformers, OpenAI API) and supports advanced search techniques like MCTS, BFS, DFS, and Tree-of-Thoughts.
Quick Start & Requirements
pip install llm-reasoners
git clone --recursive https://github.com/Ber666/llm-reasoners
followed by cd llm-reasoners
and pip install -e .
exllama
and LLM-Planning
are cloned recursively.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The library is under active development, with some features and examples potentially being experimental or subject to change. Specific LLM backends or reasoning algorithms might have their own dependencies or performance characteristics that require careful consideration.
1 month ago
1 week