You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
When working on this notebook (#949), I encountered that with the dev branch, the task wasn't working.
labels_topic= ["World", "Sports", "Sci/Tech", "Business"]
labels_fact_opinion= ["Fact-based", "Opinion-based"]
task_templates= [
"Determine the news article as {}",
"Classify news article as {}",
"Identify the news article as {}",
"Categorize the news article as {}",
"Label the news article using {}",
"Annotate the news article based on {}",
"Determine the theme of a news article from {}",
"Recognize the topic of the news article as {}",
]
classification_tasks= [
{"task": action.format(" or ".join(random.sample(labels_topic, 2)))}
foractionintask_templatesfor_inrange(4)
] + [
{"task": action.format(" or ".join(random.sample(labels_fact_opinion, 2)))}
foractionintask_templates
]
difficulties= ["college", "high school", "PhD"]
clarity= ["clear", "understandable with some effort", "ambiguous"]
withPipeline("texcat-generation-pipeline") aspipeline:
tasks_generator=LoadDataFromDicts(data=classification_tasks)
generate_data= []
fordifficultyindifficulties:
forclarity_levelinclarity:
task=GenerateTextClassificationData(
language="English",
difficulty=difficulty,
clarity=clarity_level,
num_generations=2,
llm=InferenceEndpointsLLM(
model_id="meta-llama/Meta-Llama-3.1-8B-Instruct",
tokenizer_id="meta-llama/Meta-Llama-3.1-8B-Instruct",
generation_kwargs={"max_new_tokens": 512, "temperature": 0.7},
),
input_batch_size=5,
)
generate_data.append(task)
fortaskingenerate_data:
tasks_generator.connect(task)
Expected behaviour
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Package version: 1.4dev
Python version: 3.11.4
Additional context
Add any other context about the problem here.
Note: Already shared on Slack, just realized I didn't create an issue
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
When working on this notebook (#949), I encountered that with the dev branch, the task wasn't working.
Maybe related to this one too: #991
To Reproduce
Code to reproduce
Expected behaviour
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Note: Already shared on Slack, just realized I didn't create an issue
The text was updated successfully, but these errors were encountered: