lvwerra HF staff commited on
Commit
672c56e
1 Parent(s): 8fc5879

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -51,8 +51,8 @@ for kn in kns:
51
  def plot_curve(kn, kd):
52
  fig, ax = plt.subplots()
53
  plt.plot(kns, overheads, color="black", zorder=1)
54
- plt.scatter([kn], [compute_overhead(kn, kd)*100], s=100, marker="x", c="red", label="You are here!", zorder=2)
55
- plt.scatter([1.0], [0.0], marker="x", s=100, c="blue", label="Chinchilla optimal", zorder=2)
56
  plt.xlabel("Fraction of Chinchilla optimal model size")
57
  plt.ylabel("Compute overhead (%)")
58
  plt.legend(loc="best")
@@ -71,8 +71,6 @@ def compute(N, D):
71
 
72
  kn = Bn*N/N_opt
73
  kd = compute_kd(kn)
74
-
75
- print(N, D, N_opt/Bn, D_opt/Bn, kn, kd)
76
 
77
  fig = plot_curve(kn, kd)
78
 
 
51
  def plot_curve(kn, kd):
52
  fig, ax = plt.subplots()
53
  plt.plot(kns, overheads, color="black", zorder=1)
54
+ plt.scatter([kn], [compute_overhead(kn, kd)*100], s=100, marker="o", c="red", label="You are here!", zorder=2)
55
+ plt.scatter([1.0], [0.0], marker="o", s=100, c="blue", label="Chinchilla optimal", zorder=2)
56
  plt.xlabel("Fraction of Chinchilla optimal model size")
57
  plt.ylabel("Compute overhead (%)")
58
  plt.legend(loc="best")
 
71
 
72
  kn = Bn*N/N_opt
73
  kd = compute_kd(kn)
 
 
74
 
75
  fig = plot_curve(kn, kd)
76