renpas22 commited on
Commit ·
27b06f0
1
Parent(s): 2b8876a
Fix Python path for imports
Browse files- train_qwen_cot_dual.py +4 -2
train_qwen_cot_dual.py
CHANGED
|
@@ -23,8 +23,10 @@ import torch
|
|
| 23 |
from typing import Dict, List, Optional, Any
|
| 24 |
import logging
|
| 25 |
|
| 26 |
-
# Add src to path
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
|
| 29 |
from src.reasoning.step_level_cot import StepLevelCoTTrainer
|
| 30 |
from src.reasoning.flux_reason_dataset import FLUXReasonDataset, create_flux_reason_dataloader
|
|
|
|
| 23 |
from typing import Dict, List, Optional, Any
|
| 24 |
import logging
|
| 25 |
|
| 26 |
+
# Add repository root and src to Python path
|
| 27 |
+
repo_root = Path(__file__).parent.absolute()
|
| 28 |
+
sys.path.insert(0, str(repo_root))
|
| 29 |
+
sys.path.insert(0, str(repo_root / "src"))
|
| 30 |
|
| 31 |
from src.reasoning.step_level_cot import StepLevelCoTTrainer
|
| 32 |
from src.reasoning.flux_reason_dataset import FLUXReasonDataset, create_flux_reason_dataloader
|