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

Method state_seq_get_size

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

Source from the content-addressed store, hash-verified

1599}
1600
1601size_t llama_context::state_seq_get_size(llama_seq_id seq_id) {
1602 llama_io_write_dummy io;
1603 try {
1604 return state_seq_write_data(io, seq_id);
1605 } catch (const std::exception & err) {
1606 LLAMA_LOG_ERROR("%s: error getting state size: %s\n", __func__, err.what());
1607 return 0;
1608 }
1609}
1610
1611size_t llama_context::state_seq_get_data(llama_seq_id seq_id, uint8_t * dst, size_t size) {
1612 llama_io_write_buffer io(dst, size);

Callers 1

llama_state_seq_get_sizeFunction · 0.80

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected