A deep learning framework for AI-driven multi-physics systems
Project description
Modulus Symbolic (Beta)
Modulus Symbolic (Modulus Sym) provides pythonic APIs, algorithms and utilities to be used with Modulus core, to explicitly physics inform the model training. This includes symbolic APIs for PDEs, domain sampling and PDE-based residuals. Please refer to the DeepONet example that illustrates the concept.
It also provides higher level abstraction to compose a training loop from specification of the geometry, PDEs and constraints like boundary conditions using simple symbolic APIs. Please refer to the Lid Driven cavity that illustrates the concept. Additional information can be found in the Modulus documentation.
Users of Modulus versions older than 23.05 can refer to the migration guide for updating to the latest version.
Modulus Packages
Installation
PyPi
The recommended method for installing the latest version of Modulus Symbolic is using PyPi:
pip install nvidia-modulus.sym
Note, the above method only works for x86/amd64 based architectures. For installing Modulus Sym on Arm based systems using pip, Install VTK from source as shown here and then install Modulus-Sym and other dependencies
pip install nvidia-modulus.sym --no-deps
pip install "hydra-core>=1.2.0" "termcolor>=2.1.1" "chaospy>=4.3.7" "Cython==0.29.28" "numpy-stl==2.16.3" "opencv-python==4.5.5.64" \
"scikit-learn==1.0.2" "symengine>=0.10.0" "sympy==1.12" "timm==0.5.4" "torch-optimizer==0.3.0" "transforms3d==0.3.1" \
"typing==3.7.4.3" "pillow==10.0.1" "notebook==6.4.12" "mistune==2.0.3" "pint==0.19.2" "tensorboard>=2.8.0"
Container
The recommended Modulus docker image can be pulled from the NVIDIA Container Registry:
docker pull nvcr.io/nvidia/modulus/modulus:23.11
From Source
Package
For a local build of the Modulus Symbolic Python package from source use:
git clone git@github.com:NVIDIA/modulus-sym.git && cd modulus-sym
pip install --upgrade pip
pip install .
Source Container
To build release image, you will need to do the below preliminary steps:
Clone this repo, and download the Optix SDK from https://developer.nvidia.com/designworks/optix/downloads/legacy.
git clone https://github.com/NVIDIA/modulus-sym.git
cd modulus-sym/ && mkdir deps
Currently Modulus supports v7.0. Place the Optix file in the deps directory and make it executable. Also clone the pysdf library in the deps folder (NVIDIA Internal)
chmod +x deps/NVIDIA-OptiX-SDK-7.0.0-linux64.sh
git clone <internal pysdf repo>
Then to build the image, insert next tag and run below:
docker build -t modulus-sym:deploy \
--build-arg TARGETPLATFORM=linux/amd64 --target deploy -f Dockerfile .
Alternatively, if you want to skip pysdf installation, you can run the following:
docker build -t modulus-sym:deploy \
--build-arg TARGETPLATFORM=linux/amd64 --target no-pysdf -f Dockerfile .
Currently only linux/amd64
and linux/arm64
platforms are supported.
Contributing
For guidance on making a contribution to Modulus, see the contributing guidelines.
Communication
- Github Discussions: Discuss architectures, implementations, Physics-ML research, etc.
- GitHub Issues: Bug reports, feature requests, install issues, etc.
- Modulus Forum: The Modulus Forum hosts an audience of new to moderate level users and developers for general chat, online discussions, collaboration, etc.
License
Modulus Symbolic is provided under the Apache License 2.0, please see LICENSE.txt for full license text.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file nvidia_modulus.sym-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: nvidia_modulus.sym-1.3.0-py3-none-any.whl
- Upload date:
- Size: 287.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.7 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 935dd63160156d0da956ae2cbbbaadcab44b604ac3aabccc73d2bf3691c92bbc |
|
MD5 | 5a2ac069954b1050027ed44501ef6664 |
|
BLAKE2b-256 | 248b49cf7c70fd71fe374274d79bbbc002ed99d6a3eb4d9e6655507ee15b29cb |