text-generation-inference/backends/llamacpp/src/lib.rs

12 lines
297 B
Rust
Raw Normal View History

2024-10-04 08:42:31 +00:00
pub mod backend;
#[cxx::bridge(namespace = "huggingface::tgi::backends::llama")]
mod ffi {
unsafe extern "C++" {
include!("backends/llamacpp/csrc/backend.cpp");
/// Represent an instance of the llama.cpp backend instance on C++ side
type LlamaCppBackendImpl;
}
}