Spaces:
Sleeping
Sleeping
update
Browse files- .gitattributes +16 -0
- app.py +19 -7
- results-cot/CodeLlama-70b-Instruct-hf.csv +3 -0
- results-cot/CodeLlama-70b-Instruct-hf.jpg +3 -0
- results-cot/CodeLlama-70b-Instruct-hf.pkl +3 -0
- results-cot/CodeLlama-70b-Instruct-hf.png +3 -0
- results-cot/claude-3-sonnet-20240229.csv +3 -0
- results-cot/claude-3-sonnet-20240229.jpg +3 -0
- results-cot/claude-3-sonnet-20240229.pkl +3 -0
- results-cot/claude-3-sonnet-20240229.png +3 -0
- results-cot/dbrx-instruct.csv +3 -0
- results-cot/dbrx-instruct.jpg +3 -0
- results-cot/dbrx-instruct.pkl +3 -0
- results-cot/dbrx-instruct.png +3 -0
- results-cot/deepseek-llm-67b-chat.csv +3 -0
- results-cot/deepseek-llm-67b-chat.jpg +3 -0
- results-cot/deepseek-llm-67b-chat.pkl +3 -0
- results-cot/deepseek-llm-67b-chat.png +3 -0
.gitattributes
CHANGED
|
@@ -155,3 +155,19 @@ results-cot/Mixtral-8x7B-Instruct-v0.1.png filter=lfs diff=lfs merge=lfs -text
|
|
| 155 |
results-cot/Qwen1.5-72B-Chat.png filter=lfs diff=lfs merge=lfs -text
|
| 156 |
results/claude-3-haiku-20240307.png filter=lfs diff=lfs merge=lfs -text
|
| 157 |
results/gemma-7b-it.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
results-cot/Qwen1.5-72B-Chat.png filter=lfs diff=lfs merge=lfs -text
|
| 156 |
results/claude-3-haiku-20240307.png filter=lfs diff=lfs merge=lfs -text
|
| 157 |
results/gemma-7b-it.png filter=lfs diff=lfs merge=lfs -text
|
| 158 |
+
results-cot/dbrx-instruct.jpg filter=lfs diff=lfs merge=lfs -text
|
| 159 |
+
results-cot/claude-3-sonnet-20240229.png filter=lfs diff=lfs merge=lfs -text
|
| 160 |
+
results-cot/deepseek-llm-67b-chat.csv filter=lfs diff=lfs merge=lfs -text
|
| 161 |
+
results-cot/dbrx-instruct.csv filter=lfs diff=lfs merge=lfs -text
|
| 162 |
+
results-cot/CodeLlama-70b-Instruct-hf.png filter=lfs diff=lfs merge=lfs -text
|
| 163 |
+
results-cot/claude-3-sonnet-20240229.pkl filter=lfs diff=lfs merge=lfs -text
|
| 164 |
+
results-cot/deepseek-llm-67b-chat.jpg filter=lfs diff=lfs merge=lfs -text
|
| 165 |
+
results-cot/CodeLlama-70b-Instruct-hf.pkl filter=lfs diff=lfs merge=lfs -text
|
| 166 |
+
results-cot/dbrx-instruct.pkl filter=lfs diff=lfs merge=lfs -text
|
| 167 |
+
results-cot/deepseek-llm-67b-chat.pkl filter=lfs diff=lfs merge=lfs -text
|
| 168 |
+
results-cot/deepseek-llm-67b-chat.png filter=lfs diff=lfs merge=lfs -text
|
| 169 |
+
results-cot/CodeLlama-70b-Instruct-hf.csv filter=lfs diff=lfs merge=lfs -text
|
| 170 |
+
results-cot/claude-3-sonnet-20240229.jpg filter=lfs diff=lfs merge=lfs -text
|
| 171 |
+
results-cot/CodeLlama-70b-Instruct-hf.jpg filter=lfs diff=lfs merge=lfs -text
|
| 172 |
+
results-cot/dbrx-instruct.png filter=lfs diff=lfs merge=lfs -text
|
| 173 |
+
results-cot/claude-3-sonnet-20240229.csv filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
|
@@ -249,8 +249,12 @@ def generate_heatmap_for_specific_model(model_name):
|
|
| 249 |
.astype(float)
|
| 250 |
)
|
| 251 |
|
| 252 |
-
#
|
| 253 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
sns.heatmap(
|
| 255 |
pivot_df,
|
| 256 |
cmap=cmap,
|
|
@@ -261,16 +265,18 @@ def generate_heatmap_for_specific_model(model_name):
|
|
| 261 |
square=True,
|
| 262 |
ax=ax,
|
| 263 |
)
|
| 264 |
-
plt.title(f"Heatmap for Model: {model_name}", fontsize=
|
| 265 |
plt.xlabel("Substring Index")
|
| 266 |
plt.ylabel("FSM (States, Alphabet)")
|
| 267 |
plt.xticks(rotation=45)
|
| 268 |
|
|
|
|
|
|
|
| 269 |
return fig
|
| 270 |
|
| 271 |
|
| 272 |
def generate_heatmap_for_specific_model_cot(model_name):
|
| 273 |
-
global
|
| 274 |
|
| 275 |
cmap = ListedColormap(["lightblue", "red", "green"])
|
| 276 |
bounds = [-1.5, -0.5, 0.5, 1.5]
|
|
@@ -295,8 +301,12 @@ def generate_heatmap_for_specific_model_cot(model_name):
|
|
| 295 |
.astype(float)
|
| 296 |
)
|
| 297 |
|
| 298 |
-
#
|
| 299 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 300 |
sns.heatmap(
|
| 301 |
pivot_df,
|
| 302 |
cmap=cmap,
|
|
@@ -307,11 +317,13 @@ def generate_heatmap_for_specific_model_cot(model_name):
|
|
| 307 |
square=True,
|
| 308 |
ax=ax,
|
| 309 |
)
|
| 310 |
-
plt.title(f"Heatmap for Model: {model_name}", fontsize=
|
| 311 |
plt.xlabel("Substring Index")
|
| 312 |
plt.ylabel("FSM (States, Alphabet)")
|
| 313 |
plt.xticks(rotation=45)
|
| 314 |
|
|
|
|
|
|
|
| 315 |
return fig
|
| 316 |
|
| 317 |
|
|
|
|
| 249 |
.astype(float)
|
| 250 |
)
|
| 251 |
|
| 252 |
+
# Dynamically adjust figure size
|
| 253 |
+
num_rows, num_cols = pivot_df.shape
|
| 254 |
+
fig_width = max(12, num_cols * 0.5) # Adjust width per column
|
| 255 |
+
fig_height = max(8, num_rows * 0.4) # Adjust height per row
|
| 256 |
+
|
| 257 |
+
fig, ax = plt.subplots(figsize=(fig_width, fig_height))
|
| 258 |
sns.heatmap(
|
| 259 |
pivot_df,
|
| 260 |
cmap=cmap,
|
|
|
|
| 265 |
square=True,
|
| 266 |
ax=ax,
|
| 267 |
)
|
| 268 |
+
plt.title(f"Heatmap for Model: {model_name}", fontsize=12)
|
| 269 |
plt.xlabel("Substring Index")
|
| 270 |
plt.ylabel("FSM (States, Alphabet)")
|
| 271 |
plt.xticks(rotation=45)
|
| 272 |
|
| 273 |
+
sns.despine(ax=ax, top=True, right=True, left=True, bottom=True)
|
| 274 |
+
|
| 275 |
return fig
|
| 276 |
|
| 277 |
|
| 278 |
def generate_heatmap_for_specific_model_cot(model_name):
|
| 279 |
+
global text_only_filtered_raw_cot
|
| 280 |
|
| 281 |
cmap = ListedColormap(["lightblue", "red", "green"])
|
| 282 |
bounds = [-1.5, -0.5, 0.5, 1.5]
|
|
|
|
| 301 |
.astype(float)
|
| 302 |
)
|
| 303 |
|
| 304 |
+
# Dynamically adjust figure size
|
| 305 |
+
num_rows, num_cols = pivot_df.shape
|
| 306 |
+
fig_width = max(12, num_cols * 0.5) # Adjust width per column
|
| 307 |
+
fig_height = max(8, num_rows * 0.4) # Adjust height per row
|
| 308 |
+
|
| 309 |
+
fig, ax = plt.subplots(figsize=(fig_width, fig_height))
|
| 310 |
sns.heatmap(
|
| 311 |
pivot_df,
|
| 312 |
cmap=cmap,
|
|
|
|
| 317 |
square=True,
|
| 318 |
ax=ax,
|
| 319 |
)
|
| 320 |
+
plt.title(f"Heatmap for Model: {model_name}", fontsize=12)
|
| 321 |
plt.xlabel("Substring Index")
|
| 322 |
plt.ylabel("FSM (States, Alphabet)")
|
| 323 |
plt.xticks(rotation=45)
|
| 324 |
|
| 325 |
+
sns.despine(ax=ax, top=True, right=True, left=True, bottom=True)
|
| 326 |
+
|
| 327 |
return fig
|
| 328 |
|
| 329 |
|
results-cot/CodeLlama-70b-Instruct-hf.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:135ac55c9ad0f9d88d5054906a43ab4990fee1027f7381fe21389069a753dc75
|
| 3 |
+
size 20713132
|
results-cot/CodeLlama-70b-Instruct-hf.jpg
ADDED
|
Git LFS Details
|
results-cot/CodeLlama-70b-Instruct-hf.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8d72952877e3e4023251396d037ebae8145e3e82e2d4a328ce132171ea70267
|
| 3 |
+
size 20756425
|
results-cot/CodeLlama-70b-Instruct-hf.png
ADDED
|
Git LFS Details
|
results-cot/claude-3-sonnet-20240229.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf2b75b85af059eb5415b1bf58015eb0d7e0c0d9474d949562e66ebd6bb53412
|
| 3 |
+
size 28117841
|
results-cot/claude-3-sonnet-20240229.jpg
ADDED
|
Git LFS Details
|
results-cot/claude-3-sonnet-20240229.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b21e8f9c04cda7995d0326e58d0b4a14f6fef22b3ad9a3c6e183dc90ad32fbbd
|
| 3 |
+
size 28099043
|
results-cot/claude-3-sonnet-20240229.png
ADDED
|
Git LFS Details
|
results-cot/dbrx-instruct.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:698626edcabf06c89b9b8fac2f929927e9b7351306f525cb87fc6e06ce1bc3e3
|
| 3 |
+
size 19267224
|
results-cot/dbrx-instruct.jpg
ADDED
|
Git LFS Details
|
results-cot/dbrx-instruct.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8fa9067a57abeace401272335d2ce589be63a3a13e79b712505e8e3cc8e68d16
|
| 3 |
+
size 19284287
|
results-cot/dbrx-instruct.png
ADDED
|
Git LFS Details
|
results-cot/deepseek-llm-67b-chat.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:191a06465559524615f8cca0c46ca2af417a289e9fbab2109e2d2a3c92432fe2
|
| 3 |
+
size 16692090
|
results-cot/deepseek-llm-67b-chat.jpg
ADDED
|
Git LFS Details
|
results-cot/deepseek-llm-67b-chat.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:005500788ecc004bb7a86054f8921e6331addd52c62d8e611a9d82b649ed4925
|
| 3 |
+
size 16712146
|
results-cot/deepseek-llm-67b-chat.png
ADDED
|
Git LFS Details
|