Skip to main content

This is a package for Gradient Informed, GPU Accelerated Lens modelling (GIGALens).

Project description

Latest PyPI version

Gradient Informed, GPU Accelerated Lens modelling (GIGA-Lens) is a package for fast Bayesian inference on strong gravitational lenses, with support for multi-device and multi-node GPU acceleration for large-scale inference workloads. For details, please see our paper. See here for our documentation.

Usage

Note: Some .ipynb files cannot be run directly in the GitHub preview and must be downloaded to be opened in Jupyter Notebook or JupyterLab.

Installation

GIGA-Lens can be installed via pip:

pip install gigalens[cuda]

If pip notes an error after installation about conflicting dependencies, these can usually be safely ignored. If you wish to test the installation, tests can be run simply by running tox in the root directory.

If you don’t have access to institutional GPUs, one easy way is to use GPU on Google Colab. Please remember the very first cell should have !pip install gigalens[cuda]. If you do have access to institutional GPUs, you can set up a notebook to run on GPU. For example, at NESRC, you can choose the kernel tensorflow-2.6.0, and include in the first cell: !pip install gigalens[cuda].

Requirements

Python Version >= 3.12

The following packages are requirements for GIGA-Lens. However, !pip install gigalens[cuda] is all you need to do. In fact, separately installing other packages can cause issues with subpackage dependencies. Some users may find it necessary to install PyYAML.

  • jax==0.6.2

  • tensorflow-probability==0.25.0

  • lenstronomy>=1.13.2,<2.0.0

  • optax>=0.2.6,<0.3.0

  • objax>=1.8.0,<2.0.0

  • numpy==2.1.3

  • tqdm>=4.67.1,<5.0.0

Authors

GIGALens was written by Andi Gu.

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

gigalens-1.2.1.tar.gz (332.7 kB view details)

Uploaded Source

Built Distribution

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

gigalens-1.2.1-py3-none-any.whl (342.0 kB view details)

Uploaded Python 3

File details

Details for the file gigalens-1.2.1.tar.gz.

File metadata

  • Download URL: gigalens-1.2.1.tar.gz
  • Upload date:
  • Size: 332.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.1 Linux/5.14.21-150500.55.97_13.0.78-cray_shasta_c

File hashes

Hashes for gigalens-1.2.1.tar.gz
Algorithm Hash digest
SHA256 8bb0d79b35f6f2a03a65dabc28d424a57dc4455942d0c3d9ad75f06ee1a2cf7c
MD5 8e65667120a9db68ca14ca989105802d
BLAKE2b-256 d6b9459aaea206ea183971149b5384e364d2f10095926cd2f9aeb4acd56a2977

See more details on using hashes here.

File details

Details for the file gigalens-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: gigalens-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 342.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.1 Linux/5.14.21-150500.55.97_13.0.78-cray_shasta_c

File hashes

Hashes for gigalens-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23fb56d89ce91931a5cfe5509fbfae57e31e4e036f75983b171879cc95be9203
MD5 53cc9ea7968eb088f2e666c0423c6fdd
BLAKE2b-256 2ea2ffb5c845660a93d3226d310244f31a9bddcff24be7d4d610f57c0a4adbc4

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