build: lower Python requirement to >=3.10 for official PyTorch image compatibility
Browse files- README.md +3 -3
- pyproject.toml +1 -1
- src/pino/models.py +2 -2
README.md
CHANGED
|
@@ -38,13 +38,13 @@ python scripts/generate_empirical_bootstrap.py --output data/empirical_dataset_v
|
|
| 38 |
# Train locally (5 epochs, smoke-test config)
|
| 39 |
python src/pino/train.py --epochs 5 --smoke-test
|
| 40 |
|
| 41 |
-
# Train on Hugging Face Jobs GPU cluster
|
| 42 |
hf jobs run -d --flavor t4-small --timeout 7200 \
|
| 43 |
--secrets HF_TOKEN \
|
| 44 |
pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime \
|
| 45 |
bash -c "apt-get update -qq && apt-get install -y -qq git && \
|
| 46 |
-
git clone https://huggingface.co/mattbitzesty/pino-source-code /workspace/pino && \
|
| 47 |
-
cd /workspace/pino && pip install -e . && \
|
| 48 |
python scripts/hf_train_job.py"
|
| 49 |
```
|
| 50 |
|
|
|
|
| 38 |
# Train locally (5 epochs, smoke-test config)
|
| 39 |
python src/pino/train.py --epochs 5 --smoke-test
|
| 40 |
|
| 41 |
+
# Train on Hugging Face Jobs GPU cluster (Python 3.10+ compatible PyTorch image)
|
| 42 |
hf jobs run -d --flavor t4-small --timeout 7200 \
|
| 43 |
--secrets HF_TOKEN \
|
| 44 |
pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime \
|
| 45 |
bash -c "apt-get update -qq && apt-get install -y -qq git && \
|
| 46 |
+
git clone -b main https://huggingface.co/mattbitzesty/pino-source-code /workspace/pino && \
|
| 47 |
+
cd /workspace/pino && pip install -q -e . && \
|
| 48 |
python scripts/hf_train_job.py"
|
| 49 |
```
|
| 50 |
|
pyproject.toml
CHANGED
|
@@ -7,7 +7,7 @@ name = "pino"
|
|
| 7 |
version = "0.1.0"
|
| 8 |
description = "Physics-Informed Neural Olfaction (PINO) — thermodynamic fragrance evaporation verifier"
|
| 9 |
readme = "README.md"
|
| 10 |
-
requires-python = ">=3.
|
| 11 |
dependencies = [
|
| 12 |
"rdkit>=2024.0",
|
| 13 |
"scipy>=1.12",
|
|
|
|
| 7 |
version = "0.1.0"
|
| 8 |
description = "Physics-Informed Neural Olfaction (PINO) — thermodynamic fragrance evaporation verifier"
|
| 9 |
readme = "README.md"
|
| 10 |
+
requires-python = ">=3.10"
|
| 11 |
dependencies = [
|
| 12 |
"rdkit>=2024.0",
|
| 13 |
"scipy>=1.12",
|
src/pino/models.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
from __future__ import annotations
|
| 2 |
|
| 3 |
from dataclasses import dataclass, field
|
| 4 |
-
from enum import
|
| 5 |
from typing import Any
|
| 6 |
|
| 7 |
import numpy as np
|
| 8 |
|
| 9 |
|
| 10 |
-
class Status(
|
| 11 |
PASSED = "passed"
|
| 12 |
REJECTED = "rejected"
|
| 13 |
DEPLETED = "depleted"
|
|
|
|
| 1 |
from __future__ import annotations
|
| 2 |
|
| 3 |
from dataclasses import dataclass, field
|
| 4 |
+
from enum import Enum
|
| 5 |
from typing import Any
|
| 6 |
|
| 7 |
import numpy as np
|
| 8 |
|
| 9 |
|
| 10 |
+
class Status(str, Enum):
|
| 11 |
PASSED = "passed"
|
| 12 |
REJECTED = "rejected"
|
| 13 |
DEPLETED = "depleted"
|