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

Function llama_state_set_data

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

Sets the state reading from the specified source address

Source from the content-addressed store, hash-verified

2606
2607// Sets the state reading from the specified source address
2608size_t llama_state_set_data(llama_context * ctx, const uint8_t * src, size_t size) {
2609 ctx->synchronize();
2610
2611 return ctx->state_set_data(src, size);
2612}
2613
2614bool llama_state_load_file(llama_context * ctx, const char * path_session, llama_token * tokens_out, size_t n_token_capacity, size_t * n_token_count_out) {
2615 ctx->synchronize();

Callers 2

llama_set_state_dataFunction · 0.85
mainFunction · 0.85

Calls 2

synchronizeMethod · 0.80
state_set_dataMethod · 0.80

Tested by

no test coverage detected