Skip to content

Commit 34b0fe9

Browse files
authored
[Dev] Remove unnecessary python dependencies (#69)
* [Enhancement] Add VectorizeLoop function and update imports for compatibility * [CI][Test] Improve test cases for vectorization and fix typos in parser comments * lint fix * Fix incorrect module reference for VectorizeLoop transformation * Refactor vectorize_loop transformation by removing unused extent mutation logic * [Enhancement] Add support for FP8 data types and global barriers in CUDA codegen * Fix formatting in CUDA FP8 header file for consistency * Refactor CI workflow to use 'tilelang_ci' virtual environment and update CUDA type printing for better clarity * Update submodule 'tvm' to latest commit for improved functionality * Refactor execution backend references from 'dl_pack' to 'dlpack' for consistency and clarity; add apply_simplify function to simplify PrimFunc or IRModule. * Refactor CUDA code for improved readability; clean up formatting and remove unnecessary whitespace in multiple files. * Refactor import statement in test_tilelang_kernel_dequantize_gemm.py to use 'tilelang.language' for consistency * Add CUDA requirements to FP8 test cases and update references for clarity * Add a blank line for improved readability in test_tilelang_kernel_fp8_gemm_mma.py * Fix data type in reference result calculation for consistency in test_tilelang_kernel_gemm_mma_intrinsic.py * Add CUDA requirements and FP8 test cases for matmul and gemv simulations * Remove debug print statements and use tilelang's testing assertion for result validation in test_tilelang_kernel_gemm_mma_intrinsic.py * Remove outdated comment regarding FP8 tests in test_tilelang_kernel_gemv_simt.py * Add BF16 support to matrix multiplication and introduce corresponding test cases * Add a blank line for improved readability in BF16 GEMM test * Update acknowledgements in README to include supervision by Zhi Yang at Peking University * enhance acknowledgement * Replace tutorial on memory layout optimization with new tutorial on writing high-performance kernels with thread primitives * Update subproject commit for TVM dependency * Update subproject commit for TVM dependency * Add int4_t type and functions for packing char values in CUDA common header * Add plot_layout example and implement GetForwardVars method in layout classes * Refactor code for improved readability by adjusting line breaks and formatting in layout and test files * Fix formatting by removing unnecessary line break in layout.h * Refactor make_int4 function for improved readability by adjusting parameter formatting * Add legend to plot_layout for improved clarity of thread and local IDs * Remove unnecessary dependencies from requirements files for cleaner setup * Remove flash_mha.py and add .gitkeep to deepseek_mla directory * Add build requirements and update installation scripts for improved setup
1 parent fcf2f22 commit 34b0fe9

File tree

10 files changed

+29
-20
lines changed

10 files changed

+29
-20
lines changed

examples/deepseek_mla/.gitkeep

Whitespace-only changes.

install_cpu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ echo "Starting installation script..."
77

88
# Step 1: Install Python requirements
99
echo "Installing Python requirements from requirements.txt..."
10+
pip install -r requirements-build.txt
1011
pip install -r requirements.txt
1112
if [ $? -ne 0 ]; then
1213
echo "Error: Failed to install Python requirements."

install_cuda.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ echo "Starting installation script..."
77

88
# Step 1: Install Python requirements
99
echo "Installing Python requirements from requirements.txt..."
10+
pip install -r requirements-build.txt
1011
pip install -r requirements.txt
1112
if [ $? -ne 0 ]; then
1213
echo "Error: Failed to install Python requirements."

install_rocm.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@
33
# Copyright (c) Microsoft Corporation.
44
# Licensed under the MIT License.
55

6+
echo "Starting installation script..."
7+
68
# install requirements
9+
pip install -r requirements-build.txt
710
pip install -r requirements.txt
8-
11+
if [ $? -ne 0 ]; then
12+
echo "Error: Failed to install Python requirements."
13+
exit 1
14+
else
15+
echo "Python requirements installed successfully."
16+
fi
917
# determine if root
1018
USER_IS_ROOT=false
1119
if [ "$EUID" -eq 0 ]; then

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ requires = [
33
"cmake>=3.26",
44
"packaging",
55
"setuptools>=61",
6-
"setuptools-scm>=8.0",
76
"wheel",
87
]
98
build-backend = "setuptools.build_meta"

requirements-build.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Should be mirrored in pyproject.toml
2+
cmake>=3.26
3+
packaging
4+
setuptools>=61
5+
torch
6+
wheel

requirements-dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ cloudpickle
2828
ml_dtypes
2929
psutil
3030
scipy
31-
tornado
3231
torch
3332
thefuzz
3433
tabulate

requirements-test.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ attrs
2727
cloudpickle
2828
ml_dtypes
2929
psutil
30-
scipy
31-
tornado
3230
torch
3331
thefuzz
3432
tabulate

requirements.txt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
1-
# build requirements
2-
cmake>=3.26
31
# runtime requirements
4-
cffi
5-
cpplint
62
Cython
73
decorator
8-
docutils
9-
dtlib
104
numpy>=1.23.5
11-
pytest>=6.2.4
12-
pytest_xdist>=2.2.1
13-
packaging>=21.0
14-
PyYAML
155
tqdm>=4.62.3
166
typing_extensions>=4.10.0
17-
requests
187
attrs
198
cloudpickle
209
ml_dtypes
2110
psutil
22-
scipy
23-
tornado
2411
torch
25-
thefuzz
26-
tabulate

tilelang/tools/plot_layout.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ def plot_layout(layout: T.Layout,
132132
plt.xticks([]) # Remove x-axis ticks
133133
plt.yticks([]) # Remove y-axis ticks
134134

135+
legend_patches = [
136+
patches.Patch(color='black', label="T: Thread ID"),
137+
patches.Patch(color='black', label="L: Local ID")
138+
]
139+
ax.legend(
140+
handles=legend_patches,
141+
loc="upper right",
142+
fontsize=font_size - 4,
143+
frameon=False,
144+
bbox_to_anchor=(1.0, 1.12),
145+
ncols=2)
146+
135147
# Create the output directory if it does not exist
136148
tmp_directory = pathlib.Path(save_directory)
137149
if not os.path.exists(tmp_directory):

0 commit comments

Comments
 (0)