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
Metadata
Release files for diffai-python 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| diffai_python-0.5.2-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details |
| diffai_python-0.5.2-cp311-cp311-musllinux_1_1_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux musl 1.1+ x86-64 | Details |
| diffai_python-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.17+ x86-64 | Details |
| diffai_python-0.5.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.17+ ARM64 | Details |
| diffai_python-0.5.2-cp311-cp311-macosx_11_0_arm64.whl | CPython 3.11 | CPython 3.11 | macOS 11.0+ ARM64 | Details |
| diffai_python-0.5.2-cp311-cp311-macosx_10_12_x86_64.whl | CPython 3.11 | CPython 3.11 | macOS 10.12+ x86-64 | Details |
Total release size: 8.4 MB
Release files / diffai_python-0.5.2-cp311-cp311-win_amd64.whl
| Download URL | diffai_python-0.5.2-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7a55f69d759c37d7d8cf825d7088b53dda52ff41cf17448bae2625b61b84b174
|
|
BLAKE2b-256 checksum How to use checksums |
0117db1eaab94f5473afbd3255577f970526ff3ec635b2a627a00d9a69d7d05d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / diffai_python-0.5.2-cp311-cp311-musllinux_1_1_x86_64.whl
| Download URL | diffai_python-0.5.2-cp311-cp311-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.11 Linux musl 1.1+ x86-64 |
|
SHA-256 checksum How to use checksums |
8447e7748449bee702a19997292537a07cb3e356517ad896d4733263e7578f60
|
|
BLAKE2b-256 checksum How to use checksums |
a04560d441d2ddcf1f14d071d6a1a2db0d632c71a414db3b6a9edff0feb99ae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / diffai_python-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | diffai_python-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
128b43b7523cdd114f9461395807720ab5ab0cd475fbb88c9aa493995f529f10
|
|
BLAKE2b-256 checksum How to use checksums |
deaafc306b56f199c4ae31b5202173e54e3033306dd13da6305193e70e392f6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / diffai_python-0.5.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | diffai_python-0.5.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
c600a93aa87e4d943d2d1e20bf44ae22a7b0ff70ade60dd0a07fe7579bc7e657
|
|
BLAKE2b-256 checksum How to use checksums |
626974204c21ea400143a8b83c6395ff49f56ff65615c8845befae9be29a2914
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / diffai_python-0.5.2-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | diffai_python-0.5.2-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e053f6c4343ca16243093600be13800d48f29578662460fc0b1a7b12286d6656
|
|
BLAKE2b-256 checksum How to use checksums |
55e477ab7bc0f86f29599a5d07867ea27b9e6c2c60804df9873cd931d8802b21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / diffai_python-0.5.2-cp311-cp311-macosx_10_12_x86_64.whl
| Download URL | diffai_python-0.5.2-cp311-cp311-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
abd4d82edc6c11374aba6ca2c635f52ecf2b2ab6fe784fedacf0818941d1c798
|
|
BLAKE2b-256 checksum How to use checksums |
8af8b7eef02287a2e5c9b94171e741dba47bf602b7501489624fd24036b0f511
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|