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

Minor unitxt fixes #2553

Merged
merged 3 commits into from
Apr 5, 2024
Merged

Minor unitxt fixes #2553

merged 3 commits into from
Apr 5, 2024

Conversation

yifanmai
Copy link
Collaborator

@yifanmai yifanmai commented Apr 4, 2024

  • Rename files to follow existing conventions
  • Set max_train_instances to 0 because unitxt handles training instance selection
  • Fix AdapterSpec for unitxt
  • Add run_entries_unitxt.conf
  • Fix .gitignore to only ignore configuration files at root

@yifanmai yifanmai requested a review from farzaank April 4, 2024 01:09
@@ -15,7 +15,7 @@ def get_unitxt_spec(**kwargs) -> RunSpec:
name_suffix = ",".join([f"{key}={value}" for key, value in kwargs.items()])
name = f"unitxt:{name_suffix}"
scenario_spec = ScenarioSpec(class_name="helm.benchmark.scenarios.unitxt_scenario.UnitxtScenario", args=kwargs)
adapter_spec = get_generation_adapter_spec()
adapter_spec = get_generation_adapter_spec(max_train_instances=0)
Copy link
Contributor

@elronbandel elronbandel Apr 4, 2024

Choose a reason for hiding this comment

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

Can we set this things here as well @yifanmai ?

    method: str = ""
    global_prefix: str = ""
    instructions: str = ""
    input_prefix: str = ""
    input_suffix: str = ""
    reference_prefix: str = "A. "
    reference_suffix: str = ""
    output_prefix: str = ""
    output_suffix: str = ""
    instance_prefix: str = ""

Copy link
Contributor

@elronbandel elronbandel left a comment

Choose a reason for hiding this comment

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

If possible can you address my comment on the code? This will be really useful for us. otherwise just ignore this

@yifanmai
Copy link
Collaborator Author

yifanmai commented Apr 5, 2024

@elronbandel thanks for the advice. I fixed the AdapterSpec.

Also note that you might still see weird prefixes and suffixed if you use certain Google / OpenAI / Mistral models, this will be fixed by #2550.

@yifanmai yifanmai merged commit f33d1c1 into main Apr 5, 2024
6 checks passed
@yifanmai yifanmai deleted the yifanmai/fix-unitxt-filename branch April 5, 2024 05:24
@elronbandel
Copy link
Contributor

Thanks @yifanmai !

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.

3 participants