Skip to content

running the QTIP inference code #49

@tsengalb99

Description

@tsengalb99

@turboderp I noticed you guys had some trouble running our inference code. The main blocker is usually installing fast-hadamard-transform due to a ninja issue. The way I set up the environment is:

  1. Create a new conda env
  2. Install torch and ninja=1.11.1 (not 1.11.4 or whatever the latest is)
  3. Clone fast-hadamard-transform, cd into it, and run python setup.py install (alternatively, pip install -e . also works)
  4. Install the qtip kernels. Cd into the qtip-kernels folder and run python setup.py install
  5. Install everything else in requirements.txt

To generate text with our kernels, run interactive_gen.py with the commands in the repo. To evaluate perplexity and zeroshot performance, use the scripts in the eval folder.

Also, feel free to reach out to me ([email protected]) if you have any questions about QTIP. We're excited to see our stuff adopted in bigger projects!

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