The flexible operation capability of combined heat and power (CHP) unit under full operating conditions must be promoted to suppress the power grid fluctuation in large-scale integration of renewable energy. However, obtaining CHP unit model under large-scale variable loads and deep peak shaving is extremely challenging. To this end, an intelligent modeling method incorporating improved crossformer and precise sparrow search algorithm is designed to provide reference for flexible controller design. Firstly, to address the strong time dependence of CHP unit boiler-turbine coupling process, a bidirectional gated recurrent unit is employed as the position encoding to extract the hidden temporal feature. Secondly, a novel encoder structure with multi-receptive field convolution module is designed to enhance the local feature extraction capability of the network, which is conducive to the analysis of multivariable coupling characteristics of CHP unit. On this basis, a precise sparrow search algorithm with stronger search ability is formed by combining Tent chaotic mapping, osprey optimization algorithm, Cauchy mutation and quantum behavior, which provides support for the dynamic characteristics analysis of CHP unit. The time dependence, local feature information and optimal parameter settings are fully considered in the comprehensive modeling scheme, which results in an accurate identification model for CHP unit under full operating conditions. Finally, the effectiveness of the proposed method is verified based on the actual operating data of a 350 MW CHP unit. The accuracy of established model is greater than 99.4 %, which can well reflect the nonlinear characteristics of the unit. Therefore, the built model can be used for controller design and simulation analysis.