# Function Node and complete Flow for the LLaMA AI Text Generator Model

**URL:** https://discourse.nodered.org/t/function-node-and-complete-flow-for-the-llama-ai-text-generator-model/77767
**Category:** Share Your Projects
**Created:** [21 April 2023 02:54 UTC](https://discourse.nodered.org/t/function-node-and-complete-flow-for-the-llama-ai-text-generator-model/77767 "2023-04-21T02:54:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rozek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rozek/32/48594_2.png) [@rozek](https://discourse.nodered.org/u/rozek)
#### Post date: [21 April 2023 02:54 UTC](https://discourse.nodered.org/t/function-node-and-complete-flow-for-the-llama-ai-text-generator-model/77767/1 "2023-04-21T02:54:19Z")

</div>

As promised yesterday: the function node for the LLaMA AI text model is fully available now. **Please note: inference runs on the CPU (without requiring any special hardware) but still completes within a few seconds.**

Having LLaMA inference as a self-contained Node-RED node gives you the possibility to create your own user interface or even build autonomous agents.

The distribution comes with a flow both for the basic function node and a complete HTTP endpoint which responds to incoming requests. Also attached is a trivial web page which can be used as a user interface for the AI model.

See the related [GitHub repository](https://github.com/rozek/node-red-flow-llama) for instructions on how to install and use it.
