Skip to content

Rust and Python bindings #3

Description

@m96-chan

Goal

Provide native Rust and Python packages for 0xBitNet inference, using wgpu directly (not through JS/WebGPU polyfills).

Rust

  • Rust crate using wgpu directly
  • Port WGSL shaders (already cross-platform) and inference logic
  • Publish to crates.io as 0xbitnet or bitnet-wgpu

Python

  • Python package using wgpu-native (via wgpu-py) or Rust bindings via PyO3
  • pip install 0xbitnet

Dependency

Depends on #2 (Node.js native) for validating the non-browser GPU device injection pattern.

Open Questions

  • Rewrite from scratch in Rust, or use wgpu-native FFI from the TS side?
  • For Python: pure Python with wgpu-py, or PyO3 wrapper around Rust crate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions