Skip to content

feat: add buffer protocol support to utils#175

Merged
abetlen merged 4 commits into
abetlen:mainfrom
aisk:feat/buffer-protocol-utils
Jul 5, 2026
Merged

feat: add buffer protocol support to utils#175
abetlen merged 4 commits into
abetlen:mainfrom
aisk:feat/buffer-protocol-utils

Conversation

@aisk

@aisk aisk commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Add to_buffer/from_buffer so tensors can be created from and exposed as any buffer-protocol object. This lets many built-in types, and even the CPU backends of numpy/pytorch, interoperate with ggml tensors. The main goal is to support tensor data exchange without requiring numpy.

@abetlen abetlen force-pushed the feat/buffer-protocol-utils branch from 435d2a1 to 2d8e7cc Compare July 5, 2026 17:04
@abetlen abetlen merged commit bb560ca into abetlen:main Jul 5, 2026
18 checks passed
@aisk aisk deleted the feat/buffer-protocol-utils branch July 5, 2026 17:11
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.

2 participants