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

Method state_seq_set_data

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

Source from the content-addressed store, hash-verified

1619}
1620
1621size_t llama_context::state_seq_set_data(llama_seq_id seq_id, const uint8_t * src, size_t size) {
1622 llama_io_read_buffer io(src, size);
1623 try {
1624 return state_seq_read_data(io, seq_id);
1625 } catch (const std::exception & err) {
1626 LLAMA_LOG_ERROR("%s: error loading state: %s\n", __func__, err.what());
1627 return 0;
1628 }
1629}
1630
1631bool llama_context::state_load_file(const char * filepath, llama_token * tokens_out, size_t n_token_capacity, size_t * n_token_count_out) {
1632 llama_file file(filepath, "rb");

Callers 1

llama_state_seq_set_dataFunction · 0.80

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected