René's URL Explorer Experiment


Title: fix: preserve sequence offsets in unpooled batched embeddings by linjiaye929 · Pull Request #2395 · abetlen/llama-cpp-python · GitHub

Open Graph Title: fix: preserve sequence offsets in unpooled batched embeddings by linjiaye929 · Pull Request #2395 · abetlen/llama-cpp-python

X Title: fix: preserve sequence offsets in unpooled batched embeddings by linjiaye929 · Pull Request #2395 · 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: Problem With LLAMA_POOLING_TYPE_NONE, Llama.embed() advances the flat output pointer by a token count after each sequence, although the pointer indexes floats. When multiple sequences share a decod...

X Description: Problem With LLAMA_POOLING_TYPE_NONE, Llama.embed() advances the flat output pointer by a token count after each sequence, although the pointer indexes floats. When multiple sequences share a decod...

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

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:66783c76-84c9-a6a8-d116-769c645149d4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD8D2:1C5572:1C4CC:251AC:6AFF6CF7
html-safe-noncedd8d7c89c38d06cac125f91c591c1d2e23d18cd09d4a50d7bcdf0d2f17490c30
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEQyOjFDNTU3MjoxQzRDQzoyNTFBQzo2QUZGNkNGNyIsInZpc2l0b3JfaWQiOiI5MjE0NjQ5NzQ2MDUwNzM5NDQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf245598a67c9add474178f26588d267d460e97e37db7360c4d64fa0e17dc46d7
hovercard-subject-tagpull_request:5094108627
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/2395/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/316d73c2d15a4104d143d3330ef1929fb31f11cfc17636bdd5a01e4930ceea6a/abetlen/llama-cpp-python/pull/2395
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/316d73c2d15a4104d143d3330ef1929fb31f11cfc17636bdd5a01e4930ceea6a/abetlen/llama-cpp-python/pull/2395
og:image:altProblem With LLAMA_POOLING_TYPE_NONE, Llama.embed() advances the flat output pointer by a token count after each sequence, although the pointer indexes floats. When multiple sequences share a decod...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelinjiaye929
hostnamegithub.com
expected-hostnamegithub.com
None6d580fc7098c193d7866bf290c4c2b4859a153e87379f44161f35a4495e6b730
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
releaseec5dd94a369dad6e9ce618a1705cbe3b618a2863
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/abetlen/llama-cpp-python/pull/2395#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fabetlen%2Fllama-cpp-python%2Fpull%2F2395
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%2F2395
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/2395
Reloadhttps://github.com/abetlen/llama-cpp-python/pull/2395
Reloadhttps://github.com/abetlen/llama-cpp-python/pull/2395
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
linjiaye929https://github.com/linjiaye929
abetlen:mainhttps://github.com/abetlen/llama-cpp-python/tree/main
linjiaye929:codex/unpooled-embedding-offsetshttps://github.com/linjiaye929/llama-cpp-python/tree/codex/unpooled-embedding-offsets
Conversationhttps://github.com/abetlen/llama-cpp-python/pull/2395
Commits5 (5)https://github.com/abetlen/llama-cpp-python/pull/2395/commits
Checkshttps://github.com/abetlen/llama-cpp-python/pull/2395/checks
Files changedhttps://github.com/abetlen/llama-cpp-python/pull/2395/files
fix: preserve sequence offsets in unpooled batched embeddingshttps://github.com/abetlen/llama-cpp-python/pull/2395#top
linjiaye929https://github.com/linjiaye929
abetlen:mainhttps://github.com/abetlen/llama-cpp-python/tree/main
linjiaye929:codex/unpooled-embedding-offsetshttps://github.com/linjiaye929/llama-cpp-python/tree/codex/unpooled-embedding-offsets
https://github.com/linjiaye929
linjiaye929https://github.com/linjiaye929
Oct 31, 2026https://github.com/abetlen/llama-cpp-python/pull/2395#issue-6130642341
pinned native API contracthttps://github.com/ggml-org/llama.cpp/blob/0c1e57098bba43ac29e6e3b677cdceebdd22334f/include/llama.h#L1144-L1151
Python slicing codehttps://github.com/abetlen/llama-cpp-python/blob/1652066e0af45f2313b339670ef9555e8a54e545/llama_cpp/llama.py#L1121-L1134
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2395
linjiaye929https://github.com/linjiaye929
October 31, 2026 11:52https://github.com/abetlen/llama-cpp-python/pull/2395#commits-pushed-17aa124
https://github.com/linjiaye929
fix: preserve sequence offsets in unpooled batched embeddingshttps://github.com/abetlen/llama-cpp-python/pull/2395/commits/17aa12477ab2c510df3b676520cb93071430b515
17aa124https://github.com/abetlen/llama-cpp-python/pull/2395/commits/17aa12477ab2c510df3b676520cb93071430b515
https://github.com/linjiaye929
test: cover unpooled embedding offsets across batch boundarieshttps://github.com/abetlen/llama-cpp-python/pull/2395/commits/092cd89672b010b538d77b3ca5d45af16053c1af
092cd89https://github.com/abetlen/llama-cpp-python/pull/2395/commits/092cd89672b010b538d77b3ca5d45af16053c1af
https://github.com/linjiaye929
docs: record unpooled batched embedding fixhttps://github.com/abetlen/llama-cpp-python/pull/2395/commits/5ffc528fe095ed6054e5a2b450b9e3fe82a16bfa
5ffc528https://github.com/abetlen/llama-cpp-python/pull/2395/commits/5ffc528fe095ed6054e5a2b450b9e3fe82a16bfa
https://github.com/linjiaye929
docs: link embedding offset fix to upstream PRhttps://github.com/abetlen/llama-cpp-python/pull/2395/commits/08fefca91d55d7065cbd158db046467d9630d1e4
abetlen#2395https://github.com/abetlen/llama-cpp-python/pull/2395
08fefcahttps://github.com/abetlen/llama-cpp-python/pull/2395/commits/08fefca91d55d7065cbd158db046467d9630d1e4
https://github.com/linjiaye929
linjiaye929https://github.com/linjiaye929
October 31, 2026 03:37https://github.com/abetlen/llama-cpp-python/pull/2395#event-34751377389
https://github.com/linjiaye929
Sync main and preserve both unreleased changelog entrieshttps://github.com/abetlen/llama-cpp-python/pull/2395/commits/e02f43fe0b5d211ee5351469c87da635f6e9e6da
e02f43fhttps://github.com/abetlen/llama-cpp-python/pull/2395/commits/e02f43fe0b5d211ee5351469c87da635f6e9e6da
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%2F2395
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2395
Please reload this pagehttps://github.com/abetlen/llama-cpp-python/pull/2395
https://github.com/linjiaye929
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.