Skip to main content

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

Project description

badge-pypi badge-python badge-license

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.gpu():
    """
    use CUDA tensor calculation here as usual.
    All RAM will be protected automatically!
    e.g.
    """
    # a = torch.randn(1000, 1000, 600).cuda()
    # a = torch.randn(1000, 1000, 600).to("cuda:0")
    # a = torch.randn(1000, 1000, 600, device="cuda:0")

🗓️ Schedule

  • Enable GPU protect mode with decorator
  • Support multiple GPU environment

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

Uploaded Source

File details

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

File metadata

  • Download URL: swalot-0.0.3.post2.tar.gz
  • Upload date:
  • Size: 6.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.3.post2.tar.gz
Algorithm Hash digest
SHA256 5d0e65dd44b9e107cd82973b99f2e99bfedfcb171d7e441809da83cbb56e3041
MD5 874ad8f865d4256c3d5bc540adae660f
BLAKE2b-256 2a1400e2df92cb74eb6ecffdc2119a36cc785d109e7c1d490e46a560dadb706e

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