chore: update section design

This commit is contained in:
Junya Morioka
2025-11-02 03:09:09 +09:00
parent 79daeefac2
commit f2755112da
2 changed files with 16 additions and 4 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ pip install ./flash_attn-2.6.3+cu124torch2.5-cp312-cp312-linux_x86_64.whl
## Packages
### Linux x86_64
### 🐧 Linux x86_64
#### Flash-Attention 2.8.3
@@ -935,7 +935,7 @@ pip install ./flash_attn-2.6.3+cu124torch2.5-cp312-cp312-linux_x86_64.whl
</details>
### Windows x86_64
### 🪟 Windows x86_64
#### Flash-Attention 2.8.3
+14 -2
View File
@@ -319,6 +319,17 @@ def merge_duplicate_rows(df: pd.DataFrame) -> pd.DataFrame:
return merged_df
def get_os_emoji(os_name: str) -> str:
"""Get emoji for OS name."""
os_lower = os_name.lower()
if "linux" in os_lower:
return "🐧 "
elif "windows" in os_lower:
return "🪟 "
else:
return ""
def generate_markdown_table_by_os(df: pd.DataFrame) -> str:
"""Generate markdown tables grouped by OS and Flash-Attention version."""
if df.empty:
@@ -339,8 +350,9 @@ def generate_markdown_table_by_os(df: pd.DataFrame) -> str:
cuda_ascending=True,
)
# Create OS section header
os_lines = [f"### {os_name}", ""]
# Create OS section header with emoji
os_emoji = get_os_emoji(os_name)
os_lines = [f"### {os_emoji}{os_name}", ""]
# Group by Flash-Attention version within each OS
fa_versions = []