MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / state_get_size

Method state_get_size

smallthinker/src/llama-context.cpp:1571–1579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1569};
1570
1571size_t llama_context::state_get_size() {
1572 llama_io_write_dummy io;
1573 try {
1574 return state_write_data(io);
1575 } catch (const std::exception & err) {
1576 LLAMA_LOG_ERROR("%s: error getting state size: %s\n", __func__, err.what());
1577 return 0;
1578 }
1579}
1580
1581size_t llama_context::state_get_data(uint8_t * dst, size_t size) {
1582 llama_io_write_buffer io(dst, size);

Callers 1

llama_state_get_sizeFunction · 0.80

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected