Skip to content

Commit d4c1710

Browse files
lucylqpytorchbot
authored andcommitted
swap arg init in text_llm_runner (#14304)
Fix failures in [D82358803](https://www.internalfb.com/diff/D82358803) (cherry picked from commit 0447ebd)
1 parent 10e93fb commit d4c1710

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extension/llm/runner/text_llm_runner.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ TextLLMRunner::TextLLMRunner(
4343
io_manager_(std::move(io_manager)),
4444
text_token_generator_(std::move(text_token_generator)),
4545
stats_(std::move(stats)),
46-
temperature_(temperature) {
46+
temperature_(temperature),
47+
pos_(0) {
4748
// Note: This constructor assumes that text_prefiller and text_token_generator
4849
// already have references to the Module and TextDecoderRunner they need
4950
}

0 commit comments

Comments
 (0)