]> khamidou — GitHub mirrors - safetensors.git/commit
Some PyO3 specifics. (#35)
authorNicolas Patry <patry.nicolas@protonmail.com>
Wed, 26 Oct 2022 13:49:10 +0000 (15:49 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Oct 2022 13:49:10 +0000 (15:49 +0200)
commit395e14d286e355bf4ad0c5248682d051bd9cc520
tree5fc79c71a3d301aab71d80585f6dad31982f6f14
parent8417cfc7afce9d0591683456b7187c6fc8c1ec03
Some PyO3 specifics. (#35)

* Faster gpu load.

* Use cuda-sys directly.

* For slice too.

* Fun unsafe.

* Reduce unsafe.

* Removing CPU unsafe.

* Using shared `cuda-sys` (temporary, we need to use torch's cuda version).

* Tmp rework

* Cleaner device.

* Adding some statistics...

* Warmup steps.

* Removing unsafe GPU accesses.

* Removing dead code.

* Removing libloading.

* Accepting `int` as device.
bindings/python/src/lib.rs
bindings/python/tests/test_pt_comparison.py