# Split: separate structure from state graphdef, state = nnx.split(model) # graphdef: the "blueprint" of the model (static) # state: the actual parameter values (dynamic, a pytree) # Merge: reconstruct the model from structure and state reconstructed_model = nnx.merge(graphdef, state) __ __