mgonzs13/llama_ros
소개
llama.cpp (GGUF LLMs) and llava.cpp (GGUF VLMs) for ROS 2
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalllama_ros
This repository provides a set of ROS 2 packages to integrate llama.cpp into ROS 2. Using the llama_ros packages, you can easily incorporate the powerful optimization capabilities of llama.cpp into your ROS 2 projects by running GGUF-based LLMs, VLMs, audio-language, embedding and reranking models. It also provides an OpenAI-compatible chat completions interface with tool calling, reasoning and streaming, as well as speculative decoding and decision models such as OpenJEV, Lev, Kev, Nimble, Laya and Clef. You can also use features from llama.cpp such as GBNF grammars and modify LoRAs in real-time.
| ROS 2 Distro | Branch | Build status | Docker Image |
|---|---|---|---|
| Humble | main |
||
| Iron | main |
||
| Jazzy | main |
||
| Kilted | main |
||
| Lyrical | main |
Quick Start
cd ~/ros2_ws/src
git clone https://github.com/mgonzs13/llama_ros.git
cd llama_ros
python3 -m pip install --upgrade pip || python3 -m pip install --break-system-packages --ignore-installed --upgrade pip
pip3 install --break-system-packages --ignore-installed -r requirements.txt
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --cmake-args -DGGML_CUDA=ON # omit this flag for a CPU-only build
source install/setup.bash
Launch a model and send a prompt:
ros2 llama launch $(ros2 pkg prefix llama_bringup)/share/llama_bringup/models/Llama-3.yaml
ros2 llama prompt "Do you know ROS 2?" -t 0.0
Documentation
| Guide | Contents |
|---|---|
| Installation | Native installation, CUDA build and Docker |
| Usage | llama_cli, launch files and model configuration examples |
| ROS 2 Parameters | Complete parameter reference with defaults |
| ROS 2 Interfaces | Messages, actions and services |
| ROS 2 Clients | Client examples for tokenization, generation, embeddings, reranking and metadata |
| LangChain | LLM, RAG, chat, VLM, audio, tools, reasoning and agent examples |
| Demos | End-to-end demos for every supported model type |
| Advanced Topics | LoRA adapters and links to advanced features |
| Predefined Models | All llama_bringup model YAMLs |
Related Projects
- chatbot_ros → This chatbot, integrated into ROS 2, uses whisper_ros, to listen to people speech; and llama_ros, to generate responses. The chatbot is controlled by a state machine created with YASMIN.
- explainable_ros → A ROS 2 tool to explain the behavior of a robot. Using the integration of LangChain, logs are stored in a vector database. Then, RAG is applied to retrieve relevant logs for user questions answered with llama_ros.
License
This project is licensed under the MIT License.
관련 프로젝트 살펴보기
불러오는 중…