Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
ed290b08
Unverified
Commit
ed290b08
authored
Aug 30, 2023
by
Lysandre Debut
Committed by
GitHub
Aug 30, 2023
Browse files
Remote tools are turned off (#25867)
parent
09dc9951
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
docs/source/en/transformers_agents.md
docs/source/en/transformers_agents.md
+5
-17
No files found.
docs/source/en/transformers_agents.md
View file @
ed290b08
...
@@ -206,24 +206,12 @@ This method can also take arguments if you would like to pass non-text types or
...
@@ -206,24 +206,12 @@ This method can also take arguments if you would like to pass non-text types or
### ⚠️ Remote execution
### ⚠️ Remote execution
For demonstration purposes and so that this can be used with all setups, we have created remote executors for several
For demonstration purposes and so that it could be used with all setups, we had created remote executors for several
of the default tools the agent has access. These are created using
of the default tools the agent has access for the release. These are created using
[
inference endpoints
](
https://huggingface.co/inference-endpoints
)
. To see how to set up remote executors tools yourself,
[
inference endpoints
](
https://huggingface.co/inference-endpoints
)
.
we recommend reading the
[
custom tool guide
](
./custom_tools
)
.
In order to run with remote tools, specifying
`remote=True`
to either [
`~Agent.run`
] or [
`~Agent.chat`
] is sufficient.
For example, the following command could be run on any device efficiently, without needing significant RAM or GPU:
```
py
agent
.
run
(
"Draw me a picture of rivers and lakes"
,
remote
=
True
)
```
The same can be said for [
`~Agent.chat`
]:
```
py
We have turned these off for now, but in order to see how to set up remote executors tools yourself,
agent
.
chat
(
"Draw me a picture of rivers and lakes"
,
remote
=
True
)
we recommend reading the
[
custom tool guide
](
./custom_tools
)
.
```
### What's happening here? What are tools, and what are agents?
### What's happening here? What are tools, and what are agents?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment