Skip to content

Commit b932805

Browse files
committed
add ds ted paper
1 parent 27227b1 commit b932805

File tree

4 files changed

+49
-27
lines changed

4 files changed

+49
-27
lines changed

_includes/archive-single.html

Lines changed: 43 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,36 @@
1414

1515
<script>
1616
function toggleCitation() {
17-
var citation = document.getElementById("citation");
17+
var citation = document.getElementById("citationContainer");
1818
var button = event.target;
19-
if (citation.style.display === "none") {
19+
if (citation.style.display === "none" || citationContainer.style.display === "") {
2020
citation.style.display = "block";
21-
button.innerText = "Bibtex";
21+
button.innerText = "Hide Bibtex";
2222
} else {
2323
citation.style.display = "none";
24-
button.innerText = "Bibtex";
24+
button.innerText = "Show Bibtex";
2525
}
2626
}
27+
28+
function copyCitation() {
29+
// Retrieve the raw citation text, preserving formatting
30+
var citationText = document.getElementById("citation").innerText;
31+
32+
// Use Clipboard API to copy the text
33+
navigator.clipboard.writeText(citationText).then(function() {
34+
// Change button text to confirm the copy
35+
var copyButton = document.getElementById("copyButton");
36+
copyButton.innerText = "Copied!";
37+
38+
// Revert the button text after 2 seconds
39+
setTimeout(function() {
40+
copyButton.innerText = "Copy Bibtex";
41+
}, 2000);
42+
}, function(err) {
43+
console.error('Failed to copy text: ', err);
44+
});
45+
}
46+
2747
</script>
2848

2949
<div class="{{ include.type | default: "list" }}__item">
@@ -55,7 +75,7 @@ <h2 class="archive__item-title" itemprop="headline">
5575
{% if post.collection == 'teaching' %}
5676
<p> {{ post.type }}, <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
5777
{% elsif post.collection == 'publications' %}
58-
<p>Published in <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
78+
<p><i> {{ post.author_list }} </i><br><i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
5979
{% elsif post.date %}
6080
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Published:" }}</strong> <time datetime="{{ post.date | default: "1900-01-01" | date_to_xmlschema }}">{{ post.date | default: "1900-01-01" | date: "%B %d, %Y" }}</time></p>
6181
{% endif %}
@@ -66,29 +86,28 @@ <h2 class="archive__item-title" itemprop="headline">
6686
<p class="archive__item-excerpt" itemprop="description"><p>{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}<strong><a href="{{ base_path }}{{ post.url }}" rel="permalink"> Read more</a></strong></p></p>
6787
{% endif %}
6888

69-
<!-- {% if post.citation and post.paperurl and post.slidesurl %}
70-
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.paperurl }}">Download Paper</a> | <a href="{{ post.slidesurl }}">Download Slides</a></p>
71-
{% elsif post.citation and post.paperurl %}
72-
<!-- <p>Recommended citation: {{ post.citation }} <br /> <a href="{{ post.paperurl }}">Download Paper</a></p> -->
73-
<!-- <p>
74-
<button onclick="toggleCitation()">Show Citation</button>
89+
90+
<div style="display: flex; gap: 10px;"> <!-- Flexbox for inline buttons with some spacing -->
91+
{% if post.citation %}
92+
<p>
93+
<button onclick="toggleCitation()" style="padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; transition: background-color 0.3s;">Show Bibtex</button>
7594
</p>
76-
<p id="citation" style="display:none;">Recommended citation: {{ post.citation }}</p>
77-
{% elsif post.citation and post.slidesurl %}
78-
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.slidesurl }}">Download Slides</a></p>
79-
{% elsif post.citation %}
80-
<p>Recommended citation: {{ post.citation }}</p>
81-
{% elsif post.paperurl %}
82-
<p><a href=" {{ post.paperurl }} ">Download Paper</a></p>
83-
{% elsif post.slidesurl %}
84-
<p>Download <a href="{{ post.slidesurl }}">Download Slides</a></p></p>
85-
{% endif %} -->
86-
{% if post.citation %}
95+
{% endif %}
96+
{% if post.pdf %}
8797
<p>
88-
<button onclick="toggleCitation()" style="padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; transition: background-color 0.3s;">Bibtex</button>
98+
<a href="{{ post.pdf }}" download>
99+
<button style="padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; transition: background-color 0.3s;">
100+
Download PDF
101+
</button>
102+
</a>
89103
</p>
90-
<pre id="citation" style="display:none; background-color: #f4f4f9; border-left: 4px solid #4CAF50; padding: 20px; white-space: pre-wrap; word-wrap: break-word; font-family: 'Courier New', Courier, monospace; color: #333; line-height: 1.5; font-size: 14px; border-radius: 5px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);">{{ post.citation }}</pre>
91104
{% endif %}
105+
</div>
92106

107+
<div id="citationContainer" style="display:none; background-color: #f4f4f9; border-left: 4px solid #4CAF50; padding: 20px; border-radius: 5px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); position: relative;">
108+
<pre id="citation" style="white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; font-family: 'Courier New', Courier, monospace; font-size: 12px;">{{ post.citation }}</pre>
109+
<button onclick="copyCitation()" id="copyButton" style="padding: 5px 15px; background-color: #2196F3; color: white; border: none; border-radius: 5px; font-size: 14px; cursor: pointer; transition: background-color 0.3s; position: absolute; top: 10px; right: 10px;">Copy Bibtex</button>
110+
</div>
111+
93112
</article>
94113
</div>

_publications/2023-06-21-deepspeed-ted.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
title: "A Hybrid Tensor-Expert-Data Parallelism Approach to Optimize Mixture-of-Experts Training"
33
collection: publications
44
category: conferences
5-
permalink: /publication/2023-06-21-deepspeed-ted-moe
6-
excerpt: 'This paper is about fixing template issue #693.'
5+
permalink:
6+
excerpt: ""
7+
author_list: '<b>S. Singh</b>, O. Ruwase, A. Ahmad Awan, S. Rajbhandari, Y. He, A. Bhatele'
78
date: 2023-06-21
89
venue: "ICS '23: Proceedings of the 37th International Conference on Supercomputing"
910
paperurl: 'https://dl.acm.org/doi/abs/10.1145/3577193.3593704'
11+
pdf: /publications/paper_pdfs/ds_ted.pdf
1012
citation: |
1113
@inproceedings{10.1145/3577193.3593704,
1214
author = {Singh, Siddharth and Ruwase, Olatunji and Awan, Ammar Ahmad and Rajbhandari, Samyam and He, Yuxiong and Bhatele, Abhinav},
@@ -27,4 +29,4 @@ citation: |
2729
}
2830
---
2931

30-
Lorem ipsum
32+

_publications/paper_pdfs/ds_ted.pdf

731 KB
Binary file not shown.

0 commit comments

Comments
 (0)