You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/smolagents/models.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -411,9 +411,9 @@ def __call__(
411
411
412
412
413
413
classTransformersModel(Model):
414
-
"""A class to interact with Hugging Face's Inference API for language model interaction.
414
+
"""A class that uses Hugging Face's Transformers library for language model interaction.
415
415
416
-
This model allows you to communicate with Hugging Face's models using the Inference API. It can be used in both serverless mode or with a dedicated endpoint, supporting features like stop sequences and grammar customization.
416
+
This model allows you to load and use Hugging Face's models locally using the Transformers library. It supports features like stop sequences and grammar customization.
417
417
418
418
> [!TIP]
419
419
> You must have `transformers` and `torch` installed on your machine. Please run `pip install smolagents[transformers]` if it's not the case.
0 commit comments