Skip to main content

MIG Editor. CLI/importable module to automatically delete and create MIG gpu/cpu instances.

Project description

migedit

MIG Editor python CLI tool and bindings for MIG device management. Supports all MIG devices and supports both 1:1 gpu instance compute instances setups and setups where compute instances share gpu instances.

Usage (CLI)

migedit -i 2 -p 1 2 3 to create three instances (1g.5gb, 2g.10gb, 3g.20gb) on GPU 2.

or

migedit -i 2 -p s2 s2 to create two shared memory instances (2c.7g.40gb, 2c.7g.40gb) on GPU 2.

Usage (Python bindings)

import migedit to import migedit in your project.

migedit.get_mig_profiles() to get a list of all available MIG instance configurations.

migedit.make_mig_devices(0, ["1g.10gb"]) to remove old MIG instances and create new ones.

Changelog:'

  • 3.3: Removed sudo dependency on nvidia-smi
  • 3.2: Added remove_mig_devices(). Empty command will now remove instances only. Added parsing of comma separated values.
  • 3.1: Added remove_old flag.
  • 3.0: Support for non-A100 devices (H100, A30, etc.) by dynamically grabbing available profiles.
  • 2.0: Support for Shared Memory Mig Mode (with 7g.40gb instances)
  • 1.1: Various bugfixes
  • 1.0: Initial

Supported platforms

  • Linux (Python 3.10 or higher)

Contributors

Thank You!

Contributions are welcome. (Please add yourself to the list)

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

migedit-0.3.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

migedit-0.3.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file migedit-0.3.3.tar.gz.

File metadata

  • Download URL: migedit-0.3.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for migedit-0.3.3.tar.gz
Algorithm Hash digest
SHA256 e781150ee39e8289e59ceae0b4c82aff676d7866efac30cd9168085c3e46977e
MD5 a58a247659208bef4e826b9ef8d39b5f
BLAKE2b-256 871b09e727532cb9d6ae918aa7f0446a70244cdfa5e19b3ba0e14bdcfa08ae39

See more details on using hashes here.

File details

Details for the file migedit-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: migedit-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for migedit-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b3a5b684a2a9bef1ee961c4920f932677769453aedf44ce3863c5aac44af2bc
MD5 ae486b559da9f012a913277cf6de4b08
BLAKE2b-256 0b73be66a427c77354ff6f30a8c591ecccc9cc285fd1486e23ac1d14b2b68bcb

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