Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/main/course/th/chapter2/section4_pt.ipynb
Views: 2554
Kernel: Unknown Kernel
Tokenizers (PyTorch)
Install the Transformers, Datasets, and Evaluate libraries to run this notebook.
In [ ]:
In [ ]:
['Jim', 'Henson', 'was', 'a', 'puppeteer']
In [ ]:
In [ ]:
In [ ]:
{'input_ids': [101, 7993, 170, 11303, 1200, 2443, 1110, 3014, 102],
'token_type_ids': [0, 0, 0, 0, 0, 0, 0, 0, 0],
'attention_mask': [1, 1, 1, 1, 1, 1, 1, 1, 1]}
In [ ]:
In [ ]:
['Using', 'a', 'transform', '##er', 'network', 'is', 'simple']
In [ ]:
[7993, 170, 11303, 1200, 2443, 1110, 3014]
In [ ]:
'Using a Transformer network is simple'