Skip to content

Commit 8be921f

Browse files
authored
Announcing the default model used by the pipeline (with a link). (huggingface#13276)
1 parent a75db35 commit 8be921f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/transformers/pipelines/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ def pipeline(
408408
if model is None:
409409
# At that point framework might still be undetermined
410410
model = get_default_model(targeted_task, framework, task_options)
411+
logger.warning(f"No model was supplied, defaulted to {model} (https://huggingface.co/{model})")
411412

412413
# Config is the primordial information item.
413414
# Instantiate config if needed

0 commit comments

Comments
 (0)