jbilcke-hf HF Staff commited on
Commit
79aa37d
·
1 Parent(s): 6472a9e
vms/ui/project/services/training.py CHANGED
@@ -1492,7 +1492,15 @@ class TrainingService:
1492
  if model_output_safetensors_path.exists():
1493
  return str(model_output_safetensors_path)
1494
 
1495
- # If not found in root, log the issue and return None
 
 
 
 
 
 
 
 
1496
  logger.warning(f"Model weights not found at expected location: {model_output_safetensors_path}")
1497
  logger.info(f"Checking output directory contents: {list(self.app.output_path.glob('*'))}")
1498
 
 
1492
  if model_output_safetensors_path.exists():
1493
  return str(model_output_safetensors_path)
1494
 
1495
+ # Check in lora_weights directory
1496
+ lora_weights_dir = self.app.output_path / "lora_weights"
1497
+ if lora_weights_dir.exists():
1498
+ lora_safetensors = lora_weights_dir / "pytorch_lora_weights.safetensors"
1499
+ if lora_safetensors.exists():
1500
+ logger.info(f"Found weights in lora_weights directory: {lora_safetensors}")
1501
+ return str(lora_safetensors)
1502
+
1503
+ # If not found in root or lora_weights, log the issue
1504
  logger.warning(f"Model weights not found at expected location: {model_output_safetensors_path}")
1505
  logger.info(f"Checking output directory contents: {list(self.app.output_path.glob('*'))}")
1506