Compile model failed - Hint: "pip install tlcpack[tvmc]"

Hello,

During compilation of model, I’m getting following error:

Package "tvm.relay.testing.tf" is not installed. Hint: "pip install tlcpack[tvmc]".

I think that this package is not available through pip/pypi:

$ pip install tlcpack                                                          
ERROR: Could not find a version that satisfies the requirement tlcpack (from versions: none)
ERROR: No matching distribution found for tlcpack

@pfk123 Have you tried to install it from https://tlcpack.ai/ ? Accordingly to what’s discussed in: Introduction to Apache TVM with TVMC: A Command Line Driver for TVM - TVMCon 2021 - YouTube , starting from 8:00.

1 Like

@gromero didn’t see this pip-install-generator site, but I think that I solved problem. I have installed Pytest and Pillow in the virtualenv, and it starts working correctly. Looks like a little bug in current main branch.

@pfk123 I think the message is not correct. I’ll see to have that fixed. In the meantime, can you give the command line you execute to get that message, and also tell s how you installed your TVM/tlcpack originally?

Thanks.

@leandron I have solved this problem today by installing Pytest and Pillow in virtualenv. This problem was caused during model compilation and tuning via rpc.

Understood. There is still a bug somewhere, because we shouldn’t require pytest to run TVM. If you observe this again, please just create an issue at https://github.com/apache/tvm/issues

@leandron I have posted traceback in proper place, and I have submitted my first issue on tvm: https://github.com/apache/tvm/issues/10167

Thanks!

1 Like