Skip to content

feat: add buffer protocol support to utils#175

Open
aisk wants to merge 3 commits into
abetlen:mainfrom
aisk:feat/buffer-protocol-utils
Open

feat: add buffer protocol support to utils#175
aisk wants to merge 3 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.

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.

1 participant