Distribute and run LLMs with a single file.
C++ cross-platformggufllama-cpplocal-ailocal-inferencelocal-llmopen-source-aisingle-file-executablespeech-to-text
diff --git a/src/llama-mmap.h b/src/llama-mmap.h
--- a/llama.cpp/src/llama-mmap.h
+++ b/llama.cpp/src/llama-mmap.h
@@ -39,6 +39,11 @@ struct llama_file {
size_t read_alignment() const;
bool has_direct_io() const;
+
+ // [llamafile] Check if file has pre-mapped content (for bundled zip assets)
+ bool has_premapped_content() const;
+ void * premapped_content() const;
+ void * get_llamafile() const; // Returns llamafile* for reference counting
private:
struct impl;
std::unique_ptr<impl> pimpl;