Skip to main content

Python bindings for diffai - AI/ML model diff tool for PyTorch, Safetensors, NumPy, MATLAB tensor comparison. Powered by Rust for blazing fast performance.

Project description

diffai

Python bindings for diffai - AI/ML model diff tool for PyTorch, Safetensors, NumPy, and MATLAB tensor comparison.

Installation

pip install diffai

Usage

import diffai

# Compare two model configurations
old = {"layers": [{"weight": [1.0, 2.0, 3.0]}]}
new = {"layers": [{"weight": [1.0, 2.0, 4.0]}]}
results = diffai.diff(old, new)

# Compare files
results = diffai.diff_paths("model_v1.pt", "model_v2.pt")

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

diffai_python-0.5.2-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86-64

diffai_python-0.5.2-cp311-cp311-musllinux_1_1_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11musllinux: musl 1.1+ x86-64

diffai_python-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

diffai_python-0.5.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

diffai_python-0.5.2-cp311-cp311-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

diffai_python-0.5.2-cp311-cp311-macosx_10_12_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file diffai_python-0.5.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for diffai_python-0.5.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7a55f69d759c37d7d8cf825d7088b53dda52ff41cf17448bae2625b61b84b174
MD5 a3b51d675663949a4ae017aba5407bba
BLAKE2b-256 0117db1eaab94f5473afbd3255577f970526ff3ec635b2a627a00d9a69d7d05d

See more details on using hashes here.

File details

Details for the file diffai_python-0.5.2-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for diffai_python-0.5.2-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 8447e7748449bee702a19997292537a07cb3e356517ad896d4733263e7578f60
MD5 97b1694c6b1d27e97aa934fbf99658f5
BLAKE2b-256 a04560d441d2ddcf1f14d071d6a1a2db0d632c71a414db3b6a9edff0feb99ae7

See more details on using hashes here.

File details

Details for the file diffai_python-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for diffai_python-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 128b43b7523cdd114f9461395807720ab5ab0cd475fbb88c9aa493995f529f10
MD5 5141299ee027056eeeed8e3156c4be62
BLAKE2b-256 deaafc306b56f199c4ae31b5202173e54e3033306dd13da6305193e70e392f6e

See more details on using hashes here.

File details

Details for the file diffai_python-0.5.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for diffai_python-0.5.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c600a93aa87e4d943d2d1e20bf44ae22a7b0ff70ade60dd0a07fe7579bc7e657
MD5 2dd308755d08cd651caeef8c7a1084d7
BLAKE2b-256 626974204c21ea400143a8b83c6395ff49f56ff65615c8845befae9be29a2914

See more details on using hashes here.

File details

Details for the file diffai_python-0.5.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for diffai_python-0.5.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e053f6c4343ca16243093600be13800d48f29578662460fc0b1a7b12286d6656
MD5 c6cc7e2ac98104048db635e338a4a811
BLAKE2b-256 55e477ab7bc0f86f29599a5d07867ea27b9e6c2c60804df9873cd931d8802b21

See more details on using hashes here.

File details

Details for the file diffai_python-0.5.2-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for diffai_python-0.5.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 abd4d82edc6c11374aba6ca2c635f52ecf2b2ab6fe784fedacf0818941d1c798
MD5 0932cda1b30def4c31b0034f1a486f1e
BLAKE2b-256 8af8b7eef02287a2e5c9b94171e741dba47bf602b7501489624fd24036b0f511

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page