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

[Bug]: Generate button throws error about RuntimeError: tensors must be 2-D #11

Open
thesobercoder opened this issue Mar 4, 2023 · 3 comments

Comments

@thesobercoder
Copy link

When I click on the generate button, it shows me an error saying RuntimeError: tensors must be 2-D. I'm running it on an Apple Mac Studio with M1 Max 32C GPU and 32 GB RAM. I cloned the repository and enabled the plugin just today.

@legendPerceptor
Copy link

Same issue. Tried just now.

@piiq
Copy link

piiq commented Mar 19, 2023

mac launch script ships torch 1.12. i see the same behaviour on my macbook.
i've tried updating torch to 1.13.1 and the error was resolved
try it to see of it helps

in your webui folder activate the virtual environment and install newer torch

source venv/bin/activate
pip install -U "torch>=1.13,<2"

@abdllhbyrktr
Copy link

Please select the device for text generation as "cpu" in the settings of Promptgen.
@thesobercoder @legendPerceptor

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

4 participants