Spaces:
Running
Running
Commit ·
9a970ef
1
Parent(s): 9553b06
utils.py
CHANGED
|
@@ -146,6 +146,7 @@ def plot_memory_breakdown(
|
|
| 146 |
seq_len, mbs, batch_accum, tp, pp, dp, zero_stage,
|
| 147 |
tie_word_embeddings
|
| 148 |
)
|
|
|
|
| 149 |
|
| 150 |
# Create figure for components plot
|
| 151 |
plt.close('all')
|
|
@@ -261,4 +262,4 @@ def plot_memory_breakdown(
|
|
| 261 |
# Add legend below the plot
|
| 262 |
# plt.subplots_adjust(bottom=0.8)
|
| 263 |
ax2.legend(loc='lower center', bbox_to_anchor=(0.5, -1.5), ncol=3)
|
| 264 |
-
return fig1, fig2
|
|
|
|
| 146 |
seq_len, mbs, batch_accum, tp, pp, dp, zero_stage,
|
| 147 |
tie_word_embeddings
|
| 148 |
)
|
| 149 |
+
memory_usage_peak_tbi = results["Aggregates"]["Peak Memory (TBI)"]
|
| 150 |
|
| 151 |
# Create figure for components plot
|
| 152 |
plt.close('all')
|
|
|
|
| 262 |
# Add legend below the plot
|
| 263 |
# plt.subplots_adjust(bottom=0.8)
|
| 264 |
ax2.legend(loc='lower center', bbox_to_anchor=(0.5, -1.5), ncol=3)
|
| 265 |
+
return fig1, fig2, memory_usage_peak_tbi
|