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

If you are using pip mirror, you may get error logs such as "No matching distribution found.." Try using pypi as the installation source:

pip install swalot -i https://pypi.python.org/simple

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.2.tar.gz (4.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: swalot-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 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.2.tar.gz
Algorithm Hash digest
SHA256 fc3c844601e557150f08702ef9e54ab353ddf7da6b29ea676891010da05caf2b
MD5 83a74587a304087f031a9af5e289dcfe
BLAKE2b-256 6164893592699c5464a501497209a1ec71084c1284dfed423b61a697746122b6

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