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

ValueError: Unable to parse the JSON object in walkthrough.ipynb #66

Open
Yumin-gd opened this issue Aug 5, 2024 · 0 comments
Open

Comments

@Yumin-gd
Copy link

Yumin-gd commented Aug 5, 2024

Description:

I am encountering the following error while running the walkthrough.ipynb tutorial in the this project:

ValueError: Unable to parse the JSON object: ‘[#A LIST WITH LONG CODES#]’ The error is: [14:57:57] [#TVM PATH#]/tvm/src/node/serialization.cc:318: JSONReader: cannot find field predicate

The error occurs when executing this specific code block:

from tvm import meta_schedule as ms

db = ms.database.create(work_dir="log_db")
with target, db, tvm.transform.PassContext(opt_level=3):
    mod_deploy = relax.transform.MetaScheduleApplyDatabase()(mod_deploy)

I noticed that this error was previously reported and supposedly fixed in PR #42, but I am still encountering it while using TVM version 0.18.dev0.

Steps to Reproduce:

  1. Clone the web-stable-diffusion repository.
  2. Install TVM 0.18.dev0 from source.
  3. Run the walkthrough.ipynb tutorial.

Environment:

  • TVM version: 0.18.dev0
  • Operating System: Ubuntu 20.04
  • Python version: 3.9

Questions:

  • Is this error still present in the latest versions of web-stable-diffusion and TVM?
  • The tutorial instructs to checkout the TVM-Unity branch, but it seems this branch no longer exists. Should I be using the main branch instead (which is what I currently have installed)?Does it relate to the error I encountered?
  • Are there any recommended workarounds or solutions for this issue?

Thank you for your assistance!

@Yumin-gd Yumin-gd changed the title ’ValueError: Unable to parse the JSON object‘ in walkthrough.ipynb ValueError: Unable to parse the JSON object in walkthrough.ipynb Aug 5, 2024
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

1 participant