Skip to content

Commit b228ffa

Browse files
authored
docs (#447)
1 parent f1a9b83 commit b228ffa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/smolagents/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,9 @@ def __call__(
411411

412412

413413
class TransformersModel(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.
415415
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.
417417
418418
> [!TIP]
419419
> 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

Comments
 (0)