fix: use correct repo_root path for dataset files
This commit is contained in:
@@ -110,8 +110,8 @@ def train(config_path):
|
|||||||
from datasets import load_dataset
|
from datasets import load_dataset
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# Get dataset paths - assuming run from /home/workdir/artifacts
|
# Get dataset paths - go up to project root
|
||||||
repo_root = Path(__file__).parent
|
repo_root = Path(__file__).parent.parent.parent
|
||||||
train_path = str(repo_root / "training" / "data" / "train.jsonl")
|
train_path = str(repo_root / "training" / "data" / "train.jsonl")
|
||||||
test_path = str(repo_root / "training" / "data" / "test.jsonl")
|
test_path = str(repo_root / "training" / "data" / "test.jsonl")
|
||||||
print(f"Looking for dataset at: {train_path}")
|
print(f"Looking for dataset at: {train_path}")
|
||||||
@@ -206,7 +206,7 @@ def check_setup(config_path):
|
|||||||
|
|
||||||
# Check dataset files
|
# Check dataset files
|
||||||
print("\n3. Dataset files:")
|
print("\n3. Dataset files:")
|
||||||
repo_root = Path(__file__).parent
|
repo_root = Path(__file__).parent.parent.parent # Go up to project root
|
||||||
train_path = repo_root / "training" / "data" / "train.jsonl"
|
train_path = repo_root / "training" / "data" / "train.jsonl"
|
||||||
test_path = repo_root / "training" / "data" / "test.jsonl"
|
test_path = repo_root / "training" / "data" / "test.jsonl"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user