-
Notifications
You must be signed in to change notification settings - Fork 240
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
runtime is extremely slow after new update #86
Comments
Hi, Can you share exact full code with sample examples? |
I'm having the same issue here, any solutions ?
|
@Hadjerkhd Hi, your max_completion_length is too high. sorry for the confusion the parameter Promptify/promptify/parser/parser.py Line 165 in a121b88
use |
I also have the same problem, except even running the For the sake of ease, here is the code snippet:
Even for this short example, it runs forever. The interesting observation is that if I shorten this example to:
it only take a second to run, but, if I leave in even couple more words:
again it runs forever! |
Weirdly it turns out, if the input is wrapped in triple quotes it runs just fine and very short span of time. |
14/7/2023 : successfully runing
`examples = [list of dictionnaries here as examples]
data = list_of_product_names
result = nlp_prompter.fit('ner.jinja',
domain = 'ecommerce',
text_input = f'{data}',
labels = ["NAME", "WEIGHT","VOLUME","COUNT"],
examples = examples)`
after the update of 17/7/2023 :
`examples = [list of dictionnaries here as examples]
data = list_of_product_names
model = OpenAI(api_key) # or
HubModel()
for Huggingface-based inference or 'Azure' etcprompter = Prompter('ner.jinja') # select a template or provide custom template
pipe = Pipeline(prompter , model)
result = pipe.fit(domain = 'ecommerce',
text_input = new_input,
labels = ["NAME", "WEIGHT","VOLUME","COUNT"],
examples = examples )`
the code block keeps running forever with no results, even with a short sentence.
when I take off
examples
it runs faster but it doesn't not yeild the desired output format.The text was updated successfully, but these errors were encountered: