Skip to content

Commit

Permalink
Ignore disable_cuda_device_placement attribute for pipeline signature
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmbmb committed Aug 1, 2024
1 parent c776d36 commit d0fbd5d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/distilabel/pipeline/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,10 @@ def _create_signature(self) -> str:
elif isinstance(value, (list, tuple)):
# runtime_parameters_info
step_info += "-".join([str(v) for v in value])
elif isinstance(value, (int, str, float)):
# batch_size/name
step_info += str(value)
elif isinstance(value, (int, str, float, bool)):
if argument != "disable_cuda_device_placement":
# batch_size/name
step_info += str(value)
else:
raise ValueError(
f"Field '{argument}' in step '{step['name']}' has type {type(value)}, explicitly cast the type to 'str'."
Expand Down

0 comments on commit d0fbd5d

Please sign in to comment.