Segmentation fault when running SimAI_simulator
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 184
- Avg merge
- 13h 4m
- Merged PRs (30d)
- 1
Description
Hi,
The program throws "Segmentation fault" when running SimAI_simulator. I am using the Mixtral_8*7 MoE workload file generated from AICB and the provided topo Spectrum-X_128g_8gps_100Gbps_A100, and the standard conf SimAI.conf. The program throws segfault after processing layer 7.
chunk size is: 8192 , size is: 8192 , layer_num is: 6 , node: 0
info: all-gather forward pass collective issued for layer: mlp_moelayer, involved dimensions: 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
***** info: fwd pass comm collective for layer: mlp_moelayer is finished************
chunk size is: 8388608 , size is: 8388608 , layer_num is: 7 , node: 0
info: all-to-all forward pass collective issued for layer: mlp_moelayer, involved dimensions: 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
Segmentation fault (core dumped)
Any help is appreciated!
Workload file ~10 lines
HYBRID_TRANSFORMER_FWD_IN_BCKWD model_parallel_NPU_group: 4 ep: 1 pp: 1 vpp: 32 ga: 8 all_gpus: 512 checkpoints: 0 checkpoint_initiates: 0 pp_comm: 0
2338
grad_norm -1 1 ALLGATHER 3505913856 1 NONE 0 1 REDUCESCATTER 7011827712 100
moe_grad_norm1 -1 1 NONE 0 1 NONE 0 1 ALLGATHER_DP_EP 1879048192 100
moe_grad_norm2 -1 1 NONE 0 1 NONE 0 1 REDUCESCATTER_DP_EP 3758096384 100
embedding_layer -1 1 NONE 33554432 1 NONE 33554432 1 NONE 0 100
attention_column -1 1 ALLGATHER 33554432 1 NONE 0 1 NONE 0 100
attention_row -1 1 REDUCESCATTER 33554432 1 NONE 33554432 1 NONE 0 100
mlp_moelayer -1 1 ALLGATHER 8192 1 ALLGATHER 8192 1 NONE 0 100
mlp_moelayer -1 1 ALLTOALL 8388608 1 ALLTOALL 8388608 1 NONE 0 100
mlp_moelayer -1 1 ALLTOALL_EP 8388608 1 ALLTOALL_EP 8388608 1 NONE 0 100
mlp_moelayer -1 1 ALLGATHER 8388608 1 ALLGATHER 33554432 1 NONE 0 100
mlp_moelayer -1 1 REDUCESCATTER 8388608 1 ALLGATHER 8388608 1 NONE 0 100
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce SimAI_simulator with the Mixtral_8*7 MoE workload generated from AICB, the Spectrum-X_128g_8gps_100Gbps_A100 topology, and standard SimAI.conf. Start at the all-to-all mlp_moelayer operation after layer 7 and use the provided log and workload entries to isolate the failing path; done means the simulator no longer segfaults for this configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100