memory-optimization

Tag

Cards List
#memory-optimization

64GB isn't the dead zone anymore if you run agents

Reddit r/LocalLLaMA ↗ · 2026-11-01

作者认为64GB内存不再是本地LLM的'死区'——在M4 Max上运行Qwen3.8 27B进行agentic coding,KV cache和prompt cache使64GB恰好成为sweet spot,打破了此前认为该容量尴尬的共识。

0 favorites 0 likes
#memory-optimization

LRMoE: Demand-Side Load Re-Calibration for Efficient MoE Training on Memory-Constrained Nodes

arXiv cs.AI ↗ · 2026-10-31 Cached

LRMoE is a memory-aware MoE training system that jointly recalibrates backward demand and balances retained workload on memory-constrained GPU nodes, reducing cumulative MoE-layer training time by 21.2-44.8% on Qwen3-30B-A3B and GLM4.5-106B-A12B compared to SYMI.

0 favorites 0 likes
#memory-optimization

Go 1.28's HTTP/2 Parking: Measuring Memory Savings

Lobsters Hottest ↗ · 2026-10-30 Cached

The article benchmarks Go 1.28's new HTTP/2 'parking' mechanism, which lets idle connection-serving goroutines exit and be recreated on demand, showing 84.7–92.6 MiB (about 39–41%) RSS savings at 5,000 idle connections compared to the same binary with parking disabled.

0 favorites 0 likes
#memory-optimization

Shrinking NixOS Ram footprint and resource requirements to the bare minimum

Lobsters Hottest ↗ · 2026-10-30 Cached

A detailed write-up demonstrating how NixOS 26.05 can be tuned to idle at just 96MB RAM and complete full rebuilds within 512MB, using kernel cmdline flags, module blacklisting, and disabling unused hardware support for KVM guests.

0 favorites 0 likes
#memory-optimization

MemSteer: Turning User Histories into Supervision for Agent Memory Optimization

Hugging Face Daily Papers ↗ · 2026-10-29 Cached

MemSteer, developed at Peking University and Microsoft Research Asia, converts user histories into automatically generated supervision tests for agent memory, and MemSteer-Opt uses the resulting evidence to optimize storage, retrieval, and presentation without hand-labeled data or fine-tuning, improving BM25 baselines on ATM-Bench and RHELM.

0 favorites 0 likes
#memory-optimization

I built a PyTorch optimizer for large GPU workloads — looking for feedback[P]

Reddit r/MachineLearning ↗ · 2026-10-27

A developer shares ApexW, an experimental PyTorch optimizer using compact optimizer states and a Triton-based execution path, claiming ~1.5x faster optimizer steps and halved optimizer-state memory on large-tensor workloads — while openly noting regressions on many-small-tensor models and minimal end-to-end gains.

0 favorites 0 likes
#memory-optimization

Using a lookup-table to correct an approximation

Lobsters Hottest ↗ · 2026-10-22 Cached

A Corsix.org blog post explores reducing binary size for enum-to-string conversion functions by replacing pointer tables with compact offset tables, and further compressing those offsets using a linear approximation corrected by a small lookup table of residuals.

0 favorites 0 likes
#memory-optimization

PACE: Periodic and Channel-Aligned Encoding of Four-Bit Recurrent States

Hugging Face Daily Papers ↗ · 2026-10-21 Cached

PACE 是一种免微调的后训练四比特量化器,用于线性注意力循环状态,通过降低量化频率(每隔几个 token 才舍入一次)并采用列对齐的量化尺度来减少误差,从而在 4B-35B 参数混合模型上以约三分之二的内存达到与八比特 DAMP 相当的性能。

0 favorites 0 likes
#memory-optimization

@ickma2311: ∇ Stanford CS336 (Spring 2026) — Lecture 6: Kernels and Triton A shorter tensor expression does not necessarily mean fe…

X AI KOLs Following ↗ · 2026-10-18 Cached

斯坦福 CS336(2026 春)第 6 讲的笔记,讲解如何通过减少 GPU 内存往返来优化内核:对比 softmax 多次遍历与融合行内核的内存流量,介绍 Triton 的块级编程模型,并强调先用 CUDA event 测量基线、再做内核融合与分块优化。

0 favorites 0 likes
#memory-optimization

0/1 Knapsack Problem in PyTorch

Hacker News Top ↗ · 2026-10-14 Cached

The article introduces dp_knapsack_sliding_hirschberg, a new activation memory budget solver for PyTorch that reduces peak RAM usage during memory planning by up to 20x compared to the default dp_knapsack solver, explaining how 0/1 knapsack dynamic programming is used to choose which operations to save or recompute.

0 favorites 0 likes
#memory-optimization

llama : add a GPU cache for MoE experts kept in host memory by am17an · Pull Request #29887 · ggml-org/llama.cpp

Reddit r/LocalLLaMA ↗ · 2026-10-07 Cached

PR #29887 adds a GPU cache for MoE experts kept in host memory in llama.cpp, improving performance when expert weights overflow to CPU RAM.

0 favorites 0 likes
#memory-optimization

Janet on x32: 32-bit Pointers, 64-bit Speed, 25% Less RAM

Lobsters Hottest ↗ · 2026-10-06 Cached

Alex Alejandre explores compiling the Janet language for the Linux x32 ABI to get 32-bit pointers with 64-bit speed, reporting up to ~20-25% memory savings on Arch but a 50% slowdown for that workload — highlighting that x32 offers dramatic potential for pointer-heavy programs but lacks packaging and ecosystem support.

0 favorites 0 likes
#memory-optimization

WakeKV: Reactive, Reversible KV Residency for Heads That Change Their Minds

arXiv cs.CL ↗ · 2026-10-05 Cached

WakeKV is a reactive, reversible KV-cache residency policy that dynamically demotes cooling attention heads to a recoverable CPU reservoir, outperforming frozen classification and destructive eviction baselines (SnapKV, R-KV, ReasonAlloc) on long-context serving, with a FlexiCache/vLLM implementation confirming throughput gains on Mistral-7B.

0 favorites 0 likes
#memory-optimization

@RisingSayak: Tensor parallel loading in Diffusers got a massive upgrade On Flux.2-Dev DiT, with a TP degree of 4 (A10G): • 30.4s → 1…

X AI KOLs Following ↗ · 2026-10-01 Cached

Hugging Face Diffusers 上张量并行(tensor parallel)加载迎来重大优化:在 Flux.2-Dev DiT、TP=4(A10G)配置下,加载时间从 30.4s 降至 12.5s(约 2.4 倍提速),每 rank 峰值 CPU 内存从 64.1 GB 降至 6.8 GB(减少约 89%)。相关分布式推理(Accelerate 与 PyTorch Distributed)用法已更新到官方文档。

0 favorites 0 likes
#memory-optimization

PReCache: Efficient KV Cache Sharing for Multi-LoRA Agents via Low-Rank Precomputation and Neutral Reconstruction

Hugging Face Daily Papers ↗ · 2026-09-28 Cached

PReCache is a training-free KV cache sharing framework that uses low-rank precomputation and neutral reconstruction to reduce memory and computation redundancy in multi-LoRA agent systems, achieving speedups and maintaining accuracy.

0 favorites 0 likes
#memory-optimization

@QingQ77: WonderBox is a system toolbox that runs entirely natively on Mac, centrally providing system monitoring, memory optimiz…

X AI KOLs Timeline ↗ · 2026-09-26 Cached

WonderBox is a native macOS system toolbox that provides system monitoring, memory optimization, cache cleaning, and other utilities to help users manage their Mac efficiently.

0 favorites 0 likes
#memory-optimization

QWEN3.6-27B-MLX-8bit (29.5GIG) Is Excellent

Reddit r/openclaw ↗ · 2026-09-25

A user shares their experience switching to the QWEN3.6-27B-MLX-8bit model for local AI tasks, finding it performs comparably to larger models while saving significant RAM on a Mac Studio, improving workflow stability.

0 favorites 0 likes
#memory-optimization

Keeping Large MoE Training Within Fixed GPU Memory (20 minute read)

TLDR AI ↗ · 2026-09-23 Cached

This paper introduces methods to bound four key memory peaks in large Mixture-of-Experts training, enabling training at 1M context length with fixed GPU memory and up to 10.4× throughput improvement over baselines.

0 favorites 0 likes
#memory-optimization

PAGE: Partition-Aware Gated KV-Cache Eviction

arXiv cs.LG ↗ · 2026-09-22 Cached

The paper introduces PAGE, a partition-aware gated KV-cache eviction method that uses a scalar metric to predict input classes and apply eviction only when safe, reducing accuracy degradation in large language models.

0 favorites 0 likes
#memory-optimization

TierKV: Long-Context On-Device LLMs via Predictive Multi-Tier KV Caching

arXiv cs.LG ↗ · 2026-09-21 Cached

TierKV proposes a predictive multi-tier KV caching framework to optimize memory usage and throughput for long-context LLMs on mobile devices, achieving significant performance improvements with minimal accuracy degradation.

0 favorites 0 likes
Next →
← Back to home

Submit Feedback