Skip to content

Commit 2c44df7

Browse files
committed
Fix lint formatting in text_llm_runner.h and .cpp
This PR was authored with the assistance of Claude.
1 parent c05c80a commit 2c44df7

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

extension/llm/runner/text_llm_runner.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ Error TextLLMRunner::generate(
119119

120120
if (!prompt.empty()) {
121121
::tokenizers::Result<std::vector<uint64_t>> encode_res =
122-
tokenizer_->encode(
123-
prompt,
124-
/*bos=*/config.num_bos,
125-
/*eos=*/config.num_eos);
122+
tokenizer_->encode(prompt, /*bos=*/config.num_bos, /*eos=*/config.num_eos);
126123

127124
if (!encode_res.ok()) {
128125
ET_LOG(

extension/llm/runner/text_llm_runner.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,8 @@ class ET_EXPERIMENTAL TextLLMRunner : public IRunner {
119119
/**
120120
* Convenience overload: prefill a single text prompt.
121121
*/
122-
::executorch::runtime::Result<uint64_t> prefill(
123-
const std::string& prompt,
124-
int32_t num_bos = 0,
125-
int32_t num_eos = 0);
122+
::executorch::runtime::Result<uint64_t>
123+
prefill(const std::string& prompt, int32_t num_bos = 0, int32_t num_eos = 0);
126124

127125
/**
128126
* Prefill a text prompt using GenerationConfig.

0 commit comments

Comments
 (0)