ML Performance and Extrapolation Guide
Project description
ML-PEG: ML Performance and Extrapolation Guide
🔗 See our live guide: https://ml-peg.stfc.ac.uk
Contents
Getting started
Dependencies
All required and optional dependencies can be found in pyproject.toml.
Installation
The latest stable release of ML-PEG, including its dependencies, can be installed from PyPI by running:
python3 -m pip install ml-peg
To get all the latest changes, ML-PEG can be installed from GitHub:
python3 -m pip install git+https://github.com/ddmms/ml-peg.git
Features
More details coming soon!
Development
Please ensure you have consulted our contribution guidelines and coding style before proceeding.
We recommend installing uv for dependency management when developing for ML-PEG:
- Install uv
- Install ML-PEG with dependencies in a virtual environment:
git clone https://github.com/ddmms/ml-peg
cd ml-peg
uv sync # Create a virtual environment and install dependencies
source .venv/bin/activate
pre-commit install # Install pre-commit hooks
pytest -v # Discover and run all tests
Please refer to the online documentation for information about contributing new benchmarks and models.
Command-line interface
To help run calculations, analysis, and the application, we provide the ml_peg
command line tool, which is installed with the package. This provides the following
commands:
ml_peg app
ml_peg calc
ml_peg analyse
ml_peg download
ml_peg list
For example, to run the X23 test with mace-mp-0a and orb-v3-consv-inf-omat, you can run:
ml_peg calc --test X23 --models mace-mp-0a,orb-v3-consv-inf-omat
A description of each subcommand, as well as valid options, can be listed using the
--help option. For example:
ml_peg calc --help
The ml_peg list command provides a further set of subcommands:
ml_peg list calcs
ml_peg list analysis
ml_peg list app
ml_peg list models
which list the available tests and categories that may be run for ml_peg calc,
ml_peg analyse and ml_peg app, and the MLIPs that these can be run for.
Tutorials
We encourage developers new to the ML-PEG framework to work through the detailed step-by-step guides provided by our Jupyter Notebook tutorials:
Docker/Podman images
You can use Docker or Podman to build and/or run the ML-PEG app yourself.
[!TIP] The commands below will assume you are using Docker. To use Podman, replace
dockerwithpodman, e.g.podman pull,podman build, andpodman run.
A Docker image with the latest changes can be pulled from the GitHub container registry, following the command that can be found under this repository's packages.
[!NOTE] Currently, this repository only contains images for the linux/amd64 platform. On MacOS with ARM silicon, this can often still be run by setting
--platform linux/amd64when usingdocker run.
Alternatively, to build the container yourself, you can use the
Dockerfile provided. From the ml-peg directory, run:
docker build -t ml-peg-app -f containers/Dockerfile .
Once built, you can mount your current application data and start the app by running:
docker run --volume ./ml_peg/app/data:/app/ml_peg/app/data --publish 8050:8050 ml-peg-app
[!TIP] Ensure
ml_peg/app/datais populated with results before running the container.A compressed zip file containing the current live data can be found at http://s3.echo.stfc.ac.uk/ml-peg-data/app/data/data.tar.gz.
This may also be downloaded through the command line using
ml_peg download --key app/data/data.tar.gz --filename data.tar.gz
Alternatively, you can use the compose.yml file provided, via Docker Compose:
docker compose -f containers/compose.yml up -d
The app should now be accessible at http://localhost:8050.
License
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 ml_peg-0.4.3.tar.gz.
File metadata
- Download URL: ml_peg-0.4.3.tar.gz
- Upload date:
- Size: 9.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65f7619b82a26d7c5ecc3e3eabfdcf33a5ceba18b86ceabd099da3ad27ea5c86
|
|
| MD5 |
03b731d91163744f03a527e1e890b106
|
|
| BLAKE2b-256 |
2f22d531e14234a77c8366f6e9cbfe0ffa906758680076da393d7950b143166b
|
File details
Details for the file ml_peg-0.4.3-py3-none-any.whl.
File metadata
- Download URL: ml_peg-0.4.3-py3-none-any.whl
- Upload date:
- Size: 9.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de642017f23e225ef850633a8963fafc10abe02329a99e1d103201b9b4e75146
|
|
| MD5 |
ba9b29275a1b80bcceca0d2b4b5a94a6
|
|
| BLAKE2b-256 |
e0b0e58c90b796d27569afe89a81adad7c218ac706aa317e758a733eb919202b
|