Skip to content

Software

llama_ros

From github.com/mgonzs13/llama_ros (opens in a new tab)

  • Humanoids and robot learning
  • Library
  • MIT

ROS 2 packages that embed llama.cpp so GGUF language, vision-language, audio and embedding models can run inside ROS 2 projects.

Facts

GitHub stars
268read on 28 Nov 2026
Last update
27 Nov 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate
Hardware it needs, as the project states it
Builds with CUDA when compiled with -DGGML_CUDA=ON, which requires the CUDA Toolkit; Docker images can be built with CUDA support and run with NVIDIA GPU access.

Checked on GitHub on 28 Nov 2026.

Licenses

Code
MIT (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 99b234d (opens in a new tab), on 28 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Runs GGUF-based LLMs, VLMs, audio-language, embedding and reranking models inside ROS 2 nodes.
  • Offers an OpenAI-compatible chat completions interface with tool calling, reasoning and streaming.
  • Supports speculative decoding with draft-model and ngram-based methods, which requires a single parallel context.
  • Provides a llama_cli extension with ros2 llama launch and prompt commands to test models quickly.
  • Configures models through ROS 2 parameters covering context, GPU, CPU, memory, multimodal and LoRA/control vector options.
  • Can download models from HuggingFace by repository and filename, or load a local GGUF file.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
MIT. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Active, last commit on 27 Nov 2026.

Use it

How to install it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 99b234d

Robotheca read the repository at two versions: the summary at ee7fd13 and the facts and the README at 99b234d (read on 28 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by @mgonzs13, at commit 99b234d, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

llama_ros

This repository provides a set of ROS 2 packages to integrate llama.cpp (opens in a new tab) into ROS 2. Using the llama_ros packages, you can easily incorporate the powerful optimization capabilities of llama.cpp (opens in a new tab) into your ROS 2 projects by running GGUF (opens in a new tab)-based LLMs (opens in a new tab), VLMs (opens in a new tab), 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 (opens in a new tab) and decision models such as OpenJEV, Lev, Kev, Nimble, Laya and Clef. You can also use features from llama.cpp such as GBNF grammars (opens in a new tab) and modify LoRAs in real-time.

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
GuideContents
Installation (opens in a new tab)Native installation, CUDA build and Docker
Usage (opens in a new tab)llama_cli, launch files and model configuration examples
ROS 2 Parameters (opens in a new tab)Complete parameter reference with defaults
ROS 2 Interfaces (opens in a new tab)Messages, actions and services
ROS 2 Clients (opens in a new tab)Client examples for tokenization, generation, embeddings, reranking and metadata
LangChain (opens in a new tab)LLM, RAG, chat, VLM, audio, tools, reasoning and agent examples
Demos (opens in a new tab)End-to-end demos for every supported model type
Advanced Topics (opens in a new tab)LoRA adapters and links to advanced features
Predefined Models (opens in a new tab)All llama_bringup model YAMLs
Related Projects
License

This project is licensed under the MIT License (opens in a new tab).

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.