Skip to main content

Installation

Robbytorch requires Pytorch, however it's not specified in the dependencies - we recommend installing Pytorch manually via conda and only later installing Robbytorch by pip. Pytorch has to be in version 1.6 or higher.

Use your conda env or create a new one:

conda create --name <ENV NAME> python=3.8 pip
conda activate <ENV NAME>

Install Pytorch. If you have older drivers for GPU you may require older version of CUDA, i.e.:

conda install pytorch torchvision torchaudio cudatoolkit=10.1 -c pytorch -c conda-forge

or even older Pytorch version:

conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=10.1 -c pytorch

Then run:

pip install robbytorch

Usage

The basics of the Robbytorch library are explained in the ipython/RobbytorchTutorial.ipynb juputer notebook.

TODO

  • Streamline logging - currently we need to pass arguments to MLFLowWriter at init which we want to do outside of the Trainer#train_model function to keep reference to the Writer instance. We'd like to invent better flow that would allow us to pass config dict just once;
  • Create helper for iterating over rows and cols and printing tensor:
diffs = show - show.roll(shifts=1, dims=0)

cols, rows = 3, 6
for i in range(rows):
    curr = (show[i*cols:(i+1)*cols])
    diff = vis_grad(diffs[i*cols:(i+1)*cols])
    robby.get_image_table(curr, diff, size=(10,10))

robby.widen_outputs()

Packaging

Development mode

Run from this repository's root dir:

python setup.py develop

Now you can use the package as if it was installed by pip.

When you’re done with a given development task, you can remove the project source from a staging area using:

python setup.py develop --uninstall

Creating python package

Use this tutorial. In short:

  1. put your source files into src/<PACKAGE NAME>/ dir and create files: src/<PACKAGE NAME>/__init__.py, setup.py, pyproject.toml, README.md and LICENSE (also optionally an empty test dir)
  2. install required packages:
python3 -m pip install --upgrade twine build
  1. build the package, i.e. run from root folder:
python3 -m build
  1. upload the package:
python3 -m twine upload dist/*

In order to perform the last step you need to have a https://pypi.org/ account and create the API token, which could be conveniently placed in $HOME/.pypirc:

[pypi]
  username = __token__
  password = pypi-<API TOKEN>

Warnings:

If you update the package you should increment the version param in setup.py and empty the dist dir.

Metadata

Release files for robbytorch 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for robbytorch 0.4.1
File Size Uploaded Provenance Actions
robbytorch-0.4.1.tar.gz 36.4 kB Without provenance Details for robbytorch-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for robbytorch 0.4.1
File Interpreter ABI Platform Actions
robbytorch-0.4.1-py3-none-any.whl Python 3 none any Details for robbytorch-0.4.1-py3-none-any.whl

Total release size: 76.0 kB

Release files / robbytorch-0.4.1.tar.gz

Download URL robbytorch-0.4.1.tar.gz
Size 36.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3f4240609814510f4fc1c8d6299c59232f0efb12f29e01160e73b94cb9efb3e1
BLAKE2b-256 checksum
How to use checksums
a20d7b6d5ced5566cf368692bd469d7c42159ff5f2480d458ae0a6bf53cfea2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

Release files / robbytorch-0.4.1-py3-none-any.whl

Download URL robbytorch-0.4.1-py3-none-any.whl
Size 39.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf0b9c7df8cfb29ae7cd9a2b289e8d37d2388c2ad31a2188a6a67441035dd54a
BLAKE2b-256 checksum
How to use checksums
cdad8a9e2d27fb4672484164d952e034611e8a4022738893abe30dbc3be867f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

Security for robbytorch 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page