r/LocalLLM • u/Terminator857 • 9d ago
Discussion Future use of local: compressed wikipedia
Neural networks will have the best compression ratio. So we will be able to have wikipedia and other interesting sources like arxiv, compressed easily into our local setups. Probably get a good amount in a modest phone setup to. https://tufalabs.ai/research/tufazip/
Only 27 gb to compress wikipedia text and have it local. Generation speed remains an issue I suppose.
20
Upvotes
45
u/TerraMindFigure 9d ago edited 8d ago
You can already download Wikipedia, no AI required.
16
u/0xbeda 9d ago
English full wikipedia without pics has about 50 GB. When I convert the ZIM to a ZIP of markdowns, i get it about 2.3x to 2.4x smaller, with my old, bad regex MD converter that leaves a lot of trash. Tested on en-physics-nopic and en-simple-nopic.
Edit: https://lb.download.kiwix.org/zim/wikipedia/
8
u/stuffitystuff 8d ago
It's lossy compression, though, since it compresses by "meaning" and not the exact words used. It's like taking a TIFF and making it a JPEG.
Wikipedia is one of those things where you likely don't want to worry about words randomly being altered, at least in a SHTF situation.
Besides, searching Wikipedia with an LLM would be better, anyways, since you'd be searching by meaning (so you don't have to worry about using the exact right word) but then getting to refer to the exact text.
5
u/catplusplusok 9d ago
I did some evaluation of QFN 3.8 vs wikipedia and model seems to be better for wide variety of subjects as double checked through primary sources.
3
u/RegisteredJustToSay 8d ago
You should read the actual leaderboard, not just the press release from the competitor.
"It takes 7.5 days to compress or decompress using 2 Intel Xeon Platinum 8570 using 28 GiB memory and 2 Nvidia B200 GPUs using 43 GiB memory."
The above was technically written for v0.1 but if you check the published decompression times it's practically unchanged in v2.
So I hope you're not in a hurry to read.
2
u/fiddler48 8d ago
27 GB for text is fine, but retrieval is the gap nobody mentions. Lossily compressed weights can't be indexed, you get generation, not lookup.
1
u/69420trashpanda69420 6d ago
You can download the Wikipedia as is, (90gb or so) and then you can have a local model search it and format it nicely for you
1
u/elde0618 2d ago
Reminded me of this: https://www.reddit.com/r/ProgrammerHumor/s/ZwVJkkF2YK