If your employer offers matching contribution, you should get at least get the maximum matching. For example, if your company matches 50% of your first 6% compensation, you should contribute at least 6% of your gross wage.
After you get the maximum match, you can consider contribute more if:
1. Your Federal income tax bracket is more than 15%.
2. Saving more will not bring you cash flow problem.
Make sure you know the vesting schedule of the 401K before you leave for another job.