camilaaeromoca commited on
Commit
02399ee
·
verified ·
1 Parent(s): dcf41c9

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +18 -5
requirements.txt CHANGED
@@ -1,6 +1,19 @@
1
- pip install -q torch==2.0.1
2
- pip install -q transformers==4.31.0
3
- pip install -q gradio
 
 
 
 
 
 
 
 
4
  import torch
5
- import gradio as gr
6
- from transformers import AutoModelForCausalLM
 
 
 
 
 
 
1
+ pip install --no-cache-dir pip==22.3.1
2
+ To update, run: python -m pip install --upgrade pip
3
+
4
+
5
+
6
+ pip install watermark
7
+ pip install transformers==4.31.0
8
+ pip install gradio
9
+ pip install torch==2.0.1
10
+ pip install accelerate
11
+ # Imports
12
  import torch
13
+ import transformers
14
+ import numpy as np
15
+ import torch.nn.functional as F
16
+ from accelerate import Accelerator
17
+ from torch.utils.data import Dataset
18
+ from transformers import AutoConfig, AutoModelForCausalLM, GPT2Tokenizer
19
+ from transformers import GPT2Tokenizer