Skip to main content

🤝 Trade any tensors over the network

Project description

TensorShare

🤝 Trade any tensors over the network


TensorShare is a powerful tool enabling ⚡ lightning-fast tensor sharing across networks.

This project leverage the best open-source tools to provide a simple and easy-to-use interface for sharing tensors:

  • safetensors for secure tensor serialization and deserialization.
  • pydantic for data validation and settings management.
  • fastapi for building APIs (and because it's too good to avoid it).

This project is heavily in development and is not ready for production use. Feel free to contribute to the project by opening issues and pull requests.

Usage

Example of tensors serialization with torch:

import torch
from tensorshare import TensorShare

tensors = {
    "embeddings": torch.zeros((2, 2)),
    "labels": torch.zeros((2, 2)),
}
ts = TensorShare.from_dict(tensors, backend="torch")

For more examples and details, please refer to the documentation.

Roadmap

  • Serialization and deserialization
  • TensorProcessor for processing tensors
  • Pydantic schema for sharing tensors
  • Server for sharing tensors
  • Client for sharing tensors

Project details


Download files

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

Source Distribution

tensorshare-0.0.5.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

tensorshare-0.0.5-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file tensorshare-0.0.5.tar.gz.

File metadata

  • Download URL: tensorshare-0.0.5.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for tensorshare-0.0.5.tar.gz
Algorithm Hash digest
SHA256 25efa6bdfcccef7083dafed12337550f26f0083bad216a404030b339f11d9318
MD5 198914cb0df134a5876611ba31ef5a3e
BLAKE2b-256 b2426f25b26dbbc936fc431dddb8b842c9200d72630578b054747198d8547d3d

See more details on using hashes here.

File details

Details for the file tensorshare-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for tensorshare-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 15ad785d93db6620bf08cd9361fb495e5fc427216562c23ee272c5e2cac18567
MD5 6a12781edfe7a2900595284fdf3b0f65
BLAKE2b-256 680b33f1c50fcbaf77687e602acc5e8b5873ce68bf7fd31fb259ab71163f254e

See more details on using hashes here.

Supported by

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