Skip to main content

No CUDA out of memory again; fully use of a GPU card per user.

Project description

Installation

You can install the Memory Protector package using pip:

pip install swalot

Usage

Simply import and wrap training code:

import swalot as sw

with sw.protext():
    """
    use CUDA tensor calculation here as usual.
    All RAM will be protected automatically!
    e.g.
    """
    # a = torch.randn(1000, 1000, 600).cuda()

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

swalot-0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file swalot-0.0.1.tar.gz.

File metadata

  • Download URL: swalot-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for swalot-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1783cfb4c2c0927766e3c610d013745eff563c71dfef8100808e764b0eadf7d5
MD5 c13d8957d3cd1e0cb9b060c65cca523e
BLAKE2b-256 da34527b69cbb54ce657117216677fc3312fc57703937f9dc172b2ef3c7edf9f

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