Skip to content

Commit

Permalink
fix(docs): fixed a broken link to quantization guide (#1014)
Browse files Browse the repository at this point in the history
quantization guide link pointed to root /guides/dtype which would send the user all the way to the root of the url.


Clicking on the link from https://huggingface.co/docs/transformers.js/index took you to https://huggingface.co/guides/dtypes

Now takes you to the right page https://huggingface.co/docs/transformers.js/guides/dtypes
  • Loading branch information
ThomasWT authored Nov 6, 2024
1 parent bd839b9 commit bf2f7b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/snippets/1_quick-tour.snippet
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ In resource-constrained environments, such as web browsers, it is advisable to u
the model to lower bandwidth and optimize performance. This can be achieved by adjusting the `dtype` option,
which allows you to select the appropriate data type for your model. While the available options may vary
depending on the specific model, typical choices include `"fp32"` (default for WebGPU), `"fp16"`, `"q8"`
(default for WASM), and `"q4"`. For more information, check out the [quantization guide](/guides/dtypes).
(default for WASM), and `"q4"`. For more information, check out the [quantization guide](../guides/dtypes).
```javascript
// Run the model at 4-bit quantization
const pipe = await pipeline('sentiment-analysis', 'Xenova/distilbert-base-uncased-finetuned-sst-2-english', {
Expand Down

0 comments on commit bf2f7b1

Please sign in to comment.