📥 Content Hub
← назад
patents ⚡ Google Patents en 2026-09-08 1 min

Model training method and device, electronic equipment, storage medium and computer program product

Патент · CN B

CN-120806026-B
приоритет 2025-06-30 подача 2025-06-30 публикация 2026-09-08 выдача 2026-09-08 семья 97318694
patents-ai
摩尔线程智能科技(北京)股份有限公司

The present disclosure relates to a model training method and apparatus, an electronic device, a storage medium and a computer program product, the method comprising determining a checkpoint module in a target model; in the backward propagation stage, if the last layer included in the check point module is a Flash Attention layer, skipping the forward recalculation of the Flash Attention layer, determining the gradient of the Flash Attention layer according to a preset Flash Attention backward algorithm, and executing the forward recalculation to other network layers in the check point module to determine the corresponding gradient. According to the embodiment of the invention, the redundant calculation overhead of the Flash Attention layer forward recalculation can be saved, and the training efficiency is effectively improved.

Читать оригинал ↗

Сделать контент из этого материала