Dataset-agnostic model saving and loading format (.si) for AI/ML pipelines
Project description
Shiva-SI
shiva-si is a Python utility package for saving and loading machine learning models using the .si format.
🔧 Features
- Save any PyTorch model with associated metadata
- Load models with metadata directly for evaluation or deployment
- Inspired by
.ptand.npy, but optimized for AI/ML workflows
📦 Install
pip install shiva-si
💾 Usage
from shiva.si_format import save_si, load_si
from my_model import MyModel # your PyTorch model class
# Save
model = MyModel()
save_si(model, "model.si", metadata={"trained_on": "MNIST", "epoch": 5})
# Load
loaded_model, metadata = load_si(MyModel, "model.si")
📁 Contents
shiva/core.py– model training logicshiva/si_format.py– custom.simodel saving/loading functionstrain_and_save.py– example training scriptload_and_evaluate.py– example evaluation script
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 Distribution
shiva-si-0.1.tar.gz
(4.2 kB
view details)
Built Distribution
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 shiva-si-0.1.tar.gz.
File metadata
- Download URL: shiva-si-0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4100aa5cea8aa99f183835cda03eb0caae238a2507d7bad0bdf64513d0675481
|
|
| MD5 |
d718e551f95b533e2d172a58ca2da0fd
|
|
| BLAKE2b-256 |
3a25dc14c80a0b1a10a29e735cbe1109cd57b984bfb0c7e57e049605ebc17342
|
File details
Details for the file shiva_si-0.1-py3-none-any.whl.
File metadata
- Download URL: shiva_si-0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d9fe7d7164e0679cfa0cacd150a2a515c54c2b13b78e98c695af7f96ffebb29
|
|
| MD5 |
59516d9aaff10960a177220b12084f7e
|
|
| BLAKE2b-256 |
706bb23b2e0b0480d298cd8965dbccd3205dcaded0ff639867effba978db3d84
|