diff --git a/docs/source/models/enabling_multimodal_inputs.rst b/docs/source/models/enabling_multimodal_inputs.rst index 599f43704e60a..20be920b5f699 100644 --- a/docs/source/models/enabling_multimodal_inputs.rst +++ b/docs/source/models/enabling_multimodal_inputs.rst @@ -28,7 +28,7 @@ Further update the model as follows: The model class does not have to be named :code:`*ForCausalLM`. Check out `the HuggingFace Transformers documentation `__ for some examples. -- In the :meth:`~torch.nn.Module.forward` method, reserve a keyword parameter +- If you haven't already done so, reserve a keyword parameter in :meth:`~torch.nn.Module.forward` for each input tensor that corresponds to a multi-modal input, as shown in the following example: .. code-block:: diff