Skip to content

Commit

Permalink
compress: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stduhpf committed Sep 24, 2024
1 parent bd5b24e commit 77dd5d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/compress/compress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,13 @@ std::vector<uint8_t> encode(llama_context *ctx, std::vector<llama_token> inp, gp
int block_size = (bit_offset + PAD) / 8 - block_start;
if (block_size >= 256)
{
// TODO: figure it out
LOG_ERR("OOPS");
// TODO: handle more than 256 bytes of block data
// (maybe allow multiple blocks in a row)
LOG_ERR("Block too big %d >= 256", block_size);
exit(-1);
}
sample_ids_bitpacked[block_start + 1] = block_size & 0xff;

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

// put last bytes
if (PAD)
Expand Down

0 comments on commit 77dd5d0

Please sign in to comment.