Skip to content

Commit

Permalink
delete unused arg taxonomy_path in leaf_node_to_samples
Browse files Browse the repository at this point in the history
Signed-off-by: Khaled Sulayman <[email protected]>
  • Loading branch information
khaledsulayman committed Jan 13, 2025
1 parent bab135c commit 3e0eed7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/instructlab/sdg/generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,6 @@ def generate_data(
leaf_node_path = leaf_node[0]["taxonomy_path"].replace("->", "_")
samples = leaf_node_to_samples(
leaf_node,
taxonomy,
server_ctx_size,
chunk_word_count,
document_output_dir,
Expand Down
2 changes: 0 additions & 2 deletions src/instructlab/sdg/utils/taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ def map_chunks_to_icls(chunks: List, leaf_node: Dict) -> Dataset:

def _knowledge_leaf_node_to_samples(
leaf_node,
taxonomy_path, # pylint: disable=unused-argument
server_ctx_size,
chunk_word_count,
document_output_dir,
Expand Down Expand Up @@ -480,7 +479,6 @@ def leaf_node_to_samples(
if leaf_node[0].get("documents"):
return _knowledge_leaf_node_to_samples(
leaf_node,
taxonomy_path,
server_ctx_size,
chunk_word_count,
document_output_dir,
Expand Down

0 comments on commit 3e0eed7

Please sign in to comment.