Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -50,6 +50,7 @@ def plot_curve(kn, kd):
|
|
50 |
|
51 |
|
52 |
def compute(N, D):
|
|
|
53 |
C = to_flops(N * Bn, D * Bn)
|
54 |
N_opt = n_opt(C)
|
55 |
D_opt = d_opt(C)
|
@@ -59,7 +60,7 @@ def compute(N, D):
|
|
59 |
|
60 |
plot_curve(kn, kd)
|
61 |
|
62 |
-
text = f"""Compute budget (TFLOPs): {C:.2E}\nTraining compute overhead (%): {100*compute_overhead(kn,
|
63 |
return text
|
64 |
|
65 |
with gr.Blocks() as demo:
|
|
|
50 |
|
51 |
|
52 |
def compute(N, D):
|
53 |
+
print(N, D)
|
54 |
C = to_flops(N * Bn, D * Bn)
|
55 |
N_opt = n_opt(C)
|
56 |
D_opt = d_opt(C)
|
|
|
60 |
|
61 |
plot_curve(kn, kd)
|
62 |
|
63 |
+
text = f"""Compute budget (TFLOPs): {C:.2E}\n\nTraining compute overhead (%): {100*compute_overhead(kn, kd):.2f}\n\nInference cost fraction (%): {kn*100:.2f}"""
|
64 |
return text
|
65 |
|
66 |
with gr.Blocks() as demo:
|