Spaces:
Running
Running
Commit
·
6bbbdc0
1
Parent(s):
6a2a99c
Simplify UI labels and remove redundant instructions
Browse filesChanges:
1. Updated header labels in HTML:
- "Compression A" → "RWKV Compression"
- "Compression B" → "Qwen Compression"
2. Removed redundant instruction lines from app.py:
- Removed color legend explanation (already in visualization)
- Removed hover instruction (self-explanatory)
- Kept only the main comparison description
This makes the UI cleaner and less cluttered.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- app.py +0 -4
- visualization/html_generator.py +2 -2
app.py
CHANGED
|
@@ -268,10 +268,6 @@ with gr.Blocks(
|
|
| 268 |
# 🔬 Compression-Lens: Qwen3 vs RWKV7 Byte-Level Comparison
|
| 269 |
|
| 270 |
Compare the byte-level prediction performance between **Qwen3-1.7B-Base** and **RWKV7-G1C-1.5B**.
|
| 271 |
-
|
| 272 |
-
- **Green** = RWKV7 performs better relative to average
|
| 273 |
-
- **Red** = Qwen3 performs better relative to average
|
| 274 |
-
- **Hover** over tokens to see compression rates, token IDs, and top-10 predictions
|
| 275 |
""")
|
| 276 |
|
| 277 |
with gr.Row():
|
|
|
|
| 268 |
# 🔬 Compression-Lens: Qwen3 vs RWKV7 Byte-Level Comparison
|
| 269 |
|
| 270 |
Compare the byte-level prediction performance between **Qwen3-1.7B-Base** and **RWKV7-G1C-1.5B**.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 271 |
""")
|
| 272 |
|
| 273 |
with gr.Row():
|
visualization/html_generator.py
CHANGED
|
@@ -656,8 +656,8 @@ def generate_comparison_html(
|
|
| 656 |
<div class="meta">
|
| 657 |
<div>Model A: {model_a_name}</div>
|
| 658 |
<div>Model B: {model_b_name}</div>
|
| 659 |
-
<div>Compression
|
| 660 |
-
<div>Compression
|
| 661 |
<div style="color: {delta_color}">Avg Delta: {avg_delta_compression:+.2f}%</div>
|
| 662 |
</div>
|
| 663 |
<div class="legend">
|
|
|
|
| 656 |
<div class="meta">
|
| 657 |
<div>Model A: {model_a_name}</div>
|
| 658 |
<div>Model B: {model_b_name}</div>
|
| 659 |
+
<div>RWKV Compression: {avg_compression_a:.2f}%</div>
|
| 660 |
+
<div>Qwen Compression: {avg_compression_b:.2f}%</div>
|
| 661 |
<div style="color: {delta_color}">Avg Delta: {avg_delta_compression:+.2f}%</div>
|
| 662 |
</div>
|
| 663 |
<div class="legend">
|