abetlen / abetlen/llama-cpp-python

[FR] Auto-load/unload models to save memory when unused

オープン
#736 コメント 0 件 リアクション 20 件 担当者 0 名 GitHub で見る
enhancement server
主要言語
Python
スター
10.6k
フォーク
1.4k
PR マージ指標
PR 指標を取得中

説明

**Is your feature request related to a problem? Please describe.**
In a shared machine, or even a personal one, it's better to automatically free up the memory used when the model is not in use.

**Describe the solution you'd like**
Some `idle_before_unload=600` parameter that unloads the model after that many seconds of being idle. The model should be reloaded automatically whenever it is used again.

**Additional context**
- https://github.com/abetlen/llama-cpp-python/issues/302

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。