René's URL Explorer Experiment


Title: fix: preserve recurrent/hybrid model state when the full prompt is already cached by allthatido · Pull Request #2306 · abetlen/llama-cpp-python · GitHub

Open Graph Title: fix: preserve recurrent/hybrid model state when the full prompt is already cached by allthatido · Pull Request #2306 · abetlen/llama-cpp-python

X Title: fix: preserve recurrent/hybrid model state when the full prompt is already cached by allthatido · Pull Request #2306 · 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: Summary generate() always resets the recurrent state for hybrid models because its prefix matching compares self._input_ids (N tokens) against tokens[:-1] (N-1 tokens). When the full prompt is alre...

X Description: Summary generate() always resets the recurrent state for hybrid models because its prefix matching compares self._input_ids (N tokens) against tokens[:-1] (N-1 tokens). When the full prompt is alre...

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

X: @github

direct link

Domain: github.com

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:12fa4402-a825-6e02-7b7b-c95cd850d0ec
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC5D8:1E946E:367E44F:4C6F125:6A635E0A
html-safe-nonce3602f1663fac6d642486be56df423617240d1741819414aa1383c30b0f6d7aa1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUQ4OjFFOTQ2RTozNjdFNDRGOjRDNkYxMjU6NkE2MzVFMEEiLCJ2aXNpdG9yX2lkIjoiNzg5NTMwNDYzNjc0MDA5OTU5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac72beed68860a8fb1c1961cc9d459b9d00e33b41baa2fa3f6f34294dbedcdd453
hovercard-subject-tagpull_request:3864061616
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/2306/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1183b3f28dc5b309c302afb9d1e531e40fbbde3d8744d13fb20f2dfc93f6ab7d/abetlen/llama-cpp-python/pull/2306
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1183b3f28dc5b309c302afb9d1e531e40fbbde3d8744d13fb20f2dfc93f6ab7d/abetlen/llama-cpp-python/pull/2306
og:image:altSummary generate() always resets the recurrent state for hybrid models because its prefix matching compares self._input_ids (N tokens) against tokens[:-1] (N-1 tokens). When the full prompt is alre...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameallthatido
hostnamegithub.com
expected-hostnamegithub.com
None59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94
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
release71b1218de2f2ab29c4d5ce72568e68e2c56044c6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/abetlen/llama-cpp-python/pull/2306#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fabetlen%2Fllama-cpp-python%2Fpull%2F2306
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fabetlen%2Fllama-cpp-python%2Fpull%2F2306
Sign up https://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/2306
Reloadhttps://github.com/abetlen/llama-cpp-python/pull/2306
Reloadhttps://github.com/abetlen/llama-cpp-python/pull/2306
abetlen https://github.com/abetlen
llama-cpp-pythonhttps://github.com/abetlen/llama-cpp-python
Notifications https://github.com/login?return_to=%2Fabetlen%2Fllama-cpp-python
Fork 1.4k https://github.com/login?return_to=%2Fabetlen%2Fllama-cpp-python
Star 10.5k https://github.com/login?return_to=%2Fabetlen%2Fllama-cpp-python
Code https://github.com/abetlen/llama-cpp-python
Issues 598 https://github.com/abetlen/llama-cpp-python/issues
Pull requests 80 https://github.com/abetlen/llama-cpp-python/pulls
Discussions https://github.com/abetlen/llama-cpp-python/discussions
Actions https://github.com/abetlen/llama-cpp-python/actions
Projects https://github.com/abetlen/llama-cpp-python/projects
Security and quality 1 https://github.com/abetlen/llama-cpp-python/security
Insights https://github.com/abetlen/llama-cpp-python/pulse
Code https://github.com/abetlen/llama-cpp-python
Issues https://github.com/abetlen/llama-cpp-python/issues
Pull requests https://github.com/abetlen/llama-cpp-python/pulls
Discussions https://github.com/abetlen/llama-cpp-python/discussions
Actions https://github.com/abetlen/llama-cpp-python/actions
Projects https://github.com/abetlen/llama-cpp-python/projects
Security and quality https://github.com/abetlen/llama-cpp-python/security
Insights https://github.com/abetlen/llama-cpp-python/pulse
abetlenhttps://github.com/abetlen
abetlen:mainhttps://github.com/abetlen/llama-cpp-python/tree/main
allthatido:bugfix/hybrid_model_state_resethttps://github.com/allthatido/llama-cpp-python/tree/bugfix/hybrid_model_state_reset
Conversationhttps://github.com/abetlen/llama-cpp-python/pull/2306
Commits1 (1)https://github.com/abetlen/llama-cpp-python/pull/2306/commits
Checkshttps://github.com/abetlen/llama-cpp-python/pull/2306/checks
Files changedhttps://github.com/abetlen/llama-cpp-python/pull/2306/files
fix: preserve recurrent/hybrid model state when the full prompt is already cachedhttps://github.com/abetlen/llama-cpp-python/pull/2306#top
abetlenhttps://github.com/abetlen
abetlen:mainhttps://github.com/abetlen/llama-cpp-python/tree/main
allthatido:bugfix/hybrid_model_state_resethttps://github.com/allthatido/llama-cpp-python/tree/bugfix/hybrid_model_state_reset
https://github.com/allthatido
allthatidohttps://github.com/allthatido
Jun 14, 2026https://github.com/abetlen/llama-cpp-python/pull/2306#issue-4660757314
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2306
https://github.com/abetlen
abetlenhttps://github.com/abetlen
force-pushedhttps://github.com/abetlen/llama-cpp-python/compare/57c7683882cf6394de1dfa29fdc85469a0f5af30..4faeb81565d71806991d4008b03a8a227ea1f352
57c7683https://github.com/abetlen/llama-cpp-python/commit/57c7683882cf6394de1dfa29fdc85469a0f5af30
4faeb81https://github.com/abetlen/llama-cpp-python/commit/4faeb81565d71806991d4008b03a8a227ea1f352
Compare https://github.com/abetlen/llama-cpp-python/compare/57c7683882cf6394de1dfa29fdc85469a0f5af30..4faeb81565d71806991d4008b03a8a227ea1f352
June 22, 2026 04:09https://github.com/abetlen/llama-cpp-python/pull/2306#event-27022556074
https://github.com/abetlen
abetlenhttps://github.com/abetlen
Jun 22, 2026https://github.com/abetlen/llama-cpp-python/pull/2306#issuecomment-4765130915
@allthatidohttps://github.com/allthatido
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2306
https://github.com/abetlen
fix: preserve recurrent/hybrid model state when the full prompt is al…https://github.com/abetlen/llama-cpp-python/pull/2306/commits/e78de054b04731f9981f501b9ce6f77c1d257b3c
e78de05https://github.com/abetlen/llama-cpp-python/pull/2306/commits/e78de054b04731f9981f501b9ce6f77c1d257b3c
https://github.com/abetlen
abetlenhttps://github.com/abetlen
force-pushedhttps://github.com/abetlen/llama-cpp-python/compare/4faeb81565d71806991d4008b03a8a227ea1f352..e78de054b04731f9981f501b9ce6f77c1d257b3c
4faeb81https://github.com/abetlen/llama-cpp-python/commit/4faeb81565d71806991d4008b03a8a227ea1f352
e78de05https://github.com/abetlen/llama-cpp-python/commit/e78de054b04731f9981f501b9ce6f77c1d257b3c
Compare https://github.com/abetlen/llama-cpp-python/compare/4faeb81565d71806991d4008b03a8a227ea1f352..e78de054b04731f9981f501b9ce6f77c1d257b3c
June 22, 2026 05:17https://github.com/abetlen/llama-cpp-python/pull/2306#event-27024333563
https://github.com/abetlen
abetlenhttps://github.com/abetlen
9be3cd1https://github.com/abetlen/llama-cpp-python/commit/9be3cd135bb87ef5c97662c8e60f5ec9689e94e5
Jun 22, 2026https://github.com/abetlen/llama-cpp-python/pull/2306#event-27025709895
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2306
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%2F2306
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2306
https://github.com/allthatido
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.