8000 [Question] How would you unload a model after it has been loaded? · Issue #302 · abetlen/llama-cpp-python · GitHub
[go: up one dir, main page]

Skip to content
[Question] How would you unload a model after it has been loaded? #302
Closed
@real-limitless

Description

@real-limitless

Hello World,

Im looking for a way to be able to load multiple models at diffrent times but im looking for way to unload the model from GPU/RAM when Im done using in the main process.

For example, in your main process you call llama-cpp-python you call your model and you interface with the model.
However say you need to switch to another model via the main process, typically you suppose to unload the model from ram and then load the next model but I can seem to figure out a way to beable to gracefully tell llama-cpp to shutdown and unload from memory so I dont run into OOM issues.

Anyone have any ideas on how to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0