From b60e54d45a5fd61cc01608387dc4e2027f3f1cb1 Mon Sep 17 00:00:00 2001 From: Justin John <34035011+justinjohn0306@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:39:09 +0530 Subject: [PATCH 1/5] Update builddeepspeed.py --- builddeepspeed.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/builddeepspeed.py b/builddeepspeed.py index 49ea586..5c83ade 100644 --- a/builddeepspeed.py +++ b/builddeepspeed.py @@ -303,7 +303,10 @@ def run_build_process(self): f.write('set PYTHONUTF8=1\n') # Force Python to use UTF-8 for I/O f.write('set PYTHONIOENCODING=utf-8\n') # Ensure Python uses UTF-8 for its I/O encoding # Call vcvars64.bat explicitly for 64-bit environment - f.write(f'call "{vcvars_path}"\n') + #f.write(f'call "{vcvars_path}"\n') + f.write(f'call "{vcvars_path}" x64 -vcvars_ver=14.29\n') + # Skip Git hash + f.write('set DS_BUILD_STRING=nogit\n') # Set up environment variables f.write(f'set CUDA_PATH=C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v{self.cuda_var.get()}\n') f.write('set CUDA_HOME=%CUDA_PATH%\n') @@ -845,4 +848,4 @@ def main(): app.run() if __name__ == "__main__": - main() \ No newline at end of file + main() From 9aa24ce2e2b33293f9755532e345b8e1a634d774 Mon Sep 17 00:00:00 2001 From: Justin John <34035011+justinjohn0306@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:43:27 +0530 Subject: [PATCH 2/5] Update builddeepspeed.py --- builddeepspeed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builddeepspeed.py b/builddeepspeed.py index 5c83ade..b5be3f7 100644 --- a/builddeepspeed.py +++ b/builddeepspeed.py @@ -303,8 +303,8 @@ def run_build_process(self): f.write('set PYTHONUTF8=1\n') # Force Python to use UTF-8 for I/O f.write('set PYTHONIOENCODING=utf-8\n') # Ensure Python uses UTF-8 for its I/O encoding # Call vcvars64.bat explicitly for 64-bit environment - #f.write(f'call "{vcvars_path}"\n') - f.write(f'call "{vcvars_path}" x64 -vcvars_ver=14.29\n') + f.write(f'call "{vcvars_path}"\n') + #f.write(f'call "{vcvars_path}" x64 -vcvars_ver=14.29\n') # Skip Git hash f.write('set DS_BUILD_STRING=nogit\n') # Set up environment variables From 05b77811a77dc063aa66388c89cd2ff2916d074a Mon Sep 17 00:00:00 2001 From: Justin John <34035011+justinjohn0306@users.noreply.github.com> Date: Mon, 21 Jul 2025 14:00:09 +0530 Subject: [PATCH 3/5] Update builddeepspeed.py --- builddeepspeed.py | 1 + 1 file changed, 1 insertion(+) diff --git a/builddeepspeed.py b/builddeepspeed.py index b5be3f7..293d20c 100644 --- a/builddeepspeed.py +++ b/builddeepspeed.py @@ -318,6 +318,7 @@ def run_build_process(self): f.write('set DS_BUILD_FP_QUANTIZER=0\n') f.write('set DS_BUILD_RAGGED_DEVICE_OPS=0\n') f.write('set DS_BUILD_SPARSE_ATTN=0\n') + f.write('set DS_BUILD_TRANSFORMER_INFERENCE=0\n') # Echo environment for debugging f.write('echo ============ Environment Variables ============\n') f.write('echo CUDA_PATH=%CUDA_PATH%\n') From 2553c387f545a3613d25a8c0e0d8884b7ed67a95 Mon Sep 17 00:00:00 2001 From: Justin John <34035011+justinjohn0306@users.noreply.github.com> Date: Mon, 21 Jul 2025 14:10:06 +0530 Subject: [PATCH 4/5] Update builddeepspeed.py --- builddeepspeed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builddeepspeed.py b/builddeepspeed.py index 293d20c..ab5ac1b 100644 --- a/builddeepspeed.py +++ b/builddeepspeed.py @@ -306,7 +306,7 @@ def run_build_process(self): f.write(f'call "{vcvars_path}"\n') #f.write(f'call "{vcvars_path}" x64 -vcvars_ver=14.29\n') # Skip Git hash - f.write('set DS_BUILD_STRING=nogit\n') + f.write('set DS_BUILD_STRING=+nogit\n') # Set up environment variables f.write(f'set CUDA_PATH=C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v{self.cuda_var.get()}\n') f.write('set CUDA_HOME=%CUDA_PATH%\n') From 7474edc3a07ef659fd3d5f7210818a21294e7928 Mon Sep 17 00:00:00 2001 From: Justin John <34035011+justinjohn0306@users.noreply.github.com> Date: Mon, 21 Jul 2025 14:20:48 +0530 Subject: [PATCH 5/5] Update builddeepspeed.py --- builddeepspeed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builddeepspeed.py b/builddeepspeed.py index ab5ac1b..286745f 100644 --- a/builddeepspeed.py +++ b/builddeepspeed.py @@ -305,7 +305,7 @@ def run_build_process(self): # Call vcvars64.bat explicitly for 64-bit environment f.write(f'call "{vcvars_path}"\n') #f.write(f'call "{vcvars_path}" x64 -vcvars_ver=14.29\n') - # Skip Git hash + # Fix Git hash f.write('set DS_BUILD_STRING=+nogit\n') # Set up environment variables f.write(f'set CUDA_PATH=C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v{self.cuda_var.get()}\n')