There are two explanations which come to mind answering your question:
I asked if you eat a lot of protein, because the amount of protein which some body builders consume leads to renal failure. And one sign of renal failure is the smell of ammonia. It's a quite common problem. But I don't think this applies to you. Your protein intake shouldn't exceed 2g per kg of body weight per day, some body builder eat up 4g per kg.
Ammonia is normally linked to your protein metabolism, which is higher during and after sport. The smell of Ammonia can occur when your carbohydrate reservoir is depleted and the body is mainly using protein as fuel. This effect also occurs when fasting or in patients with diabetes.
Try to keep your blood sugar level raised during exercise by eating something, like a banana, powerbars (also known as high energy bar) or directly dextrose. Or eat more long-chain carbohydrates. And this always depending the form of sport you are practicing. Just like the pasta party prior to marathons.