Skip to content

Commit 77dd5d0

Browse files
committed
compress: update comment
1 parent bd5b24e commit 77dd5d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/compress/compress.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,13 @@ std::vector<uint8_t> encode(llama_context *ctx, std::vector<llama_token> inp, gp
133133
int block_size = (bit_offset + PAD) / 8 - block_start;
134134
if (block_size >= 256)
135135
{
136-
// TODO: figure it out
137-
LOG_ERR("OOPS");
136+
// TODO: handle more than 256 bytes of block data
137+
// (maybe allow multiple blocks in a row)
138+
LOG_ERR("Block too big %d >= 256", block_size);
138139
exit(-1);
139140
}
140141
sample_ids_bitpacked[block_start + 1] = block_size & 0xff;
141142

142-
// TODO: handle more than 256 bits of block data (multiple blocks or bigger header?)
143-
// sample_ids_bitpacked[block_start + 2] = block_size >> 8;
144143

145144
// put last bytes
146145
if (PAD)

0 commit comments

Comments
 (0)