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

Text Generation in Colab #8

Open
elliotthwang opened this issue May 18, 2022 · 2 comments
Open

Text Generation in Colab #8

elliotthwang opened this issue May 18, 2022 · 2 comments

Comments

@elliotthwang
Copy link

Hi !
Text Generation in Colab
AttributeError Traceback (most recent call last)
in ()
1 from transformers.pipelines import pipeline
----> 2 from mkultra.inference import GPT2SoftPromptLM
3 from mkultra.tokenizers import GPT2SPTokenizerFast
4 from mkultra.soft_prompt import SoftPrompt
5 import torch

/usr/local/lib/python3.7/dist-packages/mkultra/inference.py in ()
10
11 for model in EXTRA_ALLOWED_MODELS:
---> 12 if model not in TextGenerationPipeline.ALLOWED_MODELS:
13 TextGenerationPipeline.ALLOWED_MODELS.append(model)
14

AttributeError: type object 'TextGenerationPipeline' has no attribute 'ALLOWED_MODELS'

@Tomik292
Copy link

I am facing the same issue!

@Tomik292
Copy link

I was able to the fix the problem using older version of transformers==4.15.0.

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

2 participants