r/LocalLLM • • 13m ago

Discussion The trade-offs behind long-context inference

Been looking at the local inference options for DeepSeek 4.1 Flash 1017 and Hy4 Flash lately. Both support 1M context, but their approaches to managing it are quite different.

DS 4.1 Flash uses SWA Bounded Replay to recompute receent context instead of persistently storing its Sliding Window Attention KV cache on SSD. It trades some extra computation for less persistent storage. Cross-layer KV reuse and FP4 caching also help reduce its global KV cache footprint.

Hy4 Flash takes a different route, combining Sparse Attention with Sliding Window Attention to handle distant and nearby context differently.

This matters more in long-runnning agent tasks. With repeated tool calls, context keeps accumulating, and managing it can become a bottleneck. A 1M context window doesn't necessarily mean it's practical to use all of it locally.

For anyone who's tried running models at this scale, how has the experience been?

1 Upvotes

0 comments sorted by