mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
testing 3
This commit is contained in:
parent
dd7047dd5a
commit
8a9e6945ee
4 changed files with 18 additions and 1 deletions
|
|
@ -82,6 +82,12 @@ def parse_args() -> argparse.Namespace:
|
|||
default="trained_model_checkpoints",
|
||||
help="Directory to save model checkpoints",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--checkpoint-interval",
|
||||
type=int,
|
||||
default=3,
|
||||
help="Save checkpoint every N training steps (0 = only save final)",
|
||||
)
|
||||
|
||||
# === vLLM Arguments ===
|
||||
parser.add_argument(
|
||||
|
|
@ -258,6 +264,7 @@ def config_from_args(args: argparse.Namespace) -> TrainingConfig:
|
|||
optimizer=args.optimizer,
|
||||
device=args.device,
|
||||
save_path=args.save_path,
|
||||
checkpoint_interval=getattr(args, "checkpoint_interval", 3),
|
||||
vllm_restart_interval=args.vllm_restart_interval,
|
||||
vllm_port=args.vllm_port,
|
||||
vllm_gpu_memory_utilization=args.vllm_gpu_memory_utilization,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue