Download src/llama-io.h from Brunobkr/llama.cpp_AlgMor24_github: direct link, hf CLI and curl.
- Browser
- Download file 812 Bytes
-
https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/src/llama-io.h
- Command line
-
hf download hf://datasets/Brunobkr/llama.cpp_AlgMor24_github/src/llama-io.h
-
curl -L -o llama-io.h https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/src/llama-io.h
812 Bytes
| struct ggml_tensor; | |
| class llama_io_write_i { | |
| public: | |
| llama_io_write_i() = default; | |
| virtual ~llama_io_write_i() = default; | |
| virtual void write(const void * src, size_t size) = 0; | |
| virtual void write_tensor(ggml_tensor * tensor, size_t offset, size_t size) = 0; | |
| // bytes written so far | |
| virtual size_t n_bytes() = 0; | |
| void write_string(const std::string & str); | |
| }; | |
| class llama_io_read_i { | |
| public: | |
| llama_io_read_i() = default; | |
| virtual ~llama_io_read_i() = default; | |
| virtual void read(void * dst, size_t size) = 0; | |
| virtual void read_tensor(ggml_tensor * tensor, size_t offset, size_t size) = 0; | |
| // bytes read so far | |
| virtual size_t n_bytes() = 0; | |
| void read_string(std::string & str); | |
| }; | |