File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
examples/qualcomm/oss_scripts/llama/runner Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -464,6 +464,13 @@ Error Runner<T>::generate_from_prompt_or_file(
464
464
return Error::Ok;
465
465
}
466
466
467
+ template <typename T>
468
+ ::executorch::runtime::Error prefill (
469
+ const std::string& prompt,
470
+ const GenerationConfig& config = {}) {
471
+ return ::Error::NotImplemented;
472
+ }
473
+
467
474
template <typename T>
468
475
Result<DecoderModelVersion> Runner<T>::get_decoder_model_version() {
469
476
if (!is_loaded ()) {
Original file line number Diff line number Diff line change @@ -79,6 +79,11 @@ class Runner : public executorch::extension::llm::IRunner {
79
79
const executorch::extension::llm::GenerationConfig& config,
80
80
std::function<void (const std::string&)> token_callback = {},
81
81
std::function<void (const executorch::llm::Stats&)> stats_callback = {});
82
+
83
+ executorch::runtime::Error prefill (
84
+ const std::string& prompt,
85
+ const GenerationConfig& config = {}) override ;
86
+ void stop () override {};
82
87
void stop () override {};
83
88
void reset () override {};
84
89
executorch::runtime::Result<DecoderModelVersion> get_decoder_model_version ();
You can’t perform that action at this time.
0 commit comments