mirror of
https://github.com/BillyOutlast/flash-attention-prebuild-wheels-rocm.git
synced 2026-07-01 01:37:53 -04:00
chore: add release version for docs/package.md
This commit is contained in:
@@ -14,17 +14,6 @@ The built packages are available on the [release page](https://github.com/mjun08
|
|||||||
|
|
||||||
[](https://buymeacoffee.com/mjun0812)
|
[](https://buymeacoffee.com/mjun0812)
|
||||||
|
|
||||||
## Table of Contents
|
|
||||||
|
|
||||||
- [flash-attention pre-build wheels](#flash-attention-pre-build-wheels)
|
|
||||||
- [Table of Contents](#table-of-contents)
|
|
||||||
- [Install](#install)
|
|
||||||
- [Packages](#packages)
|
|
||||||
- [History](#history)
|
|
||||||
- [Self build](#self-build)
|
|
||||||
- [Self-Hosted Runner Build](#self-hosted-runner-build)
|
|
||||||
- [Original Repository](#original-repository)
|
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
1. Select the versions for Python, CUDA, PyTorch, and flash_attn.
|
1. Select the versions for Python, CUDA, PyTorch, and flash_attn.
|
||||||
|
|||||||
+17
-3
@@ -108,8 +108,10 @@ def extract_packages_from_packages_md(packages_md_path: Path) -> list[dict]:
|
|||||||
# Extract all URLs from package cell
|
# Extract all URLs from package cell
|
||||||
# Pattern: [Release1](url1), [Download1](url1), [Release](url), [Download](url), ...
|
# Pattern: [Release1](url1), [Download1](url1), [Release](url), [Download](url), ...
|
||||||
# Support both Release and Download patterns for backward compatibility
|
# Support both Release and Download patterns for backward compatibility
|
||||||
|
# Also support version suffix: [Download1(v1.0.0)](url)
|
||||||
package_urls = re.findall(
|
package_urls = re.findall(
|
||||||
r"\[(?:Release|Download)\d*\]\(([^)]+)\)", package_cell
|
r"\[(?:Release|Download)\d*(?:\([^)]*\))?\]\(([^)]+)\)",
|
||||||
|
package_cell,
|
||||||
)
|
)
|
||||||
|
|
||||||
if package_urls:
|
if package_urls:
|
||||||
@@ -312,6 +314,14 @@ def merge_duplicate_rows(df: pd.DataFrame) -> pd.DataFrame:
|
|||||||
return merged_df
|
return merged_df
|
||||||
|
|
||||||
|
|
||||||
|
def get_tag_from_url(url: str) -> str:
|
||||||
|
"""Extract tag from GitHub release URL."""
|
||||||
|
if pd.isna(url) or not url:
|
||||||
|
return ""
|
||||||
|
match = re.search(r"/releases/download/([^/]+)/", str(url))
|
||||||
|
return match.group(1) if match else ""
|
||||||
|
|
||||||
|
|
||||||
def get_os_emoji(os_name: str) -> str:
|
def get_os_emoji(os_name: str) -> str:
|
||||||
"""Get emoji for OS name."""
|
"""Get emoji for OS name."""
|
||||||
os_lower = os_name.lower()
|
os_lower = os_name.lower()
|
||||||
@@ -394,14 +404,18 @@ def generate_markdown_table_by_os(df: pd.DataFrame) -> str:
|
|||||||
package_links = []
|
package_links = []
|
||||||
for i, pkg in enumerate(packages, 1):
|
for i, pkg in enumerate(packages, 1):
|
||||||
if pd.notna(pkg) and pkg:
|
if pd.notna(pkg) and pkg:
|
||||||
package_links.append(f"[Download{i}]({pkg})")
|
tag = get_tag_from_url(pkg)
|
||||||
|
tag_str = f"({tag})" if tag else ""
|
||||||
|
package_links.append(f"[Download{i}{tag_str}]({pkg})")
|
||||||
package_cell = ", ".join(package_links)
|
package_cell = ", ".join(package_links)
|
||||||
else:
|
else:
|
||||||
package_cell = "-"
|
package_cell = "-"
|
||||||
else:
|
else:
|
||||||
# Handle single package (backward compatibility)
|
# Handle single package (backward compatibility)
|
||||||
|
tag = get_tag_from_url(packages)
|
||||||
|
tag_str = f"({tag})" if tag else ""
|
||||||
package_cell = (
|
package_cell = (
|
||||||
f"[Download]({packages})"
|
f"[Download{tag_str}]({packages})"
|
||||||
if pd.notna(packages) and packages
|
if pd.notna(packages) and packages
|
||||||
else "-"
|
else "-"
|
||||||
)
|
)
|
||||||
|
|||||||
+905
-905
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user