LLM Compressor Glitch Unveils Vulnerability in L4 Notebooks
Hello, Cedric said in the video (9:20) that each window overlaps with the previous one, but actually there is no overlap in the code (see below) and “target_slice[:, :-trg_len] = -100” does nothing. def calculate_perplexity(model, tokenizer, dataset, max_tokens=5000, stride=512): encodings = tokeniz












