DongfuJiang commited on
Commit
a5e104d
·
1 Parent(s): e6d8c72
Files changed (4) hide show
  1. README.md +1 -1
  2. app.py +2 -2
  3. bak_requirements.txt +8 -0
  4. requirements.txt +152 -5
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: TIGERScore
3
- emoji: 🏆
4
  colorFrom: indigo
5
  colorTo: pink
6
  sdk: gradio
 
1
  ---
2
  title: TIGERScore
3
+ emoji: 🐯
4
  colorFrom: indigo
5
  colorTo: pink
6
  sdk: gradio
app.py CHANGED
@@ -3,7 +3,7 @@ import os
3
  import gradio as gr
4
  import sys
5
  import copy
6
- import spaces
7
  from datasets import load_dataset
8
  from typing import List
9
  from llama_cpp import Llama
@@ -60,7 +60,7 @@ Your evaluation output:
60
  # )
61
  scorer = TIGERScorer(model_name="TIGER-Lab/TIGERScore-13B")
62
 
63
- @spaces.GPU(duration=60)
64
  def generate_text_hf(input_context, generation_instruction, hypo_output, max_new_tokens=1024, temperature=0.7, top_p=1.0):
65
  global scorer
66
  scorer.model = scorer.model.to("cuda")
 
3
  import gradio as gr
4
  import sys
5
  import copy
6
+ # import spaces
7
  from datasets import load_dataset
8
  from typing import List
9
  from llama_cpp import Llama
 
60
  # )
61
  scorer = TIGERScorer(model_name="TIGER-Lab/TIGERScore-13B")
62
 
63
+ # @spaces.GPU(duration=60)
64
  def generate_text_hf(input_context, generation_instruction, hypo_output, max_new_tokens=1024, temperature=0.7, top_p=1.0):
65
  global scorer
66
  scorer.model = scorer.model.to("cuda")
bak_requirements.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ datasets
2
+ torch
3
+ transformers==4.37.0
4
+ git+https://github.com/TIGER-AI-Lab/TIGERScore.git
5
+ gradio==4.24.0
6
+ spaces
7
+ multiprocess==0.70.15
8
+ sentencepiece
requirements.txt CHANGED
@@ -1,6 +1,153 @@
1
- datasets==2.14.5
2
- torch
3
- transformers
4
- git+https://github.com/TIGER-AI-Lab/TIGERScore.git
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  gradio==4.24.0
6
- spaces
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ accelerate==0.28.0
2
+ aiofiles==23.2.1
3
+ aiohttp==3.9.3
4
+ aiosignal==1.3.1
5
+ altair==5.2.0
6
+ annotated-types==0.6.0
7
+ anyio==3.7.1
8
+ apache-beam==2.55.0
9
+ appdirs==1.4.4
10
+ async-timeout==4.0.3
11
+ attrs==23.2.0
12
+ beautifulsoup4==4.12.3
13
+ bitsandbytes==0.43.0
14
+ Brotli==1.1.0
15
+ bs4==0.0.2
16
+ certifi==2024.2.2
17
+ charset-normalizer==3.3.2
18
+ click==8.1.7
19
+ cloudpickle==2.2.1
20
+ colorama==0.4.6
21
+ contourpy==1.2.0
22
+ crcmod==1.7
23
+ cycler==0.12.1
24
+ dacite==1.8.1
25
+ datasets==2.18.0
26
+ dill==0.3.8
27
+ diskcache==5.6.3
28
+ distro==1.9.0
29
+ dnspython==2.6.1
30
+ docker-pycreds==0.4.0
31
+ docopt==0.6.2
32
+ exceptiongroup==1.1.3
33
+ fastapi==0.110.0
34
+ fastavro==1.9.4
35
+ fasteners==0.19
36
+ ffmpy==0.3.2
37
+ filelock @ file:///croot/filelock_1700591183607/work
38
+ fire==0.6.0
39
+ fonttools==4.50.0
40
+ frozenlist==1.4.1
41
+ fsspec==2024.2.0
42
+ gdcm==1.1
43
+ gdown==5.1.0
44
+ gitdb==4.0.11
45
+ GitPython==3.1.42
46
+ gmpy2 @ file:///tmp/build/80754af9/gmpy2_1645455533097/work
47
  gradio==4.24.0
48
+ gradio_client==0.14.0
49
+ grpcio==1.62.1
50
+ h11==0.14.0
51
+ hdfs==2.7.3
52
+ httpcore==1.0.5
53
+ httplib2==0.22.0
54
+ httpx==0.27.0
55
+ huggingface-hub==0.22.2
56
+ idna==3.6
57
+ importlib_resources==6.4.0
58
+ inflate64==1.0.0
59
+ Jinja2 @ file:///croot/jinja2_1706733616596/work
60
+ joblib==1.3.2
61
+ Js2Py==0.74
62
+ jsonpickle==3.0.3
63
+ jsonschema==4.21.1
64
+ jsonschema-specifications==2023.12.1
65
+ kiwisolver==1.4.5
66
+ llama_cpp_python==0.2.57
67
+ markdown-it-py==3.0.0
68
+ MarkupSafe @ file:///croot/markupsafe_1704205993651/work
69
+ matplotlib==3.8.3
70
+ mdurl==0.1.2
71
+ mpmath @ file:///croot/mpmath_1690848262763/work
72
+ multidict==6.0.5
73
+ multiprocess==0.70.15
74
+ multivolumefile==0.2.3
75
+ networkx @ file:///croot/networkx_1690561992265/work
76
+ nltk==3.8.1
77
+ numpy==1.26.4
78
+ objsize==0.7.0
79
+ openai==1.14.3
80
+ orjson==3.10.0
81
+ packaging==24.0
82
+ pandas==2.2.1
83
+ peft==0.10.0
84
+ pillow==10.2.0
85
+ proto-plus==1.23.0
86
+ protobuf==4.25.3
87
+ psutil==5.9.8
88
+ py7zr==0.21.0
89
+ pyarrow==14.0.2
90
+ pyarrow-hotfix==0.6
91
+ pybcj==1.0.2
92
+ pycryptodomex==3.20.0
93
+ pydantic==2.6.4
94
+ pydantic_core==2.16.3
95
+ pydicom==2.4.4
96
+ pydot==1.4.2
97
+ pydub==0.25.1
98
+ Pygments==2.17.2
99
+ pyjsparser==2.7.1
100
+ pymongo==4.6.3
101
+ pyparsing==3.1.2
102
+ pyppmd==1.1.0
103
+ PySocks==1.7.1
104
+ pystun==0.1.0
105
+ pystun3==1.0.0
106
+ python-dateutil==2.9.0.post0
107
+ python-multipart==0.0.9
108
+ pytz==2024.1
109
+ PyYAML @ file:///croot/pyyaml_1698096049011/work
110
+ pyzstd==0.15.10
111
+ referencing==0.34.0
112
+ regex==2023.12.25
113
+ requests==2.31.0
114
+ rich==13.7.1
115
+ rpds-py==0.18.0
116
+ ruff==0.3.4
117
+ safetensors==0.4.2
118
+ scipy==1.12.0
119
+ semantic-version==2.10.0
120
+ sentencepiece==0.2.0
121
+ sentry-sdk==1.44.0
122
+ setproctitle==1.3.3
123
+ shellingham==1.5.4
124
+ six==1.16.0
125
+ smmap==5.0.1
126
+ sniffio==1.3.0
127
+ soupsieve==2.5
128
+ spaces==0.25.0
129
+ starlette==0.36.3
130
+ sympy @ file:///croot/sympy_1701397643339/work
131
+ termcolor==2.4.0
132
+ texttable==1.7.0
133
+ tigerscore @ git+https://github.com/TIGER-AI-Lab/TIGERScore.git@9e02902ec94518faf99681b3df1fc03c920f000f
134
+ tiktoken==0.6.0
135
+ tokenizers==0.15.2
136
+ tomlkit==0.12.0
137
+ toolz==0.12.1
138
+ torch==2.2.2
139
+ tqdm==4.66.2
140
+ transformers==4.37.0
141
+ triton==2.2.0
142
+ typer==0.11.1
143
+ typing_extensions @ file:///croot/typing_extensions_1705599297034/work
144
+ tzdata==2024.1
145
+ tzlocal==5.2
146
+ urllib3==2.2.1
147
+ uvicorn==0.29.0
148
+ wandb==0.16.5
149
+ websockets==11.0.3
150
+ wget==3.2
151
+ xxhash==3.4.1
152
+ yarl==1.9.4
153
+ zstandard==0.22.0