Skip to main content

Distributed Neural Network implementation on COINSTAC.

Project description

coinstac-dinunet

Distributed Neural Network implementation on COINSTAC.

YourActionName Actions Status versions

pip install coinstac-dinunet

Install supported pytorch & torchvision binaries in your device/docker ecosystem:

torch==1.5.1+cu92
torchvision==0.6.1+cu92

Highlights:

1. Handles multi-network/complex training schemes.
2. Automatic data splitting/k-fold cross validation.
3. Automatic model checkpointing.
4. GPU enabled local sites.
5. Customizable metrics(w/Auto serialization between nodes) to work with any schemes.
...

Pipeline for reducing gradients across sites.

DINUNET

General use case:

1. Define Data Loader


2. Define Local Node


3. Define Remote Node


4. Define Trainer


5. Define custom metrics


Default arguments:

  • task_name: str = None, Name of the task. [Required]
  • mode: str = None, Eg. train/test [Required]
  • batch_size: int = 4
  • epochs: int = 21
  • learning_rate: float = 0.001
  • gpus: _List[int] = None, Eg. [0], [1], [0, 1]...
  • pin_memory: bool = True, if cuda available
  • num_workers: int = 0
  • load_limit: int = float('inf'), Limit on dataset to load for debugging purpose.
  • pretrained_path: str = None, Path to pretrained weights
  • patience: int = 5, patience to end training by monitoring validation scores.
  • load_sparse: bool = False, Load each data item in separate loader to reconstruct images from patches, if needed.
  • num_folds: int = None, Number of k-folds.
  • split_ratio: _List[float] = (0.6, 0.2, 0.2), Exclusive to num_folds.

Directly passed parameters in coinstac_dinunet.nodes.COINNLocal, args passed through inputspec will override the defaults in the same order.

Custom data splits can be provided in the path specified by split_dir for each sites in their respective inputspecs file. This is mutually exclusive to both num_folds and split_ratio.


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

coinstac-dinunet-0.2.4.tar.gz (21.5 kB view details)

Uploaded Source

File details

Details for the file coinstac-dinunet-0.2.4.tar.gz.

File metadata

  • Download URL: coinstac-dinunet-0.2.4.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for coinstac-dinunet-0.2.4.tar.gz
Algorithm Hash digest
SHA256 2b5f22d39fcc0c023f59eeb024c8764aece89877df5a9a605a0605f504a5f01b
MD5 e677e17b3509d92b34e2fe4fffb05ab8
BLAKE2b-256 c2d3cd56c5df44493767d60b4422f0fe6927a512c1ab20cc907fd486fffdefce

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