Skip to content

Conversation

@mgoin
Copy link
Member

@mgoin mgoin commented Feb 29, 2024

Experiments with trying to release allocated memory when the LLM creation wasn't successful


def __del__(self):
del self.llm_engine.driver_worker.model_runner
del self.llm_engine.driver_worker
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will also have to handle the case where there are multiple gpus.

In this case llm_engine will also have a workers list

@DarkLight1337
Copy link
Member

Closing as superseded by #4349

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants