Skip to main content

A collection of utility functions and modules for PyTorch and general Python usage.

Project description

pyutils

A python/pytorch utility library

License: MIT

News

  • v0.0.3.2 available.
  • v0.0.2 available. Added new datasets and quantization!
  • v0.0.1 available. Feedbacks are highly welcomed!

Installation

conda install scopex/label/ScopeX::torchonn-pyutils
pip install torchonn-pyutils --no-build-isolation

or install from cloned codes from github if you would like to modify the code (recommend)

git clone https://github.com/JeremieMelo/pyutility.git
cd pyutility
./setup.sh

To remove the package:

pip uninstall torchonn_pyutils

Usage

import pyutils

Features

  • Support pytorch training utility and datasets.

TODOs

  • Support lr_scheduler
  • Support trainer

Dependencies

  • Python >= 3.10
  • PyTorch >= 2.0
  • Tensorflow >= 2.5.0
  • Others are listed in requirements.txt

Files

File Description
datasets/ Defines different datasets and builder
loss/ Defines different loss functions/criterions
optimizer/ Defines different optimizers
lr_scheduler/ Defines different learning rate schedulers
quant/ Defines different weight/activation quantizers
activation.py Activation functions
compute.py functions related to computing
config.py Hierarchical yaml configuration file parser
distribution_sampler.py Sample from customized distributions
general.py Common helper functions
initializer.py Initialization methods for PyTorch Parameters
loss.py Loss functions for PyTorch model training
quantize.py Quantization functions
torch_train.py Helper functions for torch training
typing.py Defines common types

Contact

Jiaqi Gu (jqgu@utexas.edu)

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

torchonn_pyutils-0.0.3.3.tar.gz (76.0 kB view details)

Uploaded Source

Built Distribution

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

torchonn_pyutils-0.0.3.3-py3-none-any.whl (104.2 kB view details)

Uploaded Python 3

File details

Details for the file torchonn_pyutils-0.0.3.3.tar.gz.

File metadata

  • Download URL: torchonn_pyutils-0.0.3.3.tar.gz
  • Upload date:
  • Size: 76.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.10

File hashes

Hashes for torchonn_pyutils-0.0.3.3.tar.gz
Algorithm Hash digest
SHA256 596e4d746a61dea9174999e693b6b5d42cc5bc4ffcac28a019e3fcb89ea3cdaf
MD5 83262a69b5ad6524af01c2ac9d9a6303
BLAKE2b-256 a2c7c5a0935fa4e37a069a42ec7ce3fde773f234eec1ae5beb6bda8739693426

See more details on using hashes here.

File details

Details for the file torchonn_pyutils-0.0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for torchonn_pyutils-0.0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aab208c146ed61051093fbef782a566cfbfbd5db697f00e88d4ea918ca9f85a7
MD5 f923809db9e39837b32886a47d86490d
BLAKE2b-256 99f31e9ff703d1a90fa77f00d12f82f637eee6f2c90ad285d2992adc23a10197

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