Promptify icon indicating copy to clipboard operation
Promptify copied to clipboard

Error when using fit() with a huggingface model

Open isaac-murphy opened this issue 1 year ago • 8 comments

I am trying to follow the examples for using promptify with huggingface, but I run into this error trying to run the code:

image

library was installed directly from github and everything from requirements.txt is installed

collab notebook with reproduceable error

isaac-murphy avatar Apr 14 '23 12:04 isaac-murphy

I'm facing the same issue.

indi4u avatar Apr 16 '23 04:04 indi4u

I have fixed the issue, Please check now :)

monk1337 avatar Apr 16 '23 06:04 monk1337

Thank you @monk1337. I see a new error popping up as below: ( not sure if I need to raise a new issue for this) image

The steps to repro for this are exactly the same as for the initial issue. Thanks!

indi4u avatar Apr 17 '23 06:04 indi4u

Any updates on this? Getting the same error with google/flan-t5-xl

With facebook/mbart-large-50, getting the following error:

Screenshot 2023-04-19 183232

heraclitus007 avatar Apr 19 '23 12:04 heraclitus007

set max_new_tokens=None

example

model = HubModel(api_key = "", max_new_tokens=None)

monk1337 avatar Apr 19 '23 13:04 monk1337

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

ermaxinc avatar Jul 18 '23 13:07 ermaxinc

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)

rajanant avatar Aug 03 '23 09:08 rajanant

Same error, any updates on this?

vreamer avatar Dec 13 '23 21:12 vreamer