renpas22 commited on
Commit
879210b
·
1 Parent(s): 82de57b

Fix function call arguments and trainer initialization

Browse files
Files changed (1) hide show
  1. train_qwen_cot_dual.py +1 -2
train_qwen_cot_dual.py CHANGED
@@ -98,7 +98,6 @@ def prepare_model_with_tokens(config: Dict[str, Any]) -> str:
98
  add_special_tokens_to_model(
99
  model_path=model_path,
100
  output_dir=str(output_dir),
101
- prm_only=False, # Add all tokens
102
  )
103
  logger.info("✓ Successfully added special tokens!")
104
  return str(output_dir)
@@ -313,7 +312,7 @@ def main():
313
  logger.info("=" * 60)
314
 
315
  try:
316
- trainer = StepLevelCoTTrainer(config)
317
  logger.info("✓ Trainer initialized successfully!")
318
  except Exception as e:
319
  logger.error(f"✗ Failed to initialize trainer: {e}")
 
98
  add_special_tokens_to_model(
99
  model_path=model_path,
100
  output_dir=str(output_dir),
 
101
  )
102
  logger.info("✓ Successfully added special tokens!")
103
  return str(output_dir)
 
312
  logger.info("=" * 60)
313
 
314
  try:
315
+ trainer = StepLevelCoTTrainer(args.config)
316
  logger.info("✓ Trainer initialized successfully!")
317
  except Exception as e:
318
  logger.error(f"✗ Failed to initialize trainer: {e}")