Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk3 min

How to Reduce Memory Use When Running AI Evaluations Locally

Start with batch size, concurrency and context length; then consider quantization and backend-specific cache or CUDA graph controls. Check memory, runtime and evaluation results after each change.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To reduce memory use in local AI evaluations, first lower the evaluation’s batch size or concurrency and set a context limit that still covers the task. If memory pressure continues, consider quantized weights, then tune backend-specific overhead such as vLLM’s CUDA graphs and caches. Change one setting at a time and compare peak memory, runtime and evaluation results; there is no universal savings figure or lowest-memory backend.

Identify which memory limit you are hitting

GPU memory and CPU RAM are separate constraints, and the useful controls depend on which one is exhausted. Before changing settings, record the model and backend, hardware, context length, batch size or concurrency, precision, and whether prompts include images or other multimodal inputs. A configuration that frees GPU memory may not address CPU RAM pressure.

As an Amazon Associate I earn from qualifying purchases.

The controls below are documented for specific tools, particularly vLLM and lm-evaluation-harness. Their command-line interfaces can change, so check the options supported by the version you have installed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Reduce parallel work first

Use an automatic batch size with lm-evaluation-harness

The harness supports --batch_size auto, which detects a batch size that fits the device. If examples vary in length, its README describes periodically recalculating the size with auto:N. A smaller batch can reduce simultaneous work, though it may also reduce throughput.

#1 Best Overall
Lenovo ThinkPad P16s Gen 4 with OLED 4K Dolby Vision 100I-P3 Touchscreen
  • UNOPENED RETAIL PACKAGING, sold as configured by Lenovo. Includes one year of Courier or Carry-in Lenovo Warranty. Add up to 5 years of Lenovo Premier Onsite Support Plus when you register your computer with Lenovo.
  • The ThinkPad P16s Gen 4 is a compact mobile workstation powered by an AMD Ryzen AI 7 PRO 350 processor, offering premium AI performance and real-time workload optimization. It also features a numeric keypad to boost productivity and an extended battery life for all-day power.
  • With 32 GB DDR5-5600MT memory and a 1 TB SSD, the Copilot+ mobile workstation's dedicated AI-driven neural processing unit enhances productivity by automating tasks, optimizing workflows, and delivering top-tier performance.
  • Plenty of connectivity: 1x USB-A (USB 5Gbps / USB 3.2 Gen 1); 1x USB-A (USB 5Gbps / USB 3.2 Gen 1), Always On; 2x USB-C (Thunderbolt 4 / USB4 40Gbps), with PD 3.0 and DisplayPort 1.4; 1x HDMI 2.1, up to 4K/60Hz; 1x Headphone / microphone combo jack (3.5mm); 1x Ethernet (RJ-45); and 1x Security keyhole.
  • The mobile workstation is a visual splendor, whether editing designs or creating content, the OLED touchscreen display is excellent for any project. Equipped with high speed WiFi 7 and a 5MP RGB+IR camera with premium mics.

Cap concurrent sequences in vLLM

For vLLM, lower max_num_seqs to limit how many sequences run concurrently. This can ease memory pressure from parallel requests, at the cost of less parallel throughput. Tune the limit to the evaluation workload rather than assuming a particular value will suit every model or machine.

Set a context ceiling that fits the evaluation

vLLM’s max_model_len sets a maximum model length and can be reduced to lower memory use when an evaluation does not need the model’s full context window. Choose a ceiling that covers the genuine input and output lengths required by the task.

Rank #2
Lenovo Copilot+ PC ThinkPad P14s Gen 6 Mobile Workstation with AMD Ryzen AI 7 PRO 350 Processor, 32GB DDR5 Memory, 1TB SSD, 14” WUXGA 500 nits 100% sRGB Non-Touch Display, Wi-Fi 7, and Win 11 Pro
  • Unopened retail packaging, sold as configured by Lenovo. One Year Courier or Carry In Lenovo Warranty. Add up to 5 years of coverage when you register your computer with Lenovo.
  • The 14” Lenovo ThinkPad P14s Gen 6, Lenovo’s thinnest and lightest mobile workstation, boasts unmatched power with the AMD Ryzen AI 7 PRO 350 processor, delivering supreme AI performance for real-time workload optimization. This Copilot+ PC features AMD Radeon integrated graphics for intensive AI workflows for amplified productivity and efficiency.
  • This mobile workstation is designed for business professionals, offering powerful performance with its advanced processor and ample memory, ensuring smooth multitasking and efficient workflows. The vibrant 14" display with high brightness and color accuracy is perfect for detailed work, while the long-lasting battery supports productivity on the go. While ideal for professionals, its robust features make it a great choice for anyone seeking a reliable and high-performing laptop.
  • Plenty of ports, including: 1x USB-A (USB 5Gbps / USB 3.2 Gen 1); 1x USB-A (USB 5Gbps / USB 3.2 Gen 1), Always On; 2x USB-C (Thunderbolt 4 / USB4 40Gbps), with PD 3.0 and DisplayPort 1.4; 1x HDMI 2.1, up to 4K/60Hz; 1x Headphone / microphone combo jack (3.5mm); 1x Ethernet (RJ-45); and 1x Security keyhole.
  • Boost your productivity with the Copilot+ mobile workstation. With a dedicated AI-driven neural processing unit, it revolutionizes work by crunching datasets, automating repetitive tasks, and optimizing workflows. Enjoy top-tier performance paired with exceptional efficiency for the most demanding tasks.

Do not shorten prompts or completions simply to make a run fit if doing so changes what the benchmark measures. In that case, the result is no longer directly comparable to an evaluation using the intended inputs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Consider quantized weights, then check the results

vLLM documents that “Quantized models take less memory at the cost of lower precision.” Use a quantized checkpoint or configuration supported by your model and backend, then rerun the evaluation and compare its results with the original precision. The documented guidance does not establish a universal memory saving or score change: both depend on the particular setup.

Rank #3
Dell Precision 3490 Mobile Workstation Laptop, 14" FHD, 32GB DDR5, 1TB SSD
  • DESIGNED FOR PROFESSIONALS ON THE MOVE - The Dell Precision 3490 marries professional-grade performance with portability to elevate your work-anywhere experience. Weighing just 3.09 lbs and tested to MIL-STD 810H military standards, it hits the sweet balance: delivering the robustness and power for demanding applications, sans the flagship Precision 5690’s premium price or the desktop-replacement Precision 7680’s excessive heft. Enjoy seamless productivity on this single, powerful workstation.
  • PREMIUM PERFORMANCE - Powered by the Intel Core Ultra 5 135H Processor (14 Cores, up to 4.6GHz) and Intel graphics, this laptop delivers seamless multitasking and creativity, plus AI-assisted productivity to boost workflow efficiency. It also features 32GB DDR5 RAM and 1TB SSD for fast storage and reduced load times, ensuring smooth and responsive performance for all your tasks.
  • CRISP DISPLAY & PRIVACY - 14" FHD (1920×1080) display delivers vibrant and comfortable viewing for everyday professional work. Support for up to 3 external monitors via HDMI and Thunderbolt ports at 4K@60Hz (without docking station). A built‑in 1080p FHD HDR RGB webcam with privacy shutter ensures clear, reliable video calls for collaboration and meetings.
  • VERSATILE CONNECTIVITY - Equipped with two Thunderbolt 4, two USB-A, HDMI, Ethernet, and an Audio combo jack for flexible connections. With Wi-Fi 6 and Bluetooth, ensuring fast wireless connectivity and compatibility with a wide range of peripherals. Working comfortably in any lighting with a backlit keyboard.
  • OPERATING SYSTEM - Windows 11 Pro 64‑bit, with AI‑powered Copilot, offers intelligent assistance to streamline complex professional workflows, enhance productivity, and support advanced multitasking across demanding applications. Built for workstation‑class computing, it delivers enterprise‑grade security and IT manageability.

Tune vLLM overhead and caches where relevant

Reduce CUDA graph capture overhead

vLLM’s memory guide notes that CUDA graph capture uses extra GPU memory. It documents reducing capture sizes or setting enforce_eager=True to avoid that capture overhead. These changes may affect inference speed, so compare runtime as well as memory on your workload.

Review CPU cache settings

For the CPU backend, vLLM documents controls for CPU KV-cache space. Its documented default for VLLM_CPU_KVCACHE_SPACE is 4 GiB; this is a default setting, not a general memory-saving estimate or a recommendation for every workload. For multimodal models, vLLM also documents a processor-cache control.

Rank #4
Dell Precision 7780 Mobile Workstation 17.3" FHD Laptop, Intel Core i9-13950HX, 128GB RAM, 1TB NVMe SSD, NVIDIA RTX ADA 3500 12GB, HDMI, USB-C, Wi-Fi, BT - Windows 11 Pro - AI Copilot, Grey
  • Intel Core i9-13950HX Processor for demanding professional applications and multitasking workloads. Includes Dell Manufacturer Warranty through March 2031.
  • Professional Workstation Configuration – Designed for engineering, design, software development, data analysis, and other business applications.
  • NVIDIA RTX 3500 Ada Generation: Featuring 12GB of VRAM, this professional-grade GPU delivers the stability and power required for advanced engineering, architectural design, and intensive content creation.
  • Built for Business & Connectivity – Features HDMI, USB-C, Wi-Fi, Bluetooth, and Windows 11 Pro with AI Copilot for productivity, security, and modern workflows.
  • ISV-Certified Workstation Performance – Optimized and tested for professional software applications used in design, engineering, and data science.

Limit multimodal input capacity only if the task allows it

For multimodal models, vLLM offers limits on multimodal items per prompt and supports disabling unused modalities. These controls are relevant only when the model and task use multimodal inputs. Restricting accepted inputs changes the workload’s scope, so do not apply it if the evaluation depends on those inputs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choose a local evaluation backend for the workload

lm-evaluation-harness supports Hugging Face Transformers and vLLM, as well as evaluation through a llama.cpp server for GGUF models. The available documentation does not establish one as the lowest-memory choice for every model, task and machine. Treat backend selection as a setup-specific comparison, not a guaranteed shortcut.

Best Value
Lenovo ThinkPad P14s Gen 6 14" FHD+ Laptop, AMD Ryzen AI 7 350, 16GB/512GB
  • [AI-OPTIMIZED POWER IN A COMPACT BUILD] The 14” Lenovo ThinkPad P14s Gen 6, a thin and light mobile workstation, boasts unmatched power with AMD Ryzen AI PRO 300 Series processors, delivering supreme AI performance for real-time workload optimization. This Copilot+ PC features AMD Radeon integrated graphics for intensive AI workflows for amplified productivity and efficiency. Features Zen 5 Gen Ryzen AI 7 350 2.00GHz Processor (upto 5 GHz, 16MB Cache, 8-Cores, 16-Threads) and AMD Radeon 860M Integrated Graphics
  • [CLEAR AND COMFORTABLE VIEWING ALL DAY] Features 14.0" IPS WUXGA (1920x1200) 60Hz Display; 65W PSU, Type-C Power-In, 4-Cell 57 WHr Battery; Black Color
  • [HIGH-SPEED COLLABORATION WITHOUT THE HASSLE] Stay ahead and connected with advanced WiFi with seamless speed. Designed with a robust port selection and lightning-fast memory, this device ensures you enjoy seamless, high-speed collaboration and rapid data transfers, making it perfect for juggling demanding tasks. Tailored for power users, it delivers reliable performance without any compromises. Features 16GB DDR5 SODIMM, 512GB PCIe NVMe SSD; 802.11be, Bluetooth 5.4, RJ-45, Webcam, 1 x HDMI 2.1, 2 Thunderbolt 4, Headphone/Microphone Combo Jack.
  • [PROFESSIONAL-GRADE OPERATING SYSTEM] Windows 11 Pro 64-bit provides advanced security tools, business-class management features, and AI-powered Copilot to simplify everyday tasks. Ideal for professionals, educators, creators, remote workers, and anyone needing a dependable platform for virtual meetings, streaming, and multitasking.
  • [PROFESSIONAL UPGRADE] The original seal has been opened only to perform authorized hardware upgrades. The upgraded RAM/SSD is covered by a 3-year warranty from MichaelElectronics2, while all remaining components continue under the original 1-year manufacturer warranty.

Compare changes without losing track of validity

Make one change at a time and keep the model, task and other evaluation settings equivalent. For each run, log:

  • Peak GPU memory and CPU RAM use.
  • Runtime or throughput.
  • Evaluation results and any change to precision or accepted input lengths.

This makes the tradeoff visible: less concurrency or a lower context ceiling constrains the workload; quantization lowers precision; and graph settings can affect speed. The vLLM and lm-evaluation-harness documentation provides no broadly applicable figure for how many gigabytes or what percentage any one intervention will save.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.