AI agents & screen readers: for a machine-readable, text-only catalogue, start at /llms.txt. Products are available as Markdown (/products.md, /products/{handle}.md) and JSON (/products.json, /products/{handle}.json).
Store

Raspberry Pi AI HAT+ and AI HAT+ 2

Choosing between the AI HAT+ boards, fitting one to a Raspberry Pi 5, installing the Hailo software and running your first vision demo, or a local language model on the AI HAT+ 2.

Which one?

Each of these boards adds a Hailo AI accelerator to a Raspberry Pi 5, connected through the Pi's PCIe port. They take neural-network work off the Pi's processor so things like object detection run in real time.

Board Accelerator Speed Memory Best for
AI HAT+ 13 TOPS Hailo-8L 13 TOPS Uses the Pi's Object detection, pose tracking and other everyday camera projects
AI HAT+ 26 TOPS Hailo-8 26 TOPS Uses the Pi's Larger models, higher frame rates, or several models at once
AI HAT+ 2 Hailo-10H 40 TOPS (INT4) 8 GB on the board Everything above, plus local language and vision-language models of up to about 6 billion parameters
AI Kit Hailo-8L 13 TOPS Uses the Pi's Same as the 13 TOPS AI HAT+, built as an M.2 HAT+ with a Hailo module; no longer made

For vision work alone, the AI HAT+ 2 performs about the same as the 26 TOPS AI HAT+. Choose the AI HAT+ 2 when you want to run generative AI on the Pi itself.

What you'll need

  • A Raspberry Pi 5 running 64-bit Raspberry Pi OS (the current Trixie release).
  • An Active Cooler, which is recommended. Our Pi 5 cooling guide explains the options.
  • For the vision demos, a camera such as Camera Module 3. Connect it before you fit the HAT (see our camera guide).
  • A Phillips (crosshead) screwdriver.

In the box you'll find four spacers, four long screws, four short screws, a GPIO stacking header and a PCIe ribbon cable. The AI HAT+ 2 also comes with a heatsink for its chip, which is optional but worth fitting.

Fitting the HAT

Shut down the Pi and unplug the power before you start.

  1. Fit the Active Cooler. Peel the film off its thermal pads, line its two push pins up with the holes on the Pi, press until they click, and plug the fan lead into the fan socket. Once it's on, leave it on: removing it can damage the pins and pads.
  2. AI HAT+ 2 only: fit its heatsink. Peel the film off the pads and press the two black pins into the diagonally opposite holes on the HAT until they click.
  3. Screw the four spacers to the Pi's mounting holes with the long screws.
  4. Press the stacking header firmly onto the Pi's GPIO pins. It can go either way round, as long as every pin goes in.
  5. Unplug the ribbon cable from the HAT, where it arrives fitted: slide the connector's clips outwards and pull the cable free.
  6. Plug the ribbon into the Pi. Lift the clip on the Pi's PCIe connector, slide the cable in with its metal contacts facing inwards (towards the USB ports), and press the clip back down.
  7. Mount the HAT on the spacers, components facing up, and fix it with the four short screws.
  8. Plug the ribbon back into the HAT and close its clips.

The AI Kit fits in much the same way; see our M.2 HAT+ guide.

PCIe speed

The AI HAT+ and AI HAT+ 2 switch the Pi's PCIe connector to its faster Gen 3 mode automatically, so there's nothing to set.

With the AI Kit, turn Gen 3 on yourself. Either run sudo raspi-config, choose Advanced Options → PCIe Speed and answer Yes, or add this line to /boot/firmware/config.txt:

dtparam=pciex1_gen=3

Reboot afterwards.

Installing the software

Update Raspberry Pi OS and the Pi's firmware, then reboot:

sudo apt update
sudo apt full-upgrade -y
sudo rpi-eeprom-update -a
sudo reboot

Install the driver build tools, then the Hailo package for your board, and reboot again:

Board Command
AI HAT+ or AI Kit sudo apt install dkms then sudo apt install hailo-all
AI HAT+ 2 sudo apt install dkms then sudo apt install hailo-h10-all

The two Hailo packages can't be installed side by side, so pick the one that matches your board.

Checking it's working

hailortcli fw-control identify

This prints the accelerator's firmware version and board details. On the AI HAT+ boards some fields, such as the serial number, read <N/A>; that's normal. You can also check the kernel log, which should report that the driver started and the firmware loaded:

dmesg | grep -i hailo

Running a vision demo

These demos work the same on all the boards. Make sure the camera tools are installed and the camera shows a picture:

sudo apt install rpicam-apps
rpicam-hello

Then run object detection with a live preview (Ctrl+C to stop):

rpicam-hello -t 0 --post-process-file /usr/share/rpi-camera-assets/hailo_yolov6_inference.json

Swap the file name for other demos, all in /usr/share/rpi-camera-assets/:

File What it shows
hailo_yolov8_inference.json Object detection with YOLOv8
hailo_yolox_inference.json A lighter, faster object detector
hailo_yolov5_inference.json People and face detection
hailo_yolov5_segmentation.json Colour masks over each object (add --framerate 20)
hailo_yolov8_pose.json Pose estimation, 17 points per person

Add -n to hide the preview window, and -v 2 to print the results as text.

Language models on the AI HAT+ 2

The AI HAT+ 2 can run language models through Hailo's Ollama-compatible server. Hailo publishes it as a Debian package; at the time of writing the current one is version 5.1.1:

wget https://dev-public.hailo.ai/2025_12/Hailo10/hailo_gen_ai_model_zoo_5.1.1_arm64.deb
sudo dpkg -i hailo_gen_ai_model_zoo_5.1.1_arm64.deb
hailo-ollama

With the server running, open a second terminal to see which models are available and download one:

curl --silent http://localhost:8000/hailo/v1/list
curl --silent http://localhost:8000/api/pull -H 'Content-Type: application/json' -d '{"model": "qwen2:1.5b", "stream": true}'

Then chat with it through http://localhost:8000/api/chat, the same way you would with Ollama. If you'd like a browser chat window, Open WebUI can connect to this server; on Raspberry Pi OS Trixie it has to run in Docker. Hailo's hailo-apps repository on GitHub has more examples, including vision-language models.

Parts in this guide

Maddy from the Pi Australia team

Need help? We're here for you!

Hi, I'm Maddy. My team and I are ready to help with your order or any questions.