Skip to content

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

Open
@Yumin-gd

Description

@Yumin-gd

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions