AresEkb commited on
Commit
5edd3a1
·
1 Parent(s): cdc58ef

Update test.ipynb

Browse files
Files changed (1) hide show
  1. test.ipynb +19 -7
test.ipynb CHANGED
@@ -1,7 +1,19 @@
1
- from transformers import AutoTokenizer, AutoModelWithLMHead
2
-
3
- tokenizer = AutoTokenizer.from_pretrained("codeparrot/codeparrot")
4
- model = AutoModelWithLMHead.from_pretrained("codeparrot/codeparrot")
5
-
6
- inputs = tokenizer("def hello_world():", return_tensors="pt")
7
- outputs = model(**inputs)
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": null,
6
+ "metadata": {},
7
+ "outputs": [],
8
+ "source": [
9
+ "# Transformers installation\n",
10
+ "! pip install transformers datasets\n",
11
+ "# To install from source instead of the last release, comment the command above and uncomment the following one.\n",
12
+ "# ! pip install git+https://github.com/huggingface/transformers.git"
13
+ ]
14
+ }
15
+ ],
16
+ "metadata": {},
17
+ "nbformat": 4,
18
+ "nbformat_minor": 4
19
+ }