> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/rpicn/pei-jian/ren-gong-zhi-neng-tao-jian-ai-kit.md).

# 人工智能套件（AI Kit）

本页面仅供参考。

树莓派 **AI 套件**（AI Kit）已停产，我们建议改用 [AI HAT](https://book.bsdcn.org/rpicn/pei-jian/ai-hat.md) 页面中介绍的其中一款。你也可以在本页面进一步了解 Hailo NPU 所提供的 AI 技术；AI 套件，以及 AI HAT+ 中功能与之等同的 Hailo-8L 变体，都采用了这款 NPU。

![树莓派 AI 套件](https://1423291173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOxpD6RTIfF28SyASLTE%2Fuploads%2Fgit-blob-d519b0ff435f3ffb79e44188d61e18450db5fd18%2Fai-kit.jpg?alt=media)

树莓派 AI 套件

## 硬件

树莓派 AI 套件将[树莓派 M.2 HAT+](https://book.bsdcn.org/rpicn/pei-jian/m.2-hat+.md)与一块 Hailo AI 加速模块捆绑在一起，配合树莓派 5 使用。套件内含：

* 一块树莓派 M.2 HAT+，用于将 AI 模块连接到你的树莓派 5。
* 一块 Hailo AI 模块，含神经处理单元（NPU），已预装到你的 M.2 HAT+ 上。
* 一片导热垫，预装在模块与 M.2 HAT+ 之间。
* 一套安装硬件，包含排线、间隔柱和螺丝。
* 一根 16 mm 堆叠 GPIO 排针。

Hailo AI 模块提供：

* 一个每秒 13 万亿次操作（TOPS）的神经网络推理加速器，以 Hailo-8L 芯片为核心构建。
* M.2 2242 外形尺寸。

此外，你还需要：

* 一台树莓派 5。
* 一把十字螺丝刀。
* （可选）树莓派主动散热器（Active Cooler），推荐使用。这是一款带风扇的铝制散热器，可帮助树莓派 5 散热，使其保持在安全的工作温度下。

## 步骤 1：安装主动散热器（推荐）

我们建议在树莓派 5 上安装主动散热器。如果你想跳过这一步，或者你的树莓派 5 已经安装了主动散热器，请直接进行下一步。

![安装主动散热器](https://1423291173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOxpD6RTIfF28SyASLTE%2Fuploads%2Fgit-blob-792511634161e83e80a93126917b9dd3375afa73%2Fai-kit-installation-01.png?alt=media)

首先，请确保你的树莓派 5 已断开电源，然后：

1. **准备散热器。** 撕下散热器底部导热垫上的保护纸，露出每片导热垫上的粘性表面。
2. **放置散热器。** 将两个白色按压销对准树莓派 5 上两个专用的散热器安装孔。在这个位置上，导热垫与无线模块、片上系统（SoC）和电源管理集成电路（PMIC）对齐。
3. **固定散热器。** 将散热器轻轻按压到树莓派 5 上，然后将两个白色按压销均匀地压入树莓派 5 上两个专用的散热器安装孔，直到它们咔哒一声卡入到位。
4. **连接风扇。** 将风扇的 JST 插头插入树莓派 5 上的风扇插座。

> **注意**
>
> 使用前，请确保按压销无损坏，并牢固地卡扣在树莓派 5 上。

散热器安装到树莓派 5 之后，我们不建议再将其取下，因为取下散热器可能导致按压销和导热垫老化，进而造成产品损坏。

## 步骤 2：安装 M.2 HAT+

M.2 HAT+ 通过 PCIe 接口连接到树莓派 5，PCIe 是一种用于连接硬件组件的高速接口。首先，请确保你的树莓派 5 已断开电源，然后：

1. **安装间隔柱。** 用十字螺丝刀和四颗螺丝，将四根间隔柱固定到树莓派 5 的黄色孔位上。
2. **连接 GPIO 堆叠排针。** 将 GPIO 堆叠排针对准树莓派 5 上的 GPIO 引脚，用力按压直到排针完全就位。只要所有 GPIO 引脚都正确对齐并插入，排针的方向无关紧要。
3. **从扩展板上拔下 PCIe 排线。** 将扩展板上 PCIe 接口两侧的固定夹向外滑出，然后轻轻拔出排线。
4. **将 PCIe 排线插入树莓派。** 将排线的另一端插入树莓派 5 上的 PCIe 接口。为此，先将树莓派 5 上 PCIe 接口的固定夹从两侧向上滑开，然后将排线插入 PCIe 接口。确保金属触点朝向内侧（即朝向 USB 接口）。
5. **将 PCIe 排线固定到树莓派上。** 按住排线，将固定夹从两侧推回接口，确保排线插入均匀到位。

![将 PCIe 排线插入树莓派](https://1423291173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOxpD6RTIfF28SyASLTE%2Fuploads%2Fgit-blob-1e967ab5019e3955e87c9e9250ef48444e8ef2cb%2Fai-kit-installation-02.png?alt=media)

6. **安装扩展板。** 将扩展板的主要组件朝上，使扩展板上的安装孔与树莓派 5 上的间隔柱对齐。使用剩下的四颗（较短的）螺丝将扩展板固定到位。

![安装扩展板](https://1423291173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOxpD6RTIfF28SyASLTE%2Fuploads%2Fgit-blob-9a3ad51439d08c2fab8dc7d345d1f792617a8450%2Fai-kit-installation-03.png?alt=media)

7. **将 PCIe 排线插入扩展板。** 将排线未连接的一端插入扩展板上的 PCIe 接口。为此，先将扩展板上 PCIe 接口的固定夹从两侧向外滑开，然后将排线插入 PCIe 接口。

![将 PCIe 排线插入扩展板](https://1423291173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOxpD6RTIfF28SyASLTE%2Fuploads%2Fgit-blob-11dcc293df10b132f820779cda1fb91dc77098bc%2Fai-kit-installation-04.png?alt=media)

8. **将 PCIe 排线固定到扩展板上。** 按住排线，将固定夹从两侧推回接口，确保排线插入均匀到位。

> **警告**
>
> 在将设备连接到 M.2 插槽或从 M.2 插槽断开设备之前，务必先断开树莓派的电源。

## 后续步骤：运行 AI 模型

有关可用示例模型的列表，请参阅 Hailo 的 [Model Explorer](https://hailo.ai/products/hailo-software/model-explorer-vision/)。

要开始在树莓派 5 上运行 AI 模型，请参阅[人工智能软件](https://book.bsdcn.org/rpicn/shu-mei-pai/ren-gong-zhi-neng-ruan-jian.md)，其中提供了有关运行 AI 加速视觉模型的信息和指导。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://book.bsdcn.org/rpicn/pei-jian/ren-gong-zhi-neng-tao-jian-ai-kit.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
