3morixd commited on
Commit
d786e6c
·
verified ·
1 Parent(s): d72a1f3

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +27 -0
app.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import pandas as pd
3
+ import json
4
+
5
+ MODELS = [
6
+ {"Model": "SmolLM2-135M", "Speed (t/s)": 59.7, "Size (MB)": 101},
7
+ {"Model": "TinyLlama-1.1B-int4", "Speed (t/s)": 17.6, "Size (MB)": 400},
8
+ {"Model": "Qwen2.5-0.5B-Server", "Speed (t/s)": 16.7, "Size (MB)": 1000},
9
+ {"Model": "Qwen2.5-0.5B-Chinese", "Speed (t/s)": 16.4, "Size (MB)": 1000},
10
+ {"Model": "Qwen2.5-Math-1.5B", "Speed (t/s)": 15.7, "Size (MB)": 3000},
11
+ {"Model": "Qwen2.5-0.5B-int4", "Speed (t/s)": 12.5, "Size (MB)": 469},
12
+ {"Model": "Llama-3.2-1B-Q4", "Speed (t/s)": 11.3, "Size (MB)": 770},
13
+ {"Model": "TinyLlama-1.1B-Q5", "Speed (t/s)": 10.9, "Size (MB)": 800},
14
+ {"Model": "Gemma-2-2B-IT", "Speed (t/s)": 8.2, "Size (MB)": 5000},
15
+ {"Model": "Phi-3.5-mini", "Speed (t/s)": 8.6, "Size (MB)": 7600},
16
+ {"Model": "Llama-3.2-3B", "Speed (t/s)": 4.8, "Size (MB)": 6000},
17
+ ]
18
+
19
+ df = pd.DataFrame(MODELS)
20
+
21
+ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue"), title="dispatchAI Speed Chart") as demo:
22
+ gr.Markdown("# 📊 dispatchAI Model Speed Comparison")
23
+ gr.Markdown("Real CPU benchmark data. All models verified working June 2026.")
24
+ gr.BarPlot(df, x="Model", y="Speed (t/s)", title="Inference Speed (tokens/sec)", height=400)
25
+ gr.Dataframe(df, label="Full Data")
26
+ gr.Markdown("---\n🚀 [dispatchAI](https://huggingface.co/dispatchAI)")
27
+ demo.launch()