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

Unable to call model using perplexity #1

Open
amaze18 opened this issue May 2, 2024 · 0 comments
Open

Unable to call model using perplexity #1

amaze18 opened this issue May 2, 2024 · 0 comments

Comments

@amaze18
Copy link

amaze18 commented May 2, 2024

llm = PerplexityAILLM(api_key=pplx_api_key , model_name="mistral-7b-instruct")
model = llm


TypeError Traceback (most recent call last)

in <cell line: 1>()
----> 1 text_pipeline = pipeline(
2 "text2text-generation",
3 model=model,
4 tokenizer=tokenizer,
5 max_new_tokens=1024,

2 frames

/usr/local/lib/python3.10/dist-packages/transformers/utils/generic.py in infer_framework(model_class)
733 return "flax"
734 else:
--> 735 raise TypeError(f"Could not infer framework from class {model_class}.")

TypeError: Could not infer framework from class <class 'main.PerplexityAILLM'>.

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

1 participant