mirror of https://github.com/hpcaitech/ColossalAI
[hotfix] add recompile after graph manipulatation (#1621)
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