chore(hf): point hf_train_job.py to empirical_dataset_v1.jsonl
Browse files- scripts/hf_train_job.py +4 -4
scripts/hf_train_job.py
CHANGED
|
@@ -20,17 +20,17 @@ from pino.train import main as train_main
|
|
| 20 |
def hf_train_5epoch() -> None:
|
| 21 |
"""Run a controlled 5-epoch training pass and push artifacts to the Hub."""
|
| 22 |
token = os.environ.get("HF_TOKEN")
|
| 23 |
-
data_path = REPO_ROOT / "data" / "
|
| 24 |
|
| 25 |
if not data_path.exists() and token:
|
| 26 |
# Download the dataset from the canonical dataset repository.
|
| 27 |
from huggingface_hub import hf_hub_download
|
| 28 |
|
| 29 |
-
print("📥 Downloading dataset from Hugging Face Hub...")
|
| 30 |
data_path.parent.mkdir(parents=True, exist_ok=True)
|
| 31 |
downloaded = hf_hub_download(
|
| 32 |
repo_id="mattbitzesty/pino-synthetic-dataset",
|
| 33 |
-
filename="
|
| 34 |
repo_type="dataset",
|
| 35 |
token=token,
|
| 36 |
local_dir=str(data_path.parent),
|
|
@@ -39,7 +39,7 @@ def hf_train_5epoch() -> None:
|
|
| 39 |
print(f" Dataset downloaded to {data_path}")
|
| 40 |
elif not data_path.exists():
|
| 41 |
# Allow the dataset to be mounted elsewhere in the container.
|
| 42 |
-
data_path = Path("/data/
|
| 43 |
|
| 44 |
sys.argv = [
|
| 45 |
"pino.train",
|
|
|
|
| 20 |
def hf_train_5epoch() -> None:
|
| 21 |
"""Run a controlled 5-epoch training pass and push artifacts to the Hub."""
|
| 22 |
token = os.environ.get("HF_TOKEN")
|
| 23 |
+
data_path = REPO_ROOT / "data" / "empirical_dataset_v1.jsonl"
|
| 24 |
|
| 25 |
if not data_path.exists() and token:
|
| 26 |
# Download the dataset from the canonical dataset repository.
|
| 27 |
from huggingface_hub import hf_hub_download
|
| 28 |
|
| 29 |
+
print("📥 Downloading empirical bootstrap dataset from Hugging Face Hub...")
|
| 30 |
data_path.parent.mkdir(parents=True, exist_ok=True)
|
| 31 |
downloaded = hf_hub_download(
|
| 32 |
repo_id="mattbitzesty/pino-synthetic-dataset",
|
| 33 |
+
filename="empirical_dataset_v1.jsonl",
|
| 34 |
repo_type="dataset",
|
| 35 |
token=token,
|
| 36 |
local_dir=str(data_path.parent),
|
|
|
|
| 39 |
print(f" Dataset downloaded to {data_path}")
|
| 40 |
elif not data_path.exists():
|
| 41 |
# Allow the dataset to be mounted elsewhere in the container.
|
| 42 |
+
data_path = Path("/data/empirical_dataset_v1.jsonl")
|
| 43 |
|
| 44 |
sys.argv = [
|
| 45 |
"pino.train",
|