(self, efficient_tuners)
| 284 | self.print_cfg() |
| 285 | |
| 286 | def tune_module(self, efficient_tuners): |
| 287 | if efficient_tuners is not None: |
| 288 | if not is_swift_available(): |
| 289 | raise ValueError( |
| 290 | 'Please install swift by `pip install ms-swift` to use efficient_tuners.' |
| 291 | ) |
| 292 | from swift import Swift |
| 293 | self.model = Swift.prepare_model(self.model, efficient_tuners) |
| 294 | |
| 295 | def place_model(self): |
| 296 | """Place model to device, or to DDP |
no test coverage detected