Skip to content

Commit 148bd91

Browse files
committed
QNN override
1 parent a271b07 commit 148bd91

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

examples/qualcomm/oss_scripts/llama/runner/runner.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,13 @@ Error Runner<T>::generate_from_prompt_or_file(
464464
return Error::Ok;
465465
}
466466

467+
template <typename T>
468+
::executorch::runtime::Error prefill(
469+
const std::string& prompt,
470+
const GenerationConfig& config = {}) {
471+
return ::Error::NotImplemented;
472+
}
473+
467474
template <typename T>
468475
Result<DecoderModelVersion> Runner<T>::get_decoder_model_version() {
469476
if (!is_loaded()) {

examples/qualcomm/oss_scripts/llama/runner/runner.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ class Runner : public executorch::extension::llm::IRunner {
7979
const executorch::extension::llm::GenerationConfig& config,
8080
std::function<void(const std::string&)> token_callback = {},
8181
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 {};
8287
void stop() override {};
8388
void reset() override {};
8489
executorch::runtime::Result<DecoderModelVersion> get_decoder_model_version();

0 commit comments

Comments
 (0)