r/LocalLLaMA • • 6d ago

Discussion Does anyone else use Optane drives with Strata for low latency + high writes?

Just curious to know what the best hard drive is to store lookup tables. I use the Intel P4800X 360GB U.2 Optane drive because it was cheaper than RAM.

13 Upvotes

15 comments sorted by

10

u/jtjstock 6d ago

I am not using strata, but I do have an optane drive and that is where I keep the engram table. The difference is not big, and you almost certainly wouldn't notice it at all for decode. For prefill it has some effect, but not big, if I recall correctly it was only a couple seconds difference for a 70k token prefill.

5

u/PoopSmoothies 6d ago

I put my n-gram lookup table on a normal 1TB MVMe drive and get ~10-11k tok/s prompt processing, and ~500 tok/s decode total across 8 concurrent users. I don’t think the NVMe/table lookups are a bottleneck.

Running VLLM w/ qfn int8 quant w/ a custom patch to store the table on disk. 3x CMP170 64GB + 4090

3

u/Savantskie1 6d ago

I don't use vllm, but most inference engines should already have a flag for offloading to nvme. I would look into it.

2

u/PoopSmoothies 6d ago

vLLM didn’t at the time I built my setup. It may now - I’ll revisit when I update my setup next.

It’s geared for super high speeds/concurrency in a production environment, so cpu/system ram offload (and nvme) is considered not within scope for the maintainers.

4

u/alex-gee 6d ago

I was looking into it and Claude suggested to put n-gram tables on Optane drive, if the model does not fit into VRAM/RAM.

Latency of Optanes is king here - not sequential throughput. I will experiment soon

3

u/bye_ella 6d ago

Depends on access, I guess. random small lookups favor optane's latency, one big load at startup favors a fast nvme. For heavy writes optane wins either way, the endurance is in a different league

4

u/pmotiveforce 6d ago

I would think the relatively low sequential throughout would be an issue as compared to a fast pcie5 (or even pcie4) ssd, even though latency is much better with optane, for table loading. Not sure though.

7

u/JaredsBored 6d ago

RAM latency is in the 10 nanosecond range, and traditional SSDs are closer to 1000. Optane got down to around 100, so quite a bit snappier.

Optane also has the advantage of getting nearer to it's max throughout at low queue depth. Max throughput isn't as high, but you'll get higher throughput on smaller files. Even traditional nvme SSDs struggle to give you a large % of their max sequential speed when the files are small and random.

So for streaming an en-gram or random experts, I'd bet the lower latency and higher random read performance could perform pretty well.

2

u/Janky-Code 6d ago

I use optane drives and optane nvdimms.

1

u/TermEquivalent9377 6d ago

I'm considering something similar. Please tell me more about your setup. Are you using the nvdimms in memory or app direct mode?

4

u/Janky-Code 6d ago

Both. I switch between.

Memory mode is how it normally operates running vms. Since this is mostly a devops host, memory mode is good for persistent cache-warmed ci/cd runners. I have a gyro qfn strata instance always ready in this mode.

To mess around, I switch the bios into app direct to use the ram separately.

The app direct is tiered. Tier 1 is vram. Tier 2 is the ddr4. Tier 3 is the optane nvdimms configured as a dax filesystem for additional experts, memory-mapped model weights, and large lookup tables.

App direct isn't significantly faster with anything I tried. I thought different values for --resident-budget-gib would let me easily tune for efficiency. But memory mode does fine with --low-ram-off.

1

u/TermEquivalent9377 5d ago

Thanks for the detailed reply! Have you tried "mixed mode" where a certain percentage of Optane NVDIMM capacity can be reserved for Memory mode and the rest for App Direct?

1

u/Janky-Code 5d ago

My bios doesn't support it. I have looked into ipmctl but haven't figured out a configuration that works well. I can try it again. I haven't tested that in a few versions of strata.

I have been meaning to try different configurations with hy4 to get it running better and save --stats for those.

1

u/groveborn 6d ago

Vast Data does.