René's URL Explorer Experiment


Title: fix(llama): release a vision chat handler's mtmd context on close (#2342) by Anai-Guo · Pull Request #2343 · abetlen/llama-cpp-python · GitHub

Open Graph Title: fix(llama): release a vision chat handler's mtmd context on close (#2342) by Anai-Guo · Pull Request #2343 · abetlen/llama-cpp-python

X Title: fix(llama): release a vision chat handler's mtmd context on close (#2342) by Anai-Guo · Pull Request #2343 · abetlen/llama-cpp-python

Description: Python bindings for llama.cpp. Contribute to abetlen/llama-cpp-python development by creating an account on GitHub.

Open Graph Description: Fixes #2342. Register MTMD context cleanup on the Llama instance whose model created it. Release the context before model teardown and reset the handler for reuse. Avoid making Llama own arbitrary...

X Description: Fixes #2342. Register MTMD context cleanup on the Llama instance whose model created it. Release the context before model teardown and reset the handler for reuse. Avoid making Llama own arbitrary...

Opengraph URL: https://github.com/abetlen/llama-cpp-python/pull/2343

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:ddd9de76-016c-c454-c01a-2d20664ad5d8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE09C:1A3D7F:1C0FF17:241BF99:6AFFC223
html-safe-noncee2f52557bda7b4e842b04aaaad9c7b47d33ed238cbd4695dbc81a18546600025
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDlDOjFBM0Q3RjoxQzBGRjE3OjI0MUJGOTk6NkFGRkMyMjMiLCJ2aXNpdG9yX2lkIjoiMzkzOTE0NzYyNjg5NjY3MTI2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7f6a223bf548145fa3b506e10c4bb10bd903bb066c7b7576ef664316244cb7d8
hovercard-subject-tagpull_request:4075632122
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/abetlen/llama-cpp-python/2343/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/547c473cab082004dc8d0fd1c0f4f751bd7ea2b0bb22274dee7bb47beed3debb/abetlen/llama-cpp-python/pull/2343
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/547c473cab082004dc8d0fd1c0f4f751bd7ea2b0bb22274dee7bb47beed3debb/abetlen/llama-cpp-python/pull/2343
og:image:altFixes #2342. Register MTMD context cleanup on the Llama instance whose model created it. Release the context before model teardown and reset the handler for reuse. Avoid making Llama own arbitrary...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAnai-Guo
hostnamegithub.com
expected-hostnamegithub.com
None1e805b832df235bb21305db712c3b6432920019dfc12cb25b9cb8d3b0c9403cf
turbo-cache-controlno-cache
go-importgithub.com/abetlen/llama-cpp-python git https://github.com/abetlen/llama-cpp-python.git
octolytics-dimension-user_id6826477
octolytics-dimension-user_loginabetlen
octolytics-dimension-repository_id617868717
octolytics-dimension-repository_nwoabetlen/llama-cpp-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id617868717
octolytics-dimension-repository_network_root_nwoabetlen/llama-cpp-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8fa4a54e6871c7908eda1c246ad5972982c0b59d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/abetlen/llama-cpp-python/pull/2343#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fabetlen%2Fllama-cpp-python%2Fpull%2F2343
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fabetlen%2Fllama-cpp-python%2Fpull%2F2343
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=abetlen%2Fllama-cpp-python
Reloadhttps://github.com/abetlen/llama-cpp-python/pull/2343
Reloadhttps://github.com/abetlen/llama-cpp-python/pull/2343
Reloadhttps://github.com/abetlen/llama-cpp-python/pull/2343
abetlenhttps://github.com/abetlen
llama-cpp-pythonhttps://github.com/abetlen/llama-cpp-python
Codehttps://github.com/abetlen/llama-cpp-python
Issues600 (600)https://github.com/abetlen/llama-cpp-python/issues
Pull requests122 (122)https://github.com/abetlen/llama-cpp-python/pulls
Discussionshttps://github.com/abetlen/llama-cpp-python/discussions
Actionshttps://github.com/abetlen/llama-cpp-python/actions
Projectshttps://github.com/abetlen/llama-cpp-python/projects
Security and quality1 (1)https://github.com/abetlen/llama-cpp-python/security
Insightshttps://github.com/abetlen/llama-cpp-python/pulse
https://github.com/abetlen/llama-cpp-python
abetlenhttps://github.com/abetlen
abetlen:mainhttps://github.com/abetlen/llama-cpp-python/tree/main
Anai-Guo:fix/close-chat-handler-mtmdhttps://github.com/Anai-Guo/llama-cpp-python/tree/fix/close-chat-handler-mtmd
Conversationhttps://github.com/abetlen/llama-cpp-python/pull/2343
Commits2 (2)https://github.com/abetlen/llama-cpp-python/pull/2343/commits
Checkshttps://github.com/abetlen/llama-cpp-python/pull/2343/checks
Files changedhttps://github.com/abetlen/llama-cpp-python/pull/2343/files
fix(llama): release a vision chat handler's mtmd context on close (#2342)https://github.com/abetlen/llama-cpp-python/pull/2343#top
abetlenhttps://github.com/abetlen
abetlen:mainhttps://github.com/abetlen/llama-cpp-python/tree/main
Anai-Guo:fix/close-chat-handler-mtmdhttps://github.com/Anai-Guo/llama-cpp-python/tree/fix/close-chat-handler-mtmd
https://github.com/Anai-Guo
Anai-Guohttps://github.com/Anai-Guo
Jul 17, 2026https://github.com/abetlen/llama-cpp-python/pull/2343#issue-4910332320
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2343
#2342https://github.com/abetlen/llama-cpp-python/issues/2342
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2343
August 17, 2026 00:22https://github.com/abetlen/llama-cpp-python/pull/2343#commits-pushed-5090bff
https://github.com/abetlen
fix(llama): release a vision chat handler's mtmd context on close (https://github.com/abetlen/llama-cpp-python/pull/2343/commits/5090bffe75a8bf0fb704b7593394fa55d60543e0
ab…https://github.com/abetlen/llama-cpp-python/issues/2342
5090bffhttps://github.com/abetlen/llama-cpp-python/pull/2343/commits/5090bffe75a8bf0fb704b7593394fa55d60543e0
…etlen#2342https://github.com/abetlen/llama-cpp-python/issues/2342
https://github.com/abetlen
fix: bind multimodal context cleanup to modelhttps://github.com/abetlen/llama-cpp-python/pull/2343/commits/11aeacda2a2e65ed4264a3ce10e13fa05d330c93
11aeacdhttps://github.com/abetlen/llama-cpp-python/pull/2343/commits/11aeacda2a2e65ed4264a3ce10e13fa05d330c93
https://github.com/abetlen
abetlenhttps://github.com/abetlen
force-pushedhttps://github.com/abetlen/llama-cpp-python/compare/dbededa8dfd0096ac507df7c6c0c31aa1ec1b457..11aeacda2a2e65ed4264a3ce10e13fa05d330c93
dbededahttps://github.com/abetlen/llama-cpp-python/commit/dbededa8dfd0096ac507df7c6c0c31aa1ec1b457
11aeacdhttps://github.com/abetlen/llama-cpp-python/commit/11aeacda2a2e65ed4264a3ce10e13fa05d330c93
Compare https://github.com/abetlen/llama-cpp-python/compare/dbededa8dfd0096ac507df7c6c0c31aa1ec1b457..11aeacda2a2e65ed4264a3ce10e13fa05d330c93
August 17, 2026 07:23https://github.com/abetlen/llama-cpp-python/pull/2343#event-29548369920
https://github.com/abetlen
abetlenhttps://github.com/abetlen
9dd3950https://github.com/abetlen/llama-cpp-python/commit/9dd3950067d513b5487d6cb7b189ccdd71fefa85
Aug 17, 2026https://github.com/abetlen/llama-cpp-python/pull/2343#event-29551177147
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2343
https://github.co/hiddenchars
https://github.com/abetlen/llama-cpp-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fabetlen%2Fllama-cpp-python%2Fpull%2F2343
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2343
Llama.close() doesn't clean up chat_handler causing null pointer on second load of a vision model https://github.com/abetlen/llama-cpp-python/issues/2342
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2343
https://github.com/Anai-Guo
https://github.com/abetlen
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.