Skip to content

Fix llama-cpp cleanup error on exit#24

Merged
paberr merged 2 commits into
paberr:mainfrom
sdschmidt:fix/llama-cleanup
Jun 2, 2026
Merged

Fix llama-cpp cleanup error on exit#24
paberr merged 2 commits into
paberr:mainfrom
sdschmidt:fix/llama-cleanup

Conversation

@sdschmidt

Copy link
Copy Markdown
Contributor

Add del method to LlamaCppSummarizer to explicitly close the Llama model before garbage collection, preventing TypeError during cleanup.

Add __del__ method to LlamaCppSummarizer to explicitly close the Llama model
before garbage collection, preventing TypeError during cleanup.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Fixes the SIM105 lint failure and avoids an AttributeError if __init__
fails before _llm is set.
@paberr paberr merged commit 0826446 into paberr:main Jun 2, 2026
2 checks passed
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