Spaces:
Runtime error
Runtime error
Commit
·
4652972
1
Parent(s):
81ea362
Update app.py
Browse files
app.py
CHANGED
@@ -161,10 +161,17 @@ acts = round(2*bs*l*(d/h)*2*n/1e9, 2)
|
|
161 |
c2.write(str(acts))
|
162 |
|
163 |
st.subheader("Approximations")
|
164 |
-
st.markdown("We estimate the time for each matrix multiplication")
|
165 |
|
166 |
-
st.latex("C = A \
|
|
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
|
169 |
|
170 |
breakdown = st.checkbox("Show breakdown per operation")
|
|
|
161 |
c2.write(str(acts))
|
162 |
|
163 |
st.subheader("Approximations")
|
164 |
+
st.markdown("[We use the [following crude approximation](https://docs.nvidia.com/deeplearning/performance/dl-performance-gpu-background/index.html#understand-perf) to estimate the execution time for each matrix multiplication.")
|
165 |
|
166 |
+
st.latex("C = A \cdot B")
|
167 |
+
st.latex("A \in \mathbb{R}^{MxK}, B \in R^{KxN}, C \in \mathbb{R}^{MxN}")
|
168 |
|
169 |
+
st.markdown('''
|
170 |
+
To execute this operation on the GPU, we need to
|
171 |
+
- Read A, B from memory
|
172 |
+
- Perform math operations
|
173 |
+
- Write C to memory
|
174 |
+
''')
|
175 |
|
176 |
|
177 |
breakdown = st.checkbox("Show breakdown per operation")
|