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

Function llama_state_seq_load_file

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

Source from the content-addressed store, hash-verified

2661}
2662
2663size_t llama_state_seq_load_file(llama_context * ctx, const char * filepath, llama_seq_id dest_seq_id, llama_token * tokens_out, size_t n_token_capacity, size_t * n_token_count_out) {
2664 ctx->synchronize();
2665
2666 try {
2667 return ctx->state_seq_load_file(dest_seq_id, filepath, tokens_out, n_token_capacity, n_token_count_out);
2668 } catch (const std::exception & err) {
2669 LLAMA_LOG_ERROR("%s: error loading sequence state file: %s\n", __func__, err.what());
2670 return 0;
2671 }
2672}
2673
2674///
2675

Callers 1

process_single_taskMethod · 0.85

Calls 3

synchronizeMethod · 0.80
state_seq_load_fileMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected