Closed jug-dev closed 1 year ago
An empty merge request, left alone, Forgotten by those who once did own, The code it held now left to roam, In limbo it rests, with no home.
No comments, no reviews, no merge, Just silence now, an eerie dirge, The author waits, with bated breath, For any sign, of life or death.
But days turn to weeks, and weeks to months, And hope begins to fade and confronts, The sad reality that this request, Will forever remain unaddressed.
So let this be a warning to all, Don't leave your merge requests to fall, Into the abyss of neglect and decay, Give them attention, every day.
Adds
nataili.enable_ray_alternative
switch which, if enabled (disabled by default) uses an alternative to Ray.This feature changes nataili to use a persistent disk cache, rather than the ray object store which is lost each time the worker is restarted.
Benefits:
Downsides:
Note that Ray is still used, just not used for caching the large ckpt models.
The model cache files are stored in the folder
model-cache
in the Ray temp dir, if the ray temp dir has been moved using it's environmental variable (RAY_TEMP_DIR), the model cache files will also move with it.Instructions For Testing
Change
AI-Horde-Worker/requirements.txt
contents to be:Run
./update-runtime.cmd
(or .sh on Linux)Edit the file
AI-Horde-Worker/worker/argparser/stable_diffusion.py
to add "enable_ray_alternative" to the imports on line2:and add the following line at the end of the file: