mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-21 13:11:27 +00:00
[hotfix] add recompile after graph manipulatation (#1621)
This commit is contained in:
parent
d967779a32
commit
9eae855408
@ -65,6 +65,7 @@ def check_apply(rank, world_size, port):
|
||||
solution = list(ret[0])
|
||||
sharding_spec_dict, origin_spec_dict = solution_annotatation_pass(gm, solution, device_mesh)
|
||||
shape_consistency_pass(gm)
|
||||
gm.recompile()
|
||||
nodes = [node for node in gm.graph.nodes]
|
||||
# TODO: wrap the gm to avoid the influence of the user training code
|
||||
output = gm(input, sharding_spec_dict, origin_spec_dict)
|
||||
|
Loading…
Reference in New Issue
Block a user