Spaces:
Sleeping
Sleeping
Update requirements.txt
Browse files- requirements.txt +18 -5
requirements.txt
CHANGED
@@ -1,6 +1,19 @@
|
|
1 |
-
pip install -
|
2 |
-
pip install
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
import torch
|
5 |
-
import
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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
|