chunklens={} for name in PRETOKENIZERS: corpus = corpora[name] tok = tokenizers[name]…
- User
chunk_lens={} for name in PRETOKENIZERS: corpus = corpora[name] tok = tokenizers[name] total_len = 0 chunk_lens[name] = [] for seq, dc in corpora[name].chunk_counts.items(): count = sum(a*b for a,b in dc.items()) s = tok.pretokenizer.decode(seq) total_len += len(s) * count chunk_lens[name].append(len(s))
codeprint(f"{name:<25} {total_len:10,d} chars")given this, visualize chunk_lens distributions and compare
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.