picoLLM Inference Engine
C Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- Raspberry Pi (4, 5)
Requirements
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
- Clone the repository:
- Download a
picoLLM
model file (.pllm
) from Picovoice Console.
Usage
- Include the public header files (
picovoice.h
andpv_picollm.h
). - Link the project to an appropriate precompiled library for the target platform and load it.
- Create an instance of the engine:
- Generate a prompt completion:
- To interrupt completion generation before it has finished:
- Release resources explicitly when done with picoLLM:
Demo
For the picoLLM C SDK, we offer a demo application that demonstrates how to use it to generate text from a prompt.
Setup
- Clone the picoLLM repository from GitHub using HTTPS:
- Build the demo:
Usage
To see the usage options for the demo:
Run the command corresponding to your platform from the root of the repository:
For more information on our picoLLM demo for C, head over to our GitHub repository.