Skip to content

Commit

Permalink
Merge branch 'master' into loadams/fix-torch-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
loadams authored Jan 8, 2025
2 parents c803152 + 53fb579 commit c528772
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blogs/windows/08-2024/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Regardless of the installation choice, you can check that the installation was s
We use an image classification model, CIFAR10, and a language model, BERT, to demonstrate pretraining on Windows with DeepSpeed.

## Pretraining CIFAR10
The scripts and codes required for CIFAR10 pretraining example are available in the following path: DeepSpeedExamples\training\cifar. You can launch the CIFAR10 pretraining experiment using the following command: `deepspeed cifar10_deepspeed.py deepspeed`. The final output should look something like this:
The scripts and codes required for CIFAR10 pretraining example are available in the following path: DeepSpeedExamples\training\cifar. You can launch the CIFAR10 pretraining experiment using the following command: `deepspeed cifar10_deepspeed.py --deepspeed`. The final output should look something like this:
<div align="center">
<img src="./media/cifar10_training.png" style="width:6.5in;height:3.42153in" />
</div>
Expand Down
5 changes: 4 additions & 1 deletion deepspeed/ops/transformer/inference/triton/matmul_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
# -----------------------------------------------------------------------------
# util class/functions for triton
def is_nfs_path(path):
if os.name == 'nt':
return False

# Normalize the path to get the absolute path
path = os.path.abspath(path)

Expand Down Expand Up @@ -99,7 +102,7 @@ def put(self, table):
with FileLock(self.lock_path):
with open(self.file_path + ".tmp", 'wb') as handle:
pickle.dump(table, handle)
os.rename(self.file_path + ".tmp", self.file_path)
os.replace(self.file_path + ".tmp", self.file_path)

def load(self):
if os.path.exists(self.file_path):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ def op_enabled(op_name):
include_package_data=True,
scripts=scripts,
classifiers=[
'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10'
'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12'
],
license='Apache Software License 2.0',
ext_modules=ext_modules,
Expand Down

0 comments on commit c528772

Please sign in to comment.