pytorch / pytorch/executorch

build error when generate llama2 exe file in x86 computer

Open
#6,431 5 comments 0 reactions 2 assignees View on GitHub

@tarun292 is already working on this.

Since Oct 23, 2024.

module: llm triaged
Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

🐛 Describe the bug

when I prepare a llama2 exe file as https://github.com/pytorch/executorch/blob/main/examples/models/llama/README.md#step-4-run-on-your-computer-to-validate description, however there are some issues. The description is as follow:

cmake --build cmake-out/examples/models/llama2 -j16 --config Release
/usr/bin/ld: cannot find -lcpublas: No such file or directory
/usr/bin/ld: cannot find -leigen_blas: No such file or directory
collect2: error: ld returned 1 exit status

how can I fix the issue?
Thank you very much in advanced.

Versions

cmake --build cmake-out/examples/models/llama2 -j16 --config Release
/usr/bin/ld: cannot find -lcpublas: No such file or directory
/usr/bin/ld: cannot find -leigen_blas: No such file or directory
collect2: error: ld returned 1 exit status

cc @mergennachin @cccclai @helunwencser @dvorjackz

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.