Beam Datascience package
Project description
BeamDS Package (beam data-science)
This BeamDS implementation follows the guide at https://packaging.python.org/tutorials/packaging-projects/
prerequisits:
install the build package:
python -m pip install --upgrade build
Packages to install:
tqdm, loguru, tensorboard
to reinstall the package after updates use:
- Now run this command from the same directory where pyproject.toml is located:
python -m build
- reinstall the package with pip:
pip install dist/*.whl --force-reinstall
Building the Beam-DS docker image
The docker image is based on the latest official NVIDIA pytorch image. To build the docker image from Ubuntu host, you need to:
-
update nvidia drivers to the latest version: https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux
-
install docker: https://docs.docker.com/desktop/linux/install/ubuntu/
-
Install NVIDIA container toolkit: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#install-guide
-
Install and configure NVIDIA container runtime: https://stackoverflow.com/a/61737404
Build the sphinx documentation
Follow https://github.com/cimarieta/sphinx-autodoc-example
Profiling your code with Scalene
Scalene is a high-performance python profiler that supports GPU profiling. To analyze your code with Scalene use the following arguments:
scalene --reduced-profile --outfile OUTFILE.html --html --- your_prog.py <your additional arguments>
Uploading the package to PyPi
- Install twine:
python -m pip install --user --upgrade twine
- Build the package:
python -m build
- Upload the package:
python -m twine upload --repository pypi dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.