跳到正文
ollama release(github.com)· github-actions[bot]·· 3 天前品質評分39

Ollama v0.40.17-rc2 調整 mlxrunner,讓已存的對話紀錄因應記憶體壓力

v0.40.17

重點導讀

mlxrunner 以前會固定保留 8 GiB 記憶體給 Metal 字首紀錄,現在改看系統還剩多少空間,以及程式執行時需要多少工作空間,再決定保留多少紀錄。

系統開始壓縮記憶體時,它會釋放用不到的緩衝區和較久沒用的紀錄,同時保留可重用的路徑與正在處理的請求,讓記憶體吃緊時仍能繼續處理工作。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

正文

Release v0.40.17-rc2: mlxrunner: adapt saved history to memory pressure (#19678) · ollama/ollama · GitHub

Skip to content

Navigation Menu

[](https://github.com/)

Sign in

  • Products

All Features

  • Developers
  • Businesses
  • Resources

Search/

Sign in

Sign up

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

ReleasesTags

v0.40.17-rc2

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

Image 9: @dhiltgendhiltgen 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

Footer

[](https://github.com/) © 2026 GitHub,Inc.

Footer navigation

You can’t perform that action at this time.

來源: ollama release (github.com)
開啟原文

讀者討論

理性交流 · 即時討論