Glyme-based electrolytes are of great interest for rechargeable lithium metal batteries due to their high stability, low vapor pressure, and non-flammability. Understanding the solvation structures of these electrolytes at the atomic level will facilitate the design of new electrolytes with novel properties. Recently, classical molecular dynamics (CMD) and ab initio molecular dynamics (AIMD) have been applied to investigate electrolytes with complex solvation structures. On the one hand, classical molecular dynamics (CMD) may not provide reliable results as it requires complex parameterization to ensure the accuracy of the classical force field. On the other hand, the time scale of AIMD is limited by the high cost of ab initio calculations, which causes that solvation structures from AIMD simulations depend on the initial configurations. In order to solve the dilemma, machine learning method is applied to accelerate AIMD, and the time scale of AIMD can be extended dramatically. In this work, we present a computational study on the solvation structures of triglyme (G3) based electrolytes by using machine learning molecular dynamics (MLMD). Firstly, we investigate the effects of density functionals on the accuracy of machine learning potential (MLP), and find that PBE-D3 shows better accuracy compared to BLYP-D3. Then, the densities of electrolytes with different concentration of LiTFSI are computed with MLMD, which shows good agreement with experiments. By analyzing the solvation structures of 1 ns MLMD trajectories, we found that Li+ prefers to coordinate with an G3 and an TFSI− in equimolar electrolytes. Our work demonstrates the significance of long-time scale MLMD simulations for clarifying the chemistry of non-ideal electrolytes.