It is not advisable to break the training contract before it is completed, especially if there is a penalty of 5k++. It is important to honor your contractual obligations and try to complete the training period as agreed. It would be best to wait until the contract is finished before looking for a new job to avoid any potential legal or financial consequences.