Skip to content

Commit

Permalink
remove unnecessary print statement from sdg_op
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Clifford <mcliffor@redhat.com>
  • Loading branch information
MichaelClifford committed Dec 2, 2024
1 parent 12c8f2a commit b9ecd61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1556,8 +1556,7 @@ deploymentSpec:
\ http_client=custom_http_client\n )\n else:\n client =\
\ openai.OpenAI(base_url=endpoint, api_key=api_key)\n\n taxonomy_base\
\ = \"main\" if repo_branch or (repo_pr and int(repo_pr) > 0) else \"empty\"\
\n\n print(\"Generating synthetic dataset for:\")\n print()\n print(read_taxonomy(taxonomy_path,\
\ taxonomy_base))\n\n set_precomputed_skills_data_ratio(sampling_size=sdg_sampling_size)\n\
\n\n set_precomputed_skills_data_ratio(sampling_size=sdg_sampling_size)\n\
\n # generate_data has a magic word for its taxonomy_base argument -\
\ 'empty'\n # it allows generating from the whole repo, see:\n # https://github.com/instructlab/sdg/blob/c6a9e74a1618b1077cd38e713b8aaed8b7c0c8ce/src/instructlab/sdg/utils/taxonomy.py#L230\n\
\ generate_data(\n client=client,\n num_instructions_to_generate=num_instructions_to_generate,\n\
Expand Down
4 changes: 0 additions & 4 deletions sdg/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ def set_precomputed_skills_data_ratio(sampling_size: float):

taxonomy_base = "main" if repo_branch or (repo_pr and int(repo_pr) > 0) else "empty"

print("Generating synthetic dataset for:")
print()
print(read_taxonomy(taxonomy_path, taxonomy_base))

set_precomputed_skills_data_ratio(sampling_size=sdg_sampling_size)

# generate_data has a magic word for its taxonomy_base argument - 'empty'
Expand Down

0 comments on commit b9ecd61

Please sign in to comment.