Ai00-Core
This is the core library of the Ai00 server. It provides the following functionalities:
- Model/LoRA/initial state loading with auto version detecting;
- Samplers;
- BNF integration;
- State caching;
- Session management.
The purpose of this crate is to expose a state-less native inference API.
Guide
The first thing is to start the runtime, an async task that serves all background stuff (e.g., model runtime, caches, session queue):
use model_route;
let = ;
spawn;
Then users can communicate with the runtime by sending ThreadRequests, which are commands that request the runtime to do all kinds of stuff.
Check its definition: