Probabilistic Generative AI Using Gaussian Mixture
Project description
gmtorch
Probabilistic Generative AI Using Gaussian Mixture
Installing
To install this package, run:
pip install gmtorch
Using
Example usage:
import gmtorch
...
Contributing
Prerequisites
-
Generate an SSH key and add the SSH key to your GitLab account.
-
Configure SSH to automatically load your SSH keys:
cat << EOF >> ~/.ssh/config Host * AddKeysToAgent yes IgnoreUnknown UseKeychain UseKeychain yes ForwardAgent yes EOF
-
Install VS Code and VS Code's Dev Containers extension. Alternatively, install PyCharm.
-
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):
-
⭐️ 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.
-
⭐️ 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
-
VS Code Dev Container: clone this repository, open it with VS Code, and run Ctrl/⌘ + ⇧ + P → Dev Containers: Reopen in Container.
-
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.
- Run
poefrom within the development environment to print a list of Poe the Poet tasks available to run on this project. - Run
uv add {package}from within the development environment to install a run time dependency and add it topyproject.tomlanduv.lock. Add--devto install a development dependency. - Run
uv sync --upgradefrom within the development environment to upgrade all dependencies to the latest versions allowed bypyproject.toml. Add--only-devto upgrade the development dependencies only. - Run
cz bumpto bump the package's version, update theCHANGELOG.md, and create a git tag. Then push the changes and the git tag withgit push origin branch-name --tags. - Workflow: create a feature branch from
develop-> create a merge request todevelop-> on major releases, create a merge request fromdeveloptomain.
Versioning
- Stable releases on
mainbranch use Semantic Versioning. - Development releases on
developbranch 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
developorlatesttags for publishing fromdevelopormainbranches, respectively.
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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gmtorch-0.0.1.dev0.tar.gz.
File metadata
- Download URL: gmtorch-0.0.1.dev0.tar.gz
- Upload date:
- Size: 154.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61eecb64c3ac1e11f9903325fb4439cda1f65ff9279e0679b10daf6a4ccd16e1
|
|
| MD5 |
43fed8b8d5952e20623676d0fdf318af
|
|
| BLAKE2b-256 |
e4293e4c6b83cde07fee6cbfe2ce457af2a677cb0cf124034a497ddd1c5d8f8a
|
File details
Details for the file gmtorch-0.0.1.dev0-py3-none-any.whl.
File metadata
- Download URL: gmtorch-0.0.1.dev0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e05e230d586ee98ab8dd5107732a9daee4edb87ca80c374f56215fa391671e5d
|
|
| MD5 |
24c292af82eada428d7ecb4feabffd00
|
|
| BLAKE2b-256 |
2bcdb9a44b6c3e0a1cc54400681e52f16e19554078d0a3ae49dd4c5cca5a57ce
|