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
423eb5b1
Unverified
Commit
423eb5b1
authored
Aug 16, 2020
by
Stas Bekman
Committed by
GitHub
Aug 17, 2020
Browse files
[doc] fix invalid env vars (#6504)
- remove invalid `ENV_` prefix. - add a few ':' while at it
parent
3c72f558
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/source/installation.md
docs/source/installation.md
+4
-4
No files found.
docs/source/installation.md
View file @
423eb5b1
...
...
@@ -22,13 +22,13 @@ When TensorFlow 2.0 and/or PyTorch has been installed, 🤗 Transformers can be
pip
install
transformers
```
Alternatively, for CPU-support only, you can install 🤗 Transformers and PyTorch in one line with
Alternatively, for CPU-support only, you can install 🤗 Transformers and PyTorch in one line with
:
```
bash
pip
install
transformers[torch]
```
or 🤗 Transformers and TensorFlow 2.0 in one line with
or 🤗 Transformers and TensorFlow 2.0 in one line with
:
```
bash
pip
install
transformers[tf-cpu]
...
...
@@ -73,8 +73,8 @@ This library provides pretrained models that will be downloaded and cached local
folder given by the shell environment variable
``TRANSFORMERS_CACHE``
. The default value for it will be the PyTorch
cache home followed by
``/transformers/``
(even if you don't have PyTorch installed). This is (by order of priority):
*
shell environment variable
``
ENV_
TORCH_HOME``
*
shell environment variable
``
ENV_
XDG_CACHE_HOME``
+
``/torch/``
*
shell environment variable
``TORCH_HOME``
*
shell environment variable
``XDG_CACHE_HOME``
+
``/torch/``
*
default:
``~/.cache/torch/``
So if you don't have any specific environment variable set, the cache directory will be at
...
...
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