llama_ros: A Quantized Language Model as a ROS 2 Action

llama_ros wraps llama.cpp so a robot can run a quantized language model locally: streamed generation, embeddings, and grammars that turn a goal plus world state into JSON actions.

In this article

  • A model that lives on the robot
  • The pile of models you can actually ship
  • llama.cpp, then a ROS 2 node
  • Two classes, three ROS interfaces
  • Hermes at 4 bits, then a JSON grammar
  • A plan the robot can execute
  • Our take