# Mlc-llm build error

**URL:** <https://discuss.tvm.apache.org/t/mlc-llm-build-error/14985>\
**Category:** Development\
**Created:** [May 23, 2023, 10:21am UTC](https://discuss.tvm.apache.org/t/mlc-llm-build-error/14985 "2023-05-23T10:21:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_newer](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@A\_newer](https://discuss.tvm.apache.org/u/A_newer)\
**Post date:** [May 23, 2023, 10:21am UTC](https://discuss.tvm.apache.org/t/mlc-llm-build-error/14985/1 "2023-05-23T10:21:38Z")

</div>

I followed instructions in [mlc-llm/cpp at main · mlc-ai/mlc-llm · GitHub](https://github.com/mlc-ai/mlc-llm/tree/main/cpp).

When running “python3 build.py --model /mnt/e/llm/vicuna-v1-7b --quantization q3f16\_0 --max-seq-len 768”. I got an error:

Check failed: (opt\_max\_thread\_per\_block.defined()) is false: max\_num\_threads is not set for target llvm -keys=cpu

---

<div class="post-metadata">

**Author:** ![Hzfengsy](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/hzfengsy/32/2961_2.png) [@Hzfengsy](https://discuss.tvm.apache.org/u/Hzfengsy)\
**Post date:** [May 23, 2023, 12:13pm UTC](https://discuss.tvm.apache.org/t/mlc-llm-build-error/14985/2 "2023-05-23T12:13:12Z")

</div>

Got fixed in [https://github.com/mlc-ai/mlc-llm/pull/219](https://github.com/mlc-ai/mlc-llm/pull/219)

---

<div class="post-metadata">

**Author:** ![A\_newer](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@A\_newer](https://discuss.tvm.apache.org/u/A_newer)\
**Post date:** [May 23, 2023, 12:46pm UTC](https://discuss.tvm.apache.org/t/mlc-llm-build-error/14985/3 "2023-05-23T12:46:41Z")

</div>

OK, Thanks.

At least 20 characters.
