use triton_rs::Backend;
struct ExampleBackend;
impl Backend for ExampleBackend {
fn model_instance_execute(
model: triton_rs::Model,
requests: &[triton_rs::Request],
) -> Result<(), triton_rs::Error> {
for request in requests {
// Handle inference request here
todo!();
}
Ok(())
}
}
// Register the backend with Triton
triton_rs::declare_backend!(ExampleBackend);
See example-backend for full example.