According to the provisions of Article 22 of the Labor Contract Law, if an employer provides special training fees for workers and conducts professional and technical training, it may conclude an agreement with the workers to stipulate the service period. If the laborer violates the service period agreement, he shall pay liquidated damages to the employer in accordance with the agreement. The amount of liquidated damages shall not exceed the training expenses provided by the employer. The liquidated damages that the employer requires the laborer to pay shall not exceed the training expenses that should be shared for the unfinished part of the service period.
So, first of all, the training contract you signed is legal and valid. If the liquidated damages (your three-month salary) agreed in the training contract signed between your unit and you are not higher than the expenses paid by the company for providing you with special training, you need to pay liquidated damages if you leave your job for less than one year.
If you go to work in another unit without terminating the labor contract with our company, our company can hold you liable for breach of contract.
I hope it helps you.