Skip to main content

Probabilistic Generative AI Using Gaussian Mixture

Project description

Open in Dev Containers License

gmtorch

Probabilistic Generative AI Using Gaussian Mixture

License: This project is licensed under the Apache License 2.0 — see the LICENSE file for details.

Installing

To install this package, run:

pip install gmtorch

Using

Example usage:

import gmtorch

...

Contributing

Prerequisites
  1. Generate an SSH key and add the SSH key to your GitLab account.

  2. Configure SSH to automatically load your SSH keys:

    cat << EOF >> ~/.ssh/config
    
    Host *
      AddKeysToAgent yes
      IgnoreUnknown UseKeychain
      UseKeychain yes
      ForwardAgent yes
    EOF
    
  3. Install Docker Desktop.

  4. Install VS Code and VS Code's Dev Containers extension. Alternatively, install PyCharm.

  5. Optional: install a Nerd Font such as FiraCode Nerd Font and configure VS Code or PyCharm to use it.

Development environments

The following development environments are supported (Note: with non-Nvidia GPUs use the 2. method):

  1. ⭐️ VS Code Dev Container (with container volume): click on Open in Dev Containers to clone this repository in a container volume and create a Dev Container with VS Code.

  2. ⭐️ uv: clone this repository and run the following from root of the repository:

    On Linux or macOS:

    # Download and install uv
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
    # Create and install a virtual environment
    uv sync --python 3.12 --all-extras
    
    # Activate the virtual environment
    source .venv/bin/activate 
    
    # Install the pre-commit hooks
    pre-commit install --install-hooks
    

    On Windows (PowerShell):

    # Download and install uv
    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    
    # Create and install a virtual environment
    uv sync --python 3.12 --all-extras
    
    # Activate the virtual environment
    .venv\Scripts\activate
    
    # Install the pre-commit hooks
    pre-commit install --install-hooks
    
  3. VS Code Dev Container: clone this repository, open it with VS Code, and run Ctrl/⌘ + + PDev Containers: Reopen in Container.

  4. PyCharm Dev Container: clone this repository, open it with PyCharm, create a Dev Container with Mount Sources, and configure an existing Python interpreter at /opt/venv/bin/python.

Developing
  • This project follows the Conventional Commits standard to automate Semantic Versioning and Keep A Changelog with Commitizen.
  • ❗❗❗In order to uphold coorect CHANGELOG.md: For feature branches, in merge requests use feat: ... title. For bug fix branches, use fix: ... title. See Conventional Commits for more details.
  • Run poe from within the development environment to print a list of Poe the Poet tasks available to run on this project.
  • ❗❗❗poe lint runs linting checks which would also run in the CI/CD pipeline, so it's recommended to run this before pushing changes (automatic with dev container or previously set pre-commit hooks (2. of Development environments)).
  • Run uv add {package} from within the development environment to install a run time dependency and add it to pyproject.toml and uv.lock. Add --dev to install a development dependency.
  • Run uv sync --upgrade from within the development environment to upgrade all dependencies to the latest versions allowed by pyproject.toml. Add --only-dev to upgrade the development dependencies only.
  • Run cz bump to bump the package's version, update the CHANGELOG.md, and create a git tag. Then push the changes and the git tag with git push origin branch-name --tags.
  • Workflow: create a feature branch from develop -> create a merge request to develop -> on major releases, create a merge request from develop to main.
  • uv is a powerful tool, so for most tasks you can just use uv.
    • uv pip install {package} to install a package with pip interface.
    • uv build to build the package.
    • uv run to run a module without going into the virtual environment.
    • More commands: uv --help or see uv documentation.
Versioning
  • Stable releases on main branch use Semantic Versioning.
  • Development releases on develop branch use the current version with .devN suffix, where N is the number of published development releases so far for the current version.
  • Docker images use either develop or latest tags for publishing from develop or main branches, respectively.

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

gmtorch-0.0.1.dev3.tar.gz (432.5 kB view details)

Uploaded Source

Built Distribution

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

gmtorch-0.0.1.dev3-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file gmtorch-0.0.1.dev3.tar.gz.

File metadata

  • Download URL: gmtorch-0.0.1.dev3.tar.gz
  • Upload date:
  • Size: 432.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for gmtorch-0.0.1.dev3.tar.gz
Algorithm Hash digest
SHA256 360aead5bb4a25fac9e146dea4972aa309153251c812b4fbfcbb88080ad1e205
MD5 e51448a0f4bdde1df03d7e4fa0db3007
BLAKE2b-256 f5fd7714a2f9526cfc6b66838173bb34f47fb58729823fe1525db724a594834e

See more details on using hashes here.

File details

Details for the file gmtorch-0.0.1.dev3-py3-none-any.whl.

File metadata

  • Download URL: gmtorch-0.0.1.dev3-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for gmtorch-0.0.1.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 6fefb63def7dd736d32c5312642dc5f0259e469553c3cccf0919089bc8f30729
MD5 2fce4ec9e706b74b7c9e5332bfa254c7
BLAKE2b-256 e29e97d1b5be96966e243a74e5c21b4b46b268bb4122f4b03efa8a06a60b12ae

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