Skip to main content

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 .pt and .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 logic
  • shiva/si_format.py – custom .si model saving/loading functions
  • train_and_save.py – example training script
  • load_and_evaluate.py – example evaluation script

Project details


Release history Release notifications | RSS feed

This version

0.1

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)

Uploaded Source

Built Distribution

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

shiva_si-0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for shiva-si-0.1.tar.gz
Algorithm Hash digest
SHA256 4100aa5cea8aa99f183835cda03eb0caae238a2507d7bad0bdf64513d0675481
MD5 d718e551f95b533e2d172a58ca2da0fd
BLAKE2b-256 3a25dc14c80a0b1a10a29e735cbe1109cd57b984bfb0c7e57e049605ebc17342

See more details on using hashes here.

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

Hashes for shiva_si-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d9fe7d7164e0679cfa0cacd150a2a515c54c2b13b78e98c695af7f96ffebb29
MD5 59516d9aaff10960a177220b12084f7e
BLAKE2b-256 706bb23b2e0b0480d298cd8965dbccd3205dcaded0ff639867effba978db3d84

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