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
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:12fa4402-a825-6e02-7b7b-c95cd850d0ec |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C5D8:1E946E:367E44F:4C6F125:6A635E0A |
| html-safe-nonce | 3602f1663fac6d642486be56df423617240d1741819414aa1383c30b0f6d7aa1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUQ4OjFFOTQ2RTozNjdFNDRGOjRDNkYxMjU6NkE2MzVFMEEiLCJ2aXNpdG9yX2lkIjoiNzg5NTMwNDYzNjc0MDA5OTU5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 72beed68860a8fb1c1961cc9d459b9d00e33b41baa2fa3f6f34294dbedcdd453 |
| hovercard-subject-tag | pull_request:3864061616 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/abetlen/llama-cpp-python/2306/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/1183b3f28dc5b309c302afb9d1e531e40fbbde3d8744d13fb20f2dfc93f6ab7d/abetlen/llama-cpp-python/pull/2306 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1183b3f28dc5b309c302afb9d1e531e40fbbde3d8744d13fb20f2dfc93f6ab7d/abetlen/llama-cpp-python/pull/2306 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | allthatido |
| hostname | github.com |
| expected-hostname | github.com |
| None | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| turbo-cache-control | no-cache |
| go-import | github.com/abetlen/llama-cpp-python git https://github.com/abetlen/llama-cpp-python.git |
| octolytics-dimension-user_id | 6826477 |
| octolytics-dimension-user_login | abetlen |
| octolytics-dimension-repository_id | 617868717 |
| octolytics-dimension-repository_nwo | abetlen/llama-cpp-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 617868717 |
| octolytics-dimension-repository_network_root_nwo | abetlen/llama-cpp-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 71b1218de2f2ab29c4d5ce72568e68e2c56044c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width