# Can Relax frontend convert bf16 scalar value?

**URL:** <https://discuss.tvm.apache.org/t/can-relax-frontend-convert-bf16-scalar-value/18520>\
**Category:** Questions\
**Created:** [August 7, 2025, 3:08pm UTC](https://discuss.tvm.apache.org/t/can-relax-frontend-convert-bf16-scalar-value/18520 "2025-08-07T15:08:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![myeongbo](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/myeongbo/32/2285_2.png) [@myeongbo](https://discuss.tvm.apache.org/u/myeongbo)\
**Post date:** [August 7, 2025, 3:08pm UTC](https://discuss.tvm.apache.org/t/can-relax-frontend-convert-bf16-scalar-value/18520/1 "2025-08-07T15:08:51Z")

</div>

I’m trying to convert LLM models including bf16 scalar value and it seems that relax.constant try to convert it to numpy which doesn’t natively support bf16 type.

> <https://github.com/apache/tvm/blob/3c189f015c2b5835db589c8f8686da17cab02bba/python/tvm/relax/expr.py#L1157>

Can anyone explain how relax frontend create a constant node from bf16 number?
