| 2661 | } |
| 2662 | |
| 2663 | size_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 |
no test coverage detected