Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LLaMA2-7b] Warning: The shape inference of opmx::ParallelEmbedding type is missing, so it may result in wrong shape inference for the exported graph. Please consider adding it in symbolic function. (function UpdateReliable) #82

Closed
syheliel opened this issue May 31, 2024 · 1 comment

Comments

@syheliel
Copy link
Contributor

script:

popd ./model_zoo/llama/facebook/
export MP=1
OMP_NUM_THREADS=${MP} torchrun --nproc_per_node ${MP} \
Export.py --ckpt_dir /data/model_weight/llama/llama-2-7b/ \
--tokenizer_path /data/model_weight/llama/tokenizer.model \
--export_path ./out \
--fused_qkv 1 --fused_kvcache 1 --auto_causal 1 \
--quantized_cache 1 --dynamic_batching 1 

warning:

Loaded: layers.27.attention.wv.weight -> layers.27.attention.wqkv.weight[torch.Size([4096, 4096])]
Loaded: layers.27.attention.wo.weight -> layers.27.attention.wo.weight[torch.Size([4096, 4096])]
Loaded: layers.27.feed_forward.w1.weight -> layers.27.feed_forward.wu.weight[torch.Size([11008, 4096])]
Loaded: layers.27.feed_forward.w2.weight -> layers.27.feed_forward.w2.weight[torch.Size([4096, 11008])]
[ignore]
Loaded: layers.31.ffn_norm.weight -> layers.31.ffn_norm.weight[torch.Size([4096])]
rope.freqs is not loaded.
Loaded in 9.71 seconds
[rank0]:[W shape_type_inference.cpp:1973] Warning: The shape inference of opmx::ParallelEmbedding type is missing, so it may result in wrong shape inference for the exported graph. Please consider adding it in symbolic function. (function UpdateReliable)
[rank0]:[W shape_type_inference.cpp:1973] Warning: The shape inference of opmx::ColumnParallelLinear type is missing, so it may result in wrong shape inference for the exported graph. Please consider adding it in symbolic function. (function UpdateReliable)
[rank0]:[W shape_type_inference.cpp:1973] Warning: The shape inference of opmx::Reshape type is missing, so it may result in wrong shape inference for the exported graph. Please consider adding it in symbolic function. (function UpdateReliable)
[ignore]
[rank0]:[W shape_type_inference.cpp:1973] Warning: The shape inference of opmx::ColumnParallelLinear type is missing, so it may result in wrong shape inference for the exported graph. Please consider adding it in symbolic function. (function UpdateReliable)
@Alcanderian
Copy link
Collaborator

Just ignore these warning, we do not need the shape inference for the exported graph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants