The formation of a hexagonal diamond represents one of the most intriguing questions in materials science. Under shock conditions, the graphite basal plane tends to slide and pucker to form diamond. However, how the shock strength determines the phase selectivity remains unclear. In this work, using a DFT-trained carbon global neural network model, we studied the shock-induced graphite transition. The poor sliding caused by scarce sliding time under high-strength shock leads to metastable hexagonal diamond with an orientation relationship of (001)