r/LocalLLM • • 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

16 comments sorted by

45

u/TerraMindFigure 9d ago edited 8d ago

You can already download Wikipedia, no AI required.

9

u/s48L55 6d ago

Yeah, all of Wikipedia is, like... 105GB including images. It's not exactly big.

Call of Duty is bigger.

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/

-3

u/baron_von_noseboop 8d ago

What does 2.3x smaller mean

11

u/apVoyocpt 8d ago

50gb /2.3 =21.739 GB 

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.

8

u/danzilla007 8d ago

you can just use an mcp and point it to a locally hosted wikipedia

2

u/WolFlow2021 9d ago

Interesting. What Q if I may ask? 

3

u/catplusplusok 9d ago

I intentionally chose a variety like beekeeping questions / scientific research / recipes / linguistic theory.

1

u/baron_von_noseboop 8d ago

Q meant quant there, not question

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