Skip to content

Commit e0a61a5

Browse files
committed
spec : init ckpt (begin() wasn't called)
1 parent 0bb78e5 commit e0a61a5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

common/speculative.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,18 @@ struct common_speculative_state {
145145
};
146146

147147
struct common_speculative_checkpoint {
148-
llama_pos pos_min;
149-
llama_pos pos_max;
148+
llama_pos pos_min = 0;
149+
llama_pos pos_max = 0;
150150

151-
int64_t n_tokens;
151+
int64_t n_tokens = 0;
152152

153153
std::vector<uint8_t> data;
154154

155155
size_t size() const {
156156
return data.size();
157157
}
158158

159-
size_t ckpt_size;
159+
size_t ckpt_size = 0;
160160
};
161161

162162
struct common_speculative_state_draft : public common_speculative_state {

0 commit comments

Comments
 (0)