Skip to content

Commit d7f75dd

Browse files
authored
Fix typos
2 parents 606771e + 2bc3953 commit d7f75dd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ mkdir tmp2/
151151
HF_MODEL_ID="distilbert/distilbert-base-uncased-finetuned-sst-2-english" HF_TASK="text-classification" HF_OPTIMUM_BATCH_SIZE=1 HF_OPTIMUM_SEQUENCE_LENGTH=128 HF_MODEL_DIR=tmp2 uvicorn src.huggingface_inference_toolkit.webservice_starlette:app --port 5000
152152
```
153153

154-
- sentence transformers `feature-extration` with `HF_OPTIMUM_BATCH_SIZE` and `HF_OPTIMUM_SEQUENCE_LENGTH`
154+
- sentence transformers `feature-extraction` with `HF_OPTIMUM_BATCH_SIZE` and `HF_OPTIMUM_SEQUENCE_LENGTH`
155155

156156
```bash
157157
HF_MODEL_ID="sentence-transformers/all-MiniLM-L6-v2" HF_TASK="feature-extraction" HF_OPTIMUM_BATCH_SIZE=1 HF_OPTIMUM_SEQUENCE_LENGTH=128 HF_MODEL_DIR=tmp2 uvicorn src.huggingface_inference_toolkit.webservice_starlette:app --port 5000
@@ -203,7 +203,7 @@ The Hugging Face Inference Toolkit implements various additional environment var
203203
### `HF_MODEL_DIR`
204204

205205
The `HF_MODEL_DIR` environment variable defines the directory where your model is stored or will be stored.
206-
If `HF_MODEL_ID` is not set the toolkit expects a the model artifact at this directory. This value should be set to the value where you mount your model artifacts.
206+
If `HF_MODEL_ID` is not set the toolkit expects a model artifact at this directory. This value should be set to the value where you mount your model artifacts.
207207
If `HF_MODEL_ID` is set the toolkit and the directory where `HF_MODEL_DIR` is pointing to is empty. The toolkit will download the model from the Hub to this directory.
208208

209209
The default value is `/opt/huggingface/model`
@@ -214,7 +214,7 @@ HF_MODEL_ID="/opt/mymodel"
214214

215215
### `HF_TASK`
216216

217-
The `HF_TASK` environment variable defines the task for the used Transformers pipeline or Sentence Transformers. A full list of tasks can be find in [supported & tested task section](#supported--tested-tasks)
217+
The `HF_TASK` environment variable defines the task for the used Transformers pipeline or Sentence Transformers. A full list of tasks can be found in [supported & tested task section](#supported--tested-tasks)
218218

219219
```bash
220220
HF_TASK="question-answering"
@@ -238,7 +238,7 @@ HF_REVISION="03b4d196c19d0a73c7e0322684e97db1ec397613"
238238

239239
### `HF_HUB_TOKEN`
240240

241-
The `HF_HUB_TOKEN` environment variable defines the your Hugging Face authorization token. The `HF_HUB_TOKEN` is used as a HTTP bearer authorization for remote files, like private models. You can find your token at your [settings page](https://huggingface.co/settings/token).
241+
The `HF_HUB_TOKEN` environment variable defines your Hugging Face authorization token. The `HF_HUB_TOKEN` is used as a HTTP bearer authorization for remote files, like private models. You can find your token at your [settings page](https://huggingface.co/settings/token).
242242

243243
```bash
244244
HF_HUB_TOKEN="api_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
@@ -254,7 +254,7 @@ HF_TRUST_REMOTE_CODE="0"
254254

255255
### `HF_FRAMEWORK`
256256

257-
The `HF_FRAMEWORK` environment variable defines the base deep learning framework used in the container. This is important when loading large models from the Hugguing Face Hub to avoid extra file downloads.
257+
The `HF_FRAMEWORK` environment variable defines the base deep learning framework used in the container. This is important when loading large models from the Hugging Face Hub to avoid extra file downloads.
258258

259259
```bash
260260
HF_FRAMEWORK="pytorch"

src/huggingface_inference_toolkit/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
3838

3939
# diffusers and sentence transformers pipelines do not have the `task` arg
4040
if not hasattr(self.pipeline, "task"):
41-
# sentence transformers paramters not supported yet
41+
# sentence transformers parameters not supported yet
4242
if any(isinstance(self.pipeline, v) for v in SENTENCE_TRANSFORMERS_TASKS.values()):
4343
return ( # type: ignore
4444
self.pipeline(**inputs) if isinstance(inputs, dict) else self.pipeline(inputs)

tests/unit/test_vertex_ai_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
def test__load_repository_from_gcs():
55
"""Tests the `_load_repository_from_gcs` function against a public artifact URI. But the
6-
function is overriden since the client needs to be anonymous temporarily, as we're testing
6+
function is overridden since the client needs to be anonymous temporarily, as we're testing
77
against a publicly accessible artifact.
88
99
References:

0 commit comments

Comments
 (0)