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

12 lines
303 B
Rust
Raw Normal View History

2024-10-04 08:42:31 +00:00
pub mod backend;
2024-10-21 07:14:35 +00:00
#[cxx::bridge(namespace = "huggingface::tgi::backends::llama::impl")]
2024-10-04 08:42:31 +00:00
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;
}
}