The near-infrared (NIR) emission of the Martian atmosphere in the CO2 bands at 4.3, 2.7, 2.0, 1.6, 1.4, 1.3, 1.2, and 1.05 µm and in the CO bands at 4.7, 2.3, 1.6, and 1.2 µm is mainly generated under nonlocal thermodynamic equilibrium (NLTE) conditions for vibrational states, the transitions from which form the specified bands. The paper presents the results of simulations of the population of these states under NLTE for daytime conditions. In the cold high-latitude troposphere, the NLTE takes place much lower than in the troposphere under typical temperature conditions. If the NIR-radiation reflection from the surface is ignored, the population of high vibrational states substantially decreases, at least, in some layer of the lower atmosphere. However, inelastic collisions of CO2 and CO molecules with O atoms produce no considerable influence on the values of populations. The population of vibrational states, the transitions from which form NIR bands, is also almost insensitive to possible large values of the quenching-in-collision rate constants of vibrational states higher than CO2(0001). However, very large errors in the estimates of the population of vibrational states of the CO2 molecule (rather than the CO molecule!) can be caused by the uncertainty in the values of the rate constant of exchange between CO2 molecules by the energy quantum of the asymmetric stretching vibrational mode. For this intermolecular exchange, we recommend a possible way to restrict the vibrational excitation degree of the molecule that is a collision partner and to maintain simultaneously a sufficiently high accuracy in the population estimate.