Skip to main content

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

Project description

Installation

Install the 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.protect():
    """
    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.3.tar.gz (5.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: swalot-0.0.3.tar.gz
  • Upload date:
  • Size: 5.9 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.3.tar.gz
Algorithm Hash digest
SHA256 7f2942f2f8a4a3449c4d402a6725c889242ae3048bf392e4c337ac35fc5c2278
MD5 11de577d5a5d49b93c609c96597971e2
BLAKE2b-256 93fb3392a546058476b7182afbe29a9f5fa1e1cd8cee2a65b84858ef1f9d21b0

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