Ollama AI open-source update: v0.40.17-rc2: mlxrunner: adapt saved history to memory pressure (#19678)
Developers introduced a new mechanism in the mlxrunner module to dynamically adjust saved history retention strategies based on the system's actual available memory, rather than relying on preset fixed rules.
Event details
The core of this update centers on functional improvements to the mlxrunner module. While this module originally managed historical data during model execution, its decision logic has changed significantly in the new version. Developers no longer decide which historical data to retain based solely on preset parameters; instead, they have adopted a more dynamic evaluation approach. This new method uses observed memory headroom and execution workspace size as key input metrics to determine how to adjust the saved history retention strategy.
Content description
This update marks a shift for mlxrunner from static configuration to dynamic adaptation. The new version introduces real-time observation of memory headroom, enabling the system to make more reasonable judgments based on current hardware load conditions.
Related details
Labeled as v0.40.17-rc2 (candidate version), this update is still in the testing phase and primarily targets the developer community for feature validation. The specific implementation relies on the Metal prefix history retention mechanism, which is an optimization result for a specific hardware architecture. Although official performance comparison data or specific memory savings figures are not provided, documentation clearly states that the function aims to solve the adaptation problem between historical data and current memory pressure.
Original source
Automatically compiled · Based on collected summaries; individual items have not been verified.