mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-05 02:31:47 +00:00
refactor: move standalone scripts to scripts/ directory
Move batch_runner, trajectory_compressor, mini_swe_runner, and rl_cli from the project root into scripts/, update all imports, logger names, pyproject.toml, and downstream test references.
This commit is contained in:
parent
224e6d46d9
commit
ca2b6a529e
20 changed files with 51 additions and 41 deletions
|
|
@ -104,7 +104,7 @@ def main():
|
|||
test_file = create_test_dataset()
|
||||
|
||||
print(f"\n📝 To run the test manually:")
|
||||
print(f" python batch_runner.py \\")
|
||||
print(f" python scripts/batch_runner.py \\")
|
||||
print(f" --dataset_file={test_file} \\")
|
||||
print(f" --batch_size=2 \\")
|
||||
print(f" --run_name={run_name} \\")
|
||||
|
|
@ -112,7 +112,7 @@ def main():
|
|||
print(f" --num_workers=2")
|
||||
|
||||
print(f"\n💡 Or test with different distributions:")
|
||||
print(f" python batch_runner.py --list_distributions")
|
||||
print(f" python scripts/batch_runner.py --list_distributions")
|
||||
|
||||
print(f"\n🔍 After running, you can verify output with:")
|
||||
print(f" python tests/test_batch_runner.py --verify")
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ from pathlib import Path
|
|||
from typing import List, Dict, Any
|
||||
import traceback
|
||||
|
||||
# Add project root to path to import batch_runner
|
||||
# Add project root to path to import scripts.batch_runner
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent.parent))
|
||||
|
||||
|
||||
|
|
@ -135,7 +135,7 @@ def test_current_implementation():
|
|||
shutil.rmtree(output_dir)
|
||||
|
||||
# Import here to avoid issues if module changes
|
||||
from batch_runner import BatchRunner
|
||||
from scripts.batch_runner import BatchRunner
|
||||
|
||||
checkpoint_file = output_dir / "checkpoint.json"
|
||||
|
||||
|
|
@ -229,7 +229,7 @@ def test_interruption_and_resume():
|
|||
if output_dir.exists():
|
||||
shutil.rmtree(output_dir)
|
||||
|
||||
from batch_runner import BatchRunner
|
||||
from scripts.batch_runner import BatchRunner
|
||||
|
||||
checkpoint_file = output_dir / "checkpoint.json"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue