Include the main-branch install and downloads in the evaluate block.
Browse files
README.md
CHANGED
|
@@ -13,9 +13,22 @@ GENCO optimal-power-flow checkpoints on OPFData ([paper](https://arxiv.org/abs/2
|
|
| 13 |
|
| 14 |
Evaluate on the paper branch by following [GENCO §5.2](https://github.com/gridfm/gridfm-paper-genco/blob/main/repro_instructions/5.2_OPF_on_opfdata.md). That guide uses graphkit [genco-paper-repro](https://github.com/gridfm/gridfm-graphkit/tree/genco-paper-repro) and is how the paper numbers were produced.
|
| 15 |
|
| 16 |
-
Or evaluate the same checkpoints on graphkit [main](https://github.com/gridfm/gridfm-graphkit/tree/main). `main` is under development, so the same numbers are not guaranteed. They matched the paper-branch result at commit [`f104900`](https://github.com/gridfm/gridfm-graphkit/commit/f104900245cba26d1380037eea562cf633a97484) (1 October 2026).
|
| 17 |
|
| 18 |
```bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
gridfm_graphkit evaluate \
|
| 20 |
--config_conversion auto_inline \
|
| 21 |
--config genco-opfdata/case118_ieee/seed42/HGNSQ_penalty_11_OPFData_case118_default.yaml \
|
|
|
|
| 13 |
|
| 14 |
Evaluate on the paper branch by following [GENCO §5.2](https://github.com/gridfm/gridfm-paper-genco/blob/main/repro_instructions/5.2_OPF_on_opfdata.md). That guide uses graphkit [genco-paper-repro](https://github.com/gridfm/gridfm-graphkit/tree/genco-paper-repro) and is how the paper numbers were produced.
|
| 15 |
|
| 16 |
+
Or evaluate the same checkpoints on graphkit [main](https://github.com/gridfm/gridfm-graphkit/tree/main). `main` is under development, so the same numbers are not guaranteed. They matched the paper-branch result at commit [`f104900`](https://github.com/gridfm/gridfm-graphkit/commit/f104900245cba26d1380037eea562cf633a97484) (1 October 2026).
|
| 17 |
|
| 18 |
```bash
|
| 19 |
+
git clone https://github.com/gridfm/gridfm-graphkit.git
|
| 20 |
+
cd gridfm-graphkit
|
| 21 |
+
pip install -e .
|
| 22 |
+
pip install "huggingface_hub[cli]"
|
| 23 |
+
TORCH_CUDA_VERSION=$(python -c "import torch; print(torch.__version__ + ('+cpu' if torch.version.cuda is None else ''))")
|
| 24 |
+
pip install torch-scatter -f https://data.pyg.org/whl/torch-${TORCH_CUDA_VERSION}.html
|
| 25 |
+
export MLFLOW_ALLOW_FILE_STORE=true
|
| 26 |
+
|
| 27 |
+
mkdir -p data/case118_ieee/raw scripts/opfdata/splits
|
| 28 |
+
hf download gridfm/opfdata_case118_ieee --repo-type dataset --local-dir data/case118_ieee/raw
|
| 29 |
+
hf download gridfm/genco-opfdata --include "splits/*" --include "case118_ieee/seed42/**" --local-dir genco-opfdata
|
| 30 |
+
cp genco-opfdata/splits/*.pt scripts/opfdata/splits/
|
| 31 |
+
|
| 32 |
gridfm_graphkit evaluate \
|
| 33 |
--config_conversion auto_inline \
|
| 34 |
--config genco-opfdata/case118_ieee/seed42/HGNSQ_penalty_11_OPFData_case118_default.yaml \
|