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

Resolve some trivial TODOs in generate_data() #74

Merged
merged 4 commits into from
Jul 3, 2024

Conversation

markmc
Copy link
Contributor

@markmc markmc commented Jul 3, 2024

Some pretty trivial changes to knock out some TODOs in generate_data()

commit 51df195

    Remove unused generate_data() parameters
    
    These parameters aren't being used by the only user of this method,
    and so they can be removed. They also aren't being used within
    generate_data().

commit e63bfbe

    Re-order generate_data() params to match CLI
    
    The CLI is the only user of this function, and we have some work
    to do to remove unused or defunct parameters. That's easier if
    they are listed in the same order as they are used!

commit 9d7c521

    Remove TODO about num_instructions_to_generate
    
    We have support for this parameter now.

commit 355ff30

    Remove defunct no-pipeline-defined error path
    
    We now have full and simple pipelines defined for knowledge, grounded
    skills, and freeform skills, so this error path can't be hit anymore.

markmc added 4 commits July 3, 2024 10:18
We now have full and simple pipelines defined for knowledge, grounded
skills, and freeform skills, so this error path can't be hit anymore.

Signed-off-by: Mark McLoughlin <[email protected]>
We have support for this parameter now.

Signed-off-by: Mark McLoughlin <[email protected]>
The CLI is the only user of this function, and we have some work
to do to remove unused or defunct parameters. That's easier if
they are listed in the same order as they are used!

Signed-off-by: Mark McLoughlin <[email protected]>
These parameters aren't being used by the only user of this method,
and so they can be removed. They also aren't being used within
generate_data().

Signed-off-by: Mark McLoughlin <[email protected]>
Copy link
Member

@russellb russellb 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. Thanks for doing the validation on which parameters are actually used. e2e passed, so I'm confident the basics of the interface with the CLI are still working fine

@russellb russellb merged commit bcb7974 into instructlab:main Jul 3, 2024
11 checks passed
@russellb russellb added this to the 0.1.0 milestone Jul 8, 2024
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