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

Uploaded Source

File details

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

File metadata

  • Download URL: swalot-0.0.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 8550f737e5d477bab36d3515b8b158b8dcc293d893fe60b15781f214151db0ed
MD5 5e006bab5fc10193d3317ef2e0921b3a
BLAKE2b-256 913ad4357d837e110bf5b5d5354110c8a5e59054a9983e60d52570687c8ca40c

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