Skip to main content

Plug-and-Play Benchmarking of Reinforcement Learning Algorithms for Large-Scale Flow Control

Project description

FluidGym Logo FluidGym Logo

PyPI version PyPI - Python Version PyTorch CUDA License Linters


Installation

📦 Installation from PyPi

  1. Ensure the correct PyTorch version is installed (compatible with CUDA 12.8):
pip install torch --index-url https://download.pytorch.org/whl/cu128
  1. Install
pip install fluidgym

🐳 Using Docker (coming soon)

Instead of installing FluidGym you can use one of our Docker containers:

🧱 Build from Source (GitHub)

  1. Create a new conda environment and activate it:
conda create -n fluidgym python=3.10
conda activate fluidgym
  1. Install gcc:
conda install pip "gcc_linux-64>=6.0,<=11.5" "gxx_linux-64>=6.0,<=11.5"
  1. Install the latest Pytorch for CUDA 12.8 via pip:
pip install torch --index-url https://download.pytorch.org/whl/cu128
  1. Install the matching cuda toolkit via conda:
conda install cuda-toolkit=12.8 -c nvidia/label/cuda-12.8.1
  1. Clone the repository and enter the directory, then compile the custom CUDA kernels and install the package (this might take several minutes):
make install

Getting Started

For an easy start refer to our documentation and the examples directory. FluidGym provides a gymnasium-like interface that can be used as follows:

import fluidgym

env = fluidgym.make(
    "JetCylinder2D-easy-v0",
)
obs, info = env.reset(seed=42)

for _ in range(50):
    action = env.sample_action()
    obs, reward, term, trunc, info = env.step(action)
    env.render()

    if term or trunc:
        break

License & Citation

This repository is published under the MIT license.

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

fluidgym-0.0.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

fluidgym-0.0.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

fluidgym-0.0.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

fluidgym-0.0.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file fluidgym-0.0.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fluidgym-0.0.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c7d02b5c6a8f662086c5c0aa79919fb71149d9a937d6d996faabab38f7ae54b7
MD5 b7f1c15bcc387e35fed630ca533a6d93
BLAKE2b-256 1dbce1ff54080c5c498328295a0f0aa2e69574b3f911b2de45794e68619bc12f

See more details on using hashes here.

File details

Details for the file fluidgym-0.0.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fluidgym-0.0.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f6b94c3bc76ddf56f18cbb6e5ab67e7e10bcadb72d75fbe027602098c8037b07
MD5 7accacfddbd587ed43673a93303aa591
BLAKE2b-256 2727d04543a4754eac05add4d7cecddf1180a8f31eb4d2f39f7c66b4a0223cff

See more details on using hashes here.

File details

Details for the file fluidgym-0.0.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fluidgym-0.0.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c11b82ad6090772402574bff5c8fd57d92a59b82d6ca6bda42955d1b1335cc23
MD5 d82278993d80cc40bbbd30550ef532fe
BLAKE2b-256 10e00d96efd595fe3506d4798ab501aaeaea9fed1616355b6bc90cf5ab5a6c96

See more details on using hashes here.

File details

Details for the file fluidgym-0.0.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fluidgym-0.0.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b52b59c015d13799b0d26957a6504667c2cc953f7d734655c991d63e838954e7
MD5 ecf9dbd20cdf7fc69d05807b7c42c79b
BLAKE2b-256 03c72ed234941ce9cc29f60321e00d14af8af6dabc8886ae0e5e82e4a399a04d

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