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

Tool for adding new synthetic columns #14

Merged
merged 11 commits into from
Jun 12, 2024
Merged

Conversation

farzadab
Copy link
Contributor

@farzadab farzadab commented Jun 7, 2024

This tools allows you to add new columns, by using a template and feeding it into gpt-4o to create a synthetic "ground-truth" response.

image

$ just enrich_ds -d fixie-ai/boolq-audio -s train -b with_explanation -c explanation -t $HF_WRITE_TOKEN

Loading dataset "fixie-ai/boolq-audio", new column name: "explanation", template:
Passage: {passage}

Question: {question}

Answer: {answer}

Provide a short explanation to the question given the passage that entails the answer.
Processing split "train"...

Map (num_proc=16): 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9427/9427 [16:47<00:00,  9.35 examples/s]

Copy link
Contributor

@juberti juberti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is neat! I kind of think we should integrate this into tts_tool (or maybe rename that to ds_tool) since most of the code seems to be the same. Wdyt?

@farzadab
Copy link
Contributor Author

farzadab commented Jun 7, 2024

I agree that it's best to integrate these two into the same file. I'll take a look to see if there's a way to combine them in a simplified manner.

@farzadab farzadab marked this pull request as ready for review June 11, 2024 23:33
@farzadab
Copy link
Contributor Author

PTAL

Copy link
Contributor

@juberti juberti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on this, turned out great.

ultravox/tools/ds_tool.py Outdated Show resolved Hide resolved
ultravox/tools/ds_tool.py Show resolved Hide resolved
ultravox/tools/ds_tool.py Outdated Show resolved Hide resolved
ultravox/tools/ds_tool.py Outdated Show resolved Hide resolved
ultravox/tools/ds_tool.py Outdated Show resolved Hide resolved
ultravox/tools/ds_tool.py Outdated Show resolved Hide resolved
ultravox/tools/ds_tool.py Outdated Show resolved Hide resolved
ultravox/tools/ds_tool.py Outdated Show resolved Hide resolved
@farzadab farzadab enabled auto-merge (squash) June 12, 2024 22:50
ultravox/tools/ds_tool.py Show resolved Hide resolved
@farzadab farzadab merged commit cabb4a2 into main Jun 12, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants