Sets the state reading from the specified source address
| 2606 | |
| 2607 | // Sets the state reading from the specified source address |
| 2608 | size_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 | |
| 2614 | bool 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(); |
no test coverage detected