mirror of
https://github.com/immich-app/immich.git
synced 2026-10-29 15:50:21 +08:00
* use recent mimalloc * jit caching * bump onnxruntime-gpu * explicit memory release * refactor in-memory cache * configure hf org and revision * refactor model load * move orjson response * disable direct submission for i915 * flush denormals * update tests and lock * disable suboptimal fusions * respect resize_mode * increase threads for clip text
11 lines
218 B
Python
11 lines
218 B
Python
import ctypes
|
|
|
|
_process = ctypes.CDLL(None)
|
|
|
|
|
|
def release() -> None:
|
|
if hasattr(_process, "mi_collect"):
|
|
_process.mi_collect(True)
|
|
elif hasattr(_process, "malloc_trim"):
|
|
_process.malloc_trim(0)
|