Skip to content

Jupyter Notebook Progress Printing #1999

@jbirnick

Description

@jbirnick

I'm using GPTQModel within a Jupyter Notebook (a .ipynb file). I access the notebook through VSCode with the respective extensions (Python + Jupyter Notebook).

Now when I use pip install gptqmodel, then everything works fine. In particular, when I run model.quantize(calibration_dataset, batch_size=1) then it displays a nice table, that gets more and more rows, and on the bottom there is a progress bar which fills slowly.

Now however, I wanted to make some modifications to the repo, so I did:

git clone https://github.com/ModelCloud/GPTQModel
cd GPTQModel
pip install -e .

This installs the package as a local editable version. And of course it gives me the newest code from GitHub instead of just the latest release.

With this setup, however, I have an issue. When I now run model.quantize(calibration_dataset, batch_size=1) then:

  • There is no more nice table and filling progress bar.
  • Instead, I feel like this "update rendering" mechanism fails and I just see a lot of text (containing the progress bar) being outputted constantly.
  • The main problem: This freezes my VSCode. Then I have to terminate the process. So I can't use model.quantize(...) at all.

Do you have any ideas what could be the cause of this problem and how to fix it?

(I'm not sure if it's because of the latest GitHub code or because of the local installation.)

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