Skip to content

Commit fa36e16

Browse files
committed
fix: update for ci build
1 parent 0b9bc74 commit fa36e16

22 files changed

+68
-49
lines changed

.github/workflows/deploy-to-huggingface.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,31 +36,40 @@ jobs:
3636
git curl ca-certificates build-essential
3737
rm -rf /var/lib/apt/lists/*
3838
39+
- name: Install Node.js (for act)
40+
if: ${{ env.ACT }}
41+
run: |
42+
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
43+
apt-get install -y nodejs
44+
3945
- name: Install uv
4046
uses: astral-sh/setup-uv@v3
4147
with:
4248
version: latest
4349

4450
- name: Prepare Python 3.11
4551
run: |
52+
echo "Installing Python 3.11"
4653
uv python install 3.11
4754
echo "UV_PYTHON=3.11" >> "$GITHUB_ENV"
4855
4956
- name: Build site with uvnote (GPU available)
5057
run: |
5158
# If your build uses CUDA, it will see the GPUs here.
52-
uvx https://github.com/drbh/uvnote.git build benches
59+
# --strict will fail if any cells do not succeed.
60+
uvx https://github.com/drbh/uvnote.git build benches --strict
5361
5462
- name: Deploy to Hugging Face Space
5563
env:
5664
HF_TOKEN: ${{ secrets.HF_TOKEN }}
5765
run: |
5866
# Upload the built site/ directory to the Space, cleaning removed files
59-
uvx --from huggingface-hub hf upload \
60-
--token "$HF_TOKEN" \
61-
--delete \
62-
--exclude "*.json" \
63-
--exclude "*.pt" \
64-
--repo-type space \
65-
drbh/uvnote-book-explore \
66-
site/ /
67+
echo "Deploying to Hugging Face Space drbh/uvnote-book-explore"
68+
# uvx --from huggingface-hub hf upload \
69+
# --token "$HF_TOKEN" \
70+
# --delete \
71+
# --exclude "*.json" \
72+
# --exclude "*.pt" \
73+
# --repo-type space \
74+
# drbh/uvnote-book-explore \
75+
# site/ /

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
3+
4+
https://huggingface.co/spaces/drbh/uvnote-book-explore

benches/activation/impls/compiled_swiglu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ print(subprocess.run(["nvidia-smi"], capture_output=True, text=True).stdout)
1818
# requires-python = ">=3.10"
1919
# dependencies = [
2020
# "numpy",
21-
# "torch",
21+
# "torch==2.8.0",
2222
# "kernels-benchmark-tools",
2323
# ]
2424
#
2525
# [tool.uv.sources]
26-
# kernels-benchmark-tools = { path = "/home/ubuntu/Projects/kernels-benchmarks-consolidated/tools", editable = true }
26+
# kernels-benchmark-tools = { path = "../../../../../tools", editable = true }
2727
# ///
2828
import torch
2929
import sys

benches/activation/impls/hf_kernels_swiglu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ print(subprocess.run(["nvidia-smi"], capture_output=True, text=True).stdout)
1818
# requires-python = ">=3.10"
1919
# dependencies = [
2020
# "numpy",
21-
# "torch",
21+
# "torch==2.8.0",
2222
# "kernels-benchmark-tools",
2323
# "kernels",
2424
# ]
2525
#
2626
# [tool.uv.sources]
27-
# kernels-benchmark-tools = { path = "/home/ubuntu/Projects/kernels-benchmarks-consolidated/tools", editable = true }
27+
# kernels-benchmark-tools = { path = "../../../../../tools", editable = true }
2828
# ///
2929
import torch
3030
import sys

benches/activation/impls/torch_swiglu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ print(subprocess.run(["nvidia-smi"], capture_output=True, text=True).stdout)
1818
# requires-python = ">=3.10"
1919
# dependencies = [
2020
# "numpy",
21-
# "torch",
21+
# "torch==2.8.0",
2222
# "kernels-benchmark-tools",
2323
# ]
2424
#
2525
# [tool.uv.sources]
26-
# kernels-benchmark-tools = { path = "/home/ubuntu/Projects/kernels-benchmarks-consolidated/tools", editable = true }
26+
# kernels-benchmark-tools = { path = "../../../../../tools", editable = true }
2727
# ///
2828
import torch
2929
import sys

benches/activation/results/combined_results.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ This document combines benchmark results from multiple SwiGLU activation impleme
2020
# requires-python = ">=3.10"
2121
# dependencies = [
2222
# "numpy",
23-
# "torch",
23+
# "torch==2.8.0",
2424
# "kernels-benchmark-tools",
2525
# "matplotlib",
2626
# ]
2727
#
2828
# [tool.uv.sources]
29-
# kernels-benchmark-tools = { path = "/home/ubuntu/Projects/kernels-benchmarks-consolidated/tools", editable = true }
29+
# kernels-benchmark-tools = { path = "../../../../../tools", editable = true }
3030
# ///
3131
from kernels_benchmark_tools.core.visuals import generate_combined_results
3232

benches/flash_attn/impls/compiled_variants.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ This file benchmarks Flash Attention with different torch.compile modes.
1414
# requires-python = ">=3.10"
1515
# dependencies = [
1616
# "numpy",
17-
# "torch",
17+
# "torch==2.8.0",
1818
# "kernels-benchmark-tools",
1919
# ]
2020
#
2121
# [tool.uv.sources]
22-
# kernels-benchmark-tools = { path = "/home/ubuntu/Projects/kernels-benchmarks-consolidated/tools", editable = true }
22+
# kernels-benchmark-tools = { path = "../../../../../tools", editable = true }
2323
# ///
2424
import torch
2525
import sys
@@ -90,12 +90,12 @@ if __name__ == "__main__":
9090
# requires-python = ">=3.10"
9191
# dependencies = [
9292
# "numpy",
93-
# "torch",
93+
# "torch==2.8.0",
9494
# "kernels-benchmark-tools",
9595
# ]
9696
#
9797
# [tool.uv.sources]
98-
# kernels-benchmark-tools = { path = "/home/ubuntu/Projects/kernels-benchmarks-consolidated/tools", editable = true }
98+
# kernels-benchmark-tools = { path = "../../../../../tools", editable = true }
9999
# ///
100100
import torch
101101
import sys

benches/flash_attn/impls/flash_attention.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ print(subprocess.run(["nvidia-smi"], capture_output=True, text=True).stdout)
1919
# requires-python = ">=3.10"
2020
# dependencies = [
2121
# "numpy",
22-
# "torch",
22+
# "torch==2.8.0",
2323
# "kernels-benchmark-tools",
2424
# ]
2525
#
2626
# [tool.uv.sources]
27-
# kernels-benchmark-tools = { path = "/home/ubuntu/Projects/kernels-benchmarks-consolidated/tools", editable = true }
27+
# kernels-benchmark-tools = { path = "../../../../../tools", editable = true }
2828
# ///
2929
import torch
3030
import sys

benches/flash_attn/impls/hf_kernels_flash_attn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on_huggingface: kernels-community/flash-attn2
1818
# ]
1919
#
2020
# [tool.uv.sources]
21-
# kernels-benchmark-tools = { path = "/home/ubuntu/Projects/kernels-benchmarks-consolidated/tools", editable = true }
21+
# kernels-benchmark-tools = { path = "../../../../../tools", editable = true }
2222
# ///
2323
import torch
2424
import sys

benches/flash_attn/impls/hf_kernels_flash_attn3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ on_huggingface: kernels-community/flash-attn3
1212
# requires-python = ">=3.10"
1313
# dependencies = [
1414
# "numpy",
15-
# "torch",
15+
# "torch==2.8.0",
1616
# "kernels-benchmark-tools",
1717
# "kernels",
1818
# ]
1919
#
2020
# [tool.uv.sources]
21-
# kernels-benchmark-tools = { path = "/home/ubuntu/Projects/kernels-benchmarks-consolidated/tools", editable = true }
21+
# kernels-benchmark-tools = { path = "../../../../../tools", editable = true }
2222
# ///
2323
import torch
2424
import sys

0 commit comments

Comments
 (0)