Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload train.py in train_workflow.yml #22

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

b9r5
Copy link
Collaborator

@b9r5 b9r5 commented Nov 14, 2024

This change adds train.py to the artifacts that are uploaded to GitHub actions. Previously just training.log was uploaded.

@b9r5
Copy link
Collaborator Author

b9r5 commented Nov 15, 2024

Testing on my branch: https://github.com/gpu-mode/discord-cluster-manager/actions/runs/11849246328

train.py is in training-artifacts.zip:

$ unzip training-artifacts.zip 
Archive:  training-artifacts.zip
  inflating: train.py                
  inflating: training.log            
$ cat train.py 
import torch

a = torch.Tensor([1, 2, 3, 4, 5]).cuda()
b= torch.Tensor([1, 2, 3, 4, 5]).cuda()

print(a)
print(b)
print(a + b)%
$ cat training.log 
/__w/_tool/Python/3.10.15/x64/lib/python3.10/site-packages/torch/_subclasses/functional_tensor.py:295: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:84.)
  cpu = _conversion_method_template(device=torch.device("cpu"))
tensor([1., 2., 3., 4., 5.], device='cuda:0')
tensor([1., 2., 3., 4., 5.], device='cuda:0')
tensor([ 2.,  4.,  6.,  8., 10.], device='cuda:0')

@msaroufim msaroufim self-requested a review November 15, 2024 04:37
Copy link
Member

@msaroufim msaroufim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noice

@msaroufim msaroufim merged commit 146bc8c into main Nov 15, 2024
1 check passed
@b9r5 b9r5 deleted the benh/upload-train.py branch November 20, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants