Skip to content

Commit 1554717

Browse files
authored
Update dynamic_quantization_bert_tutorial.rst (#3239)
Update links in dynamic quantization bert tutorial
1 parent 3c565ca commit 1554717

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

intermediate_source/dynamic_quantization_bert_tutorial.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ the following helper functions: one for converting the text examples
138138
into the feature vectors; The other one for measuring the F1 score of
139139
the predicted result.
140140

141-
The `glue_convert_examples_to_features <https://github.com/huggingface/transformers/blob/master/transformers/data/processors/glue.py>`_ function converts the texts into input features:
141+
The `glue_convert_examples_to_features <https://github.com/huggingface/transformers/blob/main/src/transformers/data/datasets/glue.py>`_ function converts the texts into input features:
142142

143143
- Tokenize the input sequences;
144144
- Insert [CLS] in the beginning;
@@ -147,7 +147,7 @@ The `glue_convert_examples_to_features <https://github.com/huggingface/transform
147147
- Generate token type ids to indicate whether a token belongs to the
148148
first sequence or the second sequence.
149149

150-
The `glue_compute_metrics <https://github.com/huggingface/transformers/blob/master/transformers/data/processors/glue.py>`_ function has the compute metrics with
150+
The `glue_compute_metrics <https://github.com/huggingface/transformers/blob/main/src/transformers/data/metrics/__init__.py#L60>`_ function has the compute metrics with
151151
the `F1 score <https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html>`_, which
152152
can be interpreted as a weighted average of the precision and recall,
153153
where an F1 score reaches its best value at 1 and worst score at 0. The
@@ -273,7 +273,7 @@ We load the tokenizer and fine-tuned BERT sequence classifier model
273273
2.3 Define the tokenize and evaluation function
274274
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
275275

276-
We reuse the tokenize and evaluation function from `HuggingFace <https://github.com/huggingface/transformers/blob/master/examples/run_glue.py>`_.
276+
We reuse the tokenize and evaluation function from `HuggingFace <https://github.com/huggingface/transformers/blob/main/examples/legacy/pytorch-lightning/run_glue.py>`_.
277277

278278
.. code:: python
279279

0 commit comments

Comments
 (0)