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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diffai_python-0.5.2-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: diffai_python-0.5.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a55f69d759c37d7d8cf825d7088b53dda52ff41cf17448bae2625b61b84b174
|
|
| MD5 |
a3b51d675663949a4ae017aba5407bba
|
|
| BLAKE2b-256 |
0117db1eaab94f5473afbd3255577f970526ff3ec635b2a627a00d9a69d7d05d
|
File details
Details for the file diffai_python-0.5.2-cp311-cp311-musllinux_1_1_x86_64.whl.
File metadata
- Download URL: diffai_python-0.5.2-cp311-cp311-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8447e7748449bee702a19997292537a07cb3e356517ad896d4733263e7578f60
|
|
| MD5 |
97b1694c6b1d27e97aa934fbf99658f5
|
|
| BLAKE2b-256 |
a04560d441d2ddcf1f14d071d6a1a2db0d632c71a414db3b6a9edff0feb99ae7
|
File details
Details for the file diffai_python-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: diffai_python-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
128b43b7523cdd114f9461395807720ab5ab0cd475fbb88c9aa493995f529f10
|
|
| MD5 |
5141299ee027056eeeed8e3156c4be62
|
|
| BLAKE2b-256 |
deaafc306b56f199c4ae31b5202173e54e3033306dd13da6305193e70e392f6e
|
File details
Details for the file diffai_python-0.5.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: diffai_python-0.5.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c600a93aa87e4d943d2d1e20bf44ae22a7b0ff70ade60dd0a07fe7579bc7e657
|
|
| MD5 |
2dd308755d08cd651caeef8c7a1084d7
|
|
| BLAKE2b-256 |
626974204c21ea400143a8b83c6395ff49f56ff65615c8845befae9be29a2914
|
File details
Details for the file diffai_python-0.5.2-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: diffai_python-0.5.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e053f6c4343ca16243093600be13800d48f29578662460fc0b1a7b12286d6656
|
|
| MD5 |
c6cc7e2ac98104048db635e338a4a811
|
|
| BLAKE2b-256 |
55e477ab7bc0f86f29599a5d07867ea27b9e6c2c60804df9873cd931d8802b21
|
File details
Details for the file diffai_python-0.5.2-cp311-cp311-macosx_10_12_x86_64.whl.
File metadata
- Download URL: diffai_python-0.5.2-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abd4d82edc6c11374aba6ca2c635f52ecf2b2ab6fe784fedacf0818941d1c798
|
|
| MD5 |
0932cda1b30def4c31b0034f1a486f1e
|
|
| BLAKE2b-256 |
8af8b7eef02287a2e5c9b94171e741dba47bf602b7501489624fd24036b0f511
|