feat: first cut at actual token generation and model loading

This commit is contained in:
Georg Bauer
2026-07-24 17:44:41 +02:00
parent 616b550849
commit ff984bb96a
38 changed files with 66885 additions and 61 deletions

View File

@@ -170,6 +170,10 @@ impl Gguf {
self.map.len() as u64
}
pub(super) fn map_ptr(&self) -> *const u8 {
self.map.as_ptr()
}
pub(super) fn tensor(&self, name: &str) -> Result<&Tensor, String> {
self.tensors
.get(name)