semvec/pypi-packages huggingface dataset:
asyncflow 0.1
Concurrency made easy
License: MIT
Requires Python: >=3.8
Keywords: concurrency thread async asyncio curio trio parallelism

AsyncFlow
=========

Concurrency made easy.

.. image:: https://readthedocs.org/projects/asyncflow/badge/?version=latest
    :target: https://asyncflow.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

Installation
------------

Install with pip:

.. code-block:: text

    pip install asyncflow

Links
-----

* Documentation: https://asyncflow.readthedocs.io/
* Releases: https://pypi.org/project/asyncflow
* Code: https://github.com/jacobunna/asyncflow
* Issue tracker: https://github.com/jacobunna/asyncflow/issues
storeweights 1.0.2
Storing PyTorch checkpoints in efficient way
License: MIT
Requires Python: >=3.6

# storeweights
Storing PyTorch checkpoints in efficient way.

## Install
`pip install storeweights`

## Running

`from storeweights import weights`


```
##PyTorch code ....
model = TheModelClass()
optimizer = optim.SGD(model.parameters(), lr=0.001, momentum=0.9)

....
```

### Saving model (local)

`weights.save('model_name',model,optimizer,extra_info={'epoch':40})`

### Loading model (local)

`weights.load('model_name',model,optimizer,return_extra_info=True)`

### Saving model (gdrive colab)

`weights.save('model_name',model,optimizer,extra_info={'epoch':40},gdrive=True)`

### Loading model (gdrive colab)

`weights.load('model_name',model,optimizer,return_extra_info=True,gdrive=True)`