Julian Bilcke commited on
Commit ·
79aa37d
1
Parent(s): 6472a9e
hmm
Browse files1491 unmodified lines14921493149414951496149714981491 unmodified linesif model_output_safetensors_path.exists():return str(model_output_safetensors_path)# If not found in root, log the issue and return Nonelogger.warning(f"Model weights not found at expected location: {model_output_safetensors_path}")logger.info(f"Checking output directory contents: {list(self.app.output_path.glob('*'))}")1491 unmodified lines1492149314941495149614971498149915001501150215031504150515061491 unmodified linesif model_output_safetensors_path.exists():return str(model_output_safetensors_path)# Check in lora_weights directorylora_weights_dir = self.app.output_path / "lora_weights"if lora_weights_dir.exists():lora_safetensors = lora_weights_dir / "pytorch_lora_weights.safetensors"if lora_safetensors.exists():logger.info(f"Found weights in lora_weights directory: {lora_safetensors}")return str(lora_safetensors)# If not found in root or lora_weights, log the issuelogger.warning(f"Model weights not found at expected location: {model_output_safetensors_path}")logger.info(f"Checking output directory contents: {list(self.app.output_path.glob('*'))}")
vms/ui/project/services/training.py+9-1