Ollama v0.40.17-rc2 調整 mlxrunner,讓已存的對話紀錄因應記憶體壓力
v0.40.17
mlxrunner 以前會固定保留 8 GiB 記憶體給 Metal 字首紀錄,現在改看系統還剩多少空間,以及程式執行時需要多少工作空間,再決定保留多少紀錄。
系統開始壓縮記憶體時,它會釋放用不到的緩衝區和較久沒用的紀錄,同時保留可重用的路徑與正在處理的請求,讓記憶體吃緊時仍能繼續處理工作。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
Release v0.40.17-rc2: mlxrunner: adapt saved history to memory pressure (#19678) · ollama/ollama · GitHub
Navigation Menu
[](https://github.com/)
- Products
- Platform
- *

GitHub Repository hosting, code review, and collaboration - *

Copilot AI coding agent for tasks, projects, and automated work
- Build & Ship
- * Actions CI/CD and automation
- * Code Quality Quality analysis, fixes, and enforcement
- * Codespaces Cloud development environments
- Secure
- * Code Security Vulnerability detection and remediation
- * Secret Protection Secret scanning and leak prevention
- Developers
- Learn
- * Documentation
- * Training
- * Certifications
- Build
- * Build with Copilot
- * Customize Copilot
- * Integrations
- Explore
- * Trending repos
- * GitHub Sponsors
- * Developer articles
- Businesses
- By Stage
- * Enterprises
- * Team
- * Startups
- * Nonprofits
- By Industry
- * Healthcare
- * Financial services
- * Manufacturing
- * Government
- * See all industries
- Evaluate GitHub
- * Why GitHub
- * Customer Stories
- * Business insights
- * Trust Center
- Add-ons
- * GitHub Advanced Security Enterprise-grade code security
- * Copilot for business Enterprise-grade AI features
- * Premium Support Enterprise-grade 24/7 support
- Resources
- Learn & Connect
- * Documentation
- * Resource center
- * Blog
- * Events & webinars
- * Community Forum
- * Customer Stories
- * Integrations
- Support
- * Customer support
- * Training
- * GitHub Status
- GitHub Universe
- *

GitHub Universe The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Search/
Appearance settings
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
1. 1 more breadcrumb items
2. ollama
3. ollama
Repository navigation
More items
v0.40.17-rc2
- v0.40.17-rc2
73ee71d- Verified# Verified
This commit was created on GitHub.com and signed with GitHub’s verified signature. GPG key ID: B5690EEEBB952194 Verified Learn about vigilant mode
* Compare# Choose a tag to compare ## Sorry, something went wrong. Filter Loading ## Sorry, something went wrong. ### Uh oh!
There was an error while loading. Please reload this page. ## No results found View all tags
v0.40.17-rc2: mlxrunner: adapt saved history to memory pressure (#19678)
- v0.40.17-rc2
73ee71d- Compare# Choose a tag to compare ## Sorry, something went wrong. Filter Loading ## Sorry, something went wrong. ### Uh oh!
There was an error while loading. Please reload this page. ## No results found View all tags
* Verified# Verified
This commit was created on GitHub.com and signed with GitHub’s verified signature. GPG key ID: B5690EEEBB952194 Verified Learn about vigilant mode
dhiltgen tagged this 19 Nov 23:41
- mlxrunner: adapt saved history to memory pressure
Retain Metal prefix history using observed memory headroom and execution
workspace rather than a fixed 8 GiB allowance. Release unused buffers and
cold history when system compression grows, preserving reusable paths and
active requests.
Cover pressure reclamation, snapshot ownership, memory observation, and
cacheless request isolation.
- address comments
- address comments
Assets 2
- Source code (zip) 2026-11-19T23:41:42Z
- Source code (tar.gz) 2026-11-19T23:41:42Z
Footer
[](https://github.com/) © 2026 GitHub,Inc.
Footer navigation
You can’t perform that action at this time.

Changelog Your source for the latest features, improvements, and fixes across GitHub products, all in one place.