sdwebuiapi icon indicating copy to clipboard operation
sdwebuiapi copied to clipboard

How to unload SD checkpoint to free VRAM?

Open BEAU77 opened this issue 2 years ago • 1 comments

How to perform checkpoint unload with webuiapi? In GUI we can go Setting> Action > unload SD checkpoint. API

BEAU77 avatar Aug 15 '23 06:08 BEAU77

Maybe there is needed a reload endpoint. In automatic1111 frontend there is no unload model as well, but Reload UI. So.. I supose the way is to reload the program but from the api.

In the documentation from http://localhost:7860/docs#/ i see there are two endpoints:

POST /sdapi/v1/unload-checkpoint Unloadapi

POST /sdapi/v1/reload-checkpoint Reloadapi

I don't know what these endpoints do, but I think it can be a possible way.

Did you try it?

davidmartinrius avatar Nov 30 '23 16:11 davidmartinrius