Skip to content

Commit

Permalink
fix pydoc
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshghorse committed Jul 20, 2023
1 parent 467e5dd commit 1a022d9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sdks/python/apache_beam/ml/inference/huggingface_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def __init__(
Use HuggingFaceModelHandlerKeyedTensor or HuggingFaceModelHandlerTensor.
Example Usage model::
pcoll | RunInference(HuggingFaceModelHandlerKeyedTensor(
model_uri="bert-base-uncased", model_class=AutoModelForMaskedLM))
pcoll | RunInference(HuggingFaceModelHandlerKeyedTensor(
model_uri="bert-base-uncased", model_class=AutoModelForMaskedLM))
Args:
model_uri (str): path to the pretrained model on the hugging face
Expand Down Expand Up @@ -266,8 +266,8 @@ class HuggingFaceModelHandlerKeyedTensor(
automatically.
Example Usage model::
pcoll | RunInference(HuggingFaceModelHandlerKeyedTensor(
model_uri="bert-base-uncased", model_class=AutoModelForMaskedLM))
pcoll | RunInference(HuggingFaceModelHandlerKeyedTensor(
model_uri="bert-base-uncased", model_class=AutoModelForMaskedLM))
**Supported Versions:** HuggingFaceModelHandler supports transformers>=4.18.0.
"""
Expand Down Expand Up @@ -367,8 +367,8 @@ class HuggingFaceModelHandlerTensor(HuggingFaceModelHandler[Union[tf.Tensor,
automatically.
Example Usage model:
pcoll | RunInference(HuggingFaceModelHandlerTensor(
model_uri="bert-base-uncased", model_class=AutoModelForMaskedLM))
pcoll | RunInference(HuggingFaceModelHandlerTensor(
model_uri="bert-base-uncased", model_class=AutoModelForMaskedLM))
**Supported Versions:** HuggingFaceModelHandler supports transformers>=4.18.0.
"""
Expand Down

0 comments on commit 1a022d9

Please sign in to comment.