Promptify
Promptify copied to clipboard
Error when using fit() with a huggingface model
I am trying to follow the examples for using promptify with huggingface, but I run into this error trying to run the code:
library was installed directly from github and everything from requirements.txt is installed
I'm facing the same issue.
I have fixed the issue, Please check now :)
Thank you @monk1337. I see a new error popping up as below: ( not sure if I need to raise a new issue for this)
The steps to repro for this are exactly the same as for the initial issue. Thanks!
Any updates on this? Getting the same error with google/flan-t5-xl
With facebook/mbart-large-50, getting the following error:

set max_new_tokens=None
example
model = HubModel(api_key = "", max_new_tokens=None)
Similar error
from promptify import Prompter, HubModel, Pipeline
sentence = "are left and right twix the same thing"
model = HubModel()
prompter = Prompter('ner.jinja') # select a template or provide custom template
pipe = Pipeline(prompter , model)
result = pipe.fit(sentence,
domain = 'all',
labels = None)
print(result)
Error
Error in generating prompt: Model not found. Please choose the model from : ['text-davinci-003', 'gpt-3.5-turbo', 'gpt-35-turbo', 'claude-instant-1', 'claude-2', 'command', 'command-light', 'command-medium-beta', 'command-nightly', 'command-xlarge-beta']
Promptify installed by
pip3 install git+https://github.com/promptslab/Promptify.git
Similar error
from promptify import Prompter, HubModel, Pipeline sentence = "are left and right twix the same thing" model = HubModel() prompter = Prompter('ner.jinja') # select a template or provide custom template pipe = Pipeline(prompter , model) result = pipe.fit(sentence, domain = 'all', labels = None) print(result)
Error
Error in generating prompt: Model not found. Please choose the model from : ['text-davinci-003', 'gpt-3.5-turbo', 'gpt-35-turbo', 'claude-instant-1', 'claude-2', 'command', 'command-light', 'command-medium-beta', 'command-nightly', 'command-xlarge-beta']
Promptify installed by
pip3 install git+https://github.com/promptslab/Promptify.git
Same error, same code only model settings differs:
model = HubModel(model="cointegrated/rut5-base", max_new_tokens=None)
Same error, any updates on this?