File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -134,10 +134,18 @@ def tokenize(self, path):
134
134
# -----------------------------
135
135
#
136
136
# This is a tutorial on dynamic quantization, a quantization technique
137
- # that is applied after a model has been trained. Therefore, we'll simply load some
138
- # pretrained weights into this model architecture; these weights were obtained
139
- # by training for five epochs using the default settings in the word language model
140
- # example.
137
+ # that is applied after a model has been trained. Therefore, we'll simply
138
+ # load some pretrained weights into this model architecture; these
139
+ # weights were obtained by training for five epochs using the default
140
+ # settings in the word language model example.
141
+ #
142
+ # Before running this tutorial, download the required pre-trained model:
143
+ #
144
+ # .. code-block:: bash
145
+ #
146
+ # wget https://s3.amazonaws.com/pytorch-tutorial-assets/word_language_model_quantize.pth
147
+ #
148
+ # Place the downloaded file in the data directory or update the model_data_filepath accordingly.
141
149
142
150
ntokens = len (corpus .dictionary )
143
151
You can’t perform that action at this time.
0 commit comments