camilaaeromoca commited on
Commit
2dbc68c
·
verified ·
1 Parent(s): 69ae06a

Update modelo.py

Browse files
Files changed (1) hide show
  1. modelo.py +19 -0
modelo.py CHANGED
@@ -1,3 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Versão da Linguagem Python
2
  from platform import python_version
3
  print('Versão da Linguagem Python Usada Neste Jupyter Notebook:', python_version())
 
1
+ python -m pip install --upgrade pip
2
+
3
+
4
+ pip install watermark
5
+ pip install transformers==4.31.0
6
+ pip install gradio
7
+ pip install torch==2.0.1
8
+ pip install accelerate
9
+ # Imports
10
+ import torch
11
+ import transformers
12
+ import numpy as np
13
+ import torch.nn.functional as F
14
+ from accelerate import Accelerator
15
+ from torch.utils.data import Dataset
16
+ from transformers import AutoConfig, AutoModelForCausalLM, GPT2Tokenizer
17
+ from transformers import GPT2Tokenizer
18
+
19
+
20
  # Versão da Linguagem Python
21
  from platform import python_version
22
  print('Versão da Linguagem Python Usada Neste Jupyter Notebook:', python_version())