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

095 test #2749

Closed
wants to merge 53 commits into from
Closed
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
ae631ce
Adding tutorial for gpu quantization using torchao
HDCharles Jan 12, 2024
70bfbfb
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
7fccbc6
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
08b3ba8
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
58aeb0b
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
c7dd331
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
e7179c8
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
3975159
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
c958f1f
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
d1cfabc
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
78c2799
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
b9917a8
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
2a3e043
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
3273eb5
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
0abf398
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
bf73c20
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
3b6fcbd
Update prototype_source/gpu_quantization_torchao_tutorial.py
HDCharles Jan 12, 2024
58591ab
Apply suggestions from code review
HDCharles Jan 12, 2024
725f660
Changing SAM to Segment Anything [Model]
HDCharles Jan 12, 2024
db850d8
Changing SAM to Segment Anything [Model]
HDCharles Jan 12, 2024
8f0c43c
Apply suggestions from code review
svekars Jan 16, 2024
84ecf83
Changing SAM to Segment Anything [Model]
HDCharles Jan 12, 2024
d6e395b
Changing SAM to Segment Anything [Model]
HDCharles Jan 12, 2024
373c9ac
Changing SAM to Segment Anything [Model]
HDCharles Jan 12, 2024
d3da40d
Changing SAM to Segment Anything [Model]
HDCharles Jan 12, 2024
8752ef0
Changing SAM to Segment Anything [Model]
HDCharles Jan 12, 2024
c382726
Move download to download.py, put on a better worker
svekars Jan 25, 2024
2be57bb
Small fix
svekars Jan 25, 2024
da75765
Small fix
svekars Jan 25, 2024
905f590
Update
svekars Jan 25, 2024
2fb562f
Update
svekars Jan 25, 2024
92ec34d
Don't unzip, download to the prototype/data dir
svekars Jan 25, 2024
bf2dec6
Update
svekars Jan 25, 2024
fa93b12
Update requirements.txt
svekars Jan 26, 2024
a512191
Update requirements.txt
svekars Jan 26, 2024
9c0f0d7
Update requirements.txt
svekars Jan 26, 2024
ff322b3
Update requirements.txt
svekars Jan 26, 2024
4452aa8
test torchao dependency
HDCharles Jan 27, 2024
9934685
Update .jenkins/metadata.json
malfet Jan 27, 2024
b4c98a6
remove torchao dep
HDCharles Jan 29, 2024
e89b21a
adding time to tutorial
HDCharles Jan 29, 2024
51fd394
adding time to tutorial
HDCharles Jan 29, 2024
208a0dd
remove torchao dep
HDCharles Jan 29, 2024
6db7c37
remove SAM dep
HDCharles Jan 30, 2024
2cd355b
Merge branch 'main' into 095_test
svekars Jan 30, 2024
c3a020c
test
svekars Jan 30, 2024
18fb783
Merge branch 'main' into 095_test
svekars Jan 30, 2024
b1c3fde
Undo last commit
svekars Jan 30, 2024
bcc62ce
Merge branch '095_test' of github.com:pytorch/tutorials into 095_test
svekars Jan 30, 2024
7c3fc94
Merge branch 'main' into 095_test
svekars Jan 30, 2024
6b8332f
adding back torchao and SAM dep
HDCharles Jan 31, 2024
cce1bcc
add metadata.json
HDCharles Jan 31, 2024
31a7e52
trying 16x
HDCharles Jan 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .jenkins/download_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ def download_lenet_mnist() -> None:
sha256="cb5f8e578aef96d5c1a2cc5695e1aa9bbf4d0fe00d25760eeebaaac6ebc2edcb",
)

def download_gpu_quantization_torchao() -> None:
# Download SAM model checkpoint for prototype_source/gpu_quantization_torchao_tutorial.py
download_url_to_file("https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth",
prefix=PROTOTYPE_DATA_DIR,
dst="sam_vit_h_4b8939.pth",
sha256="a7bf3b02f3ebf1267aba913ff637d9a2d5c33d3173bb679e46d9f338c26f262e",
)

def main() -> None:
DATA_DIR.mkdir(exist_ok=True)
Expand All @@ -122,7 +129,8 @@ def main() -> None:
download_dcgan_data()
if FILES_TO_RUN is None or "fgsm_tutorial" in FILES_TO_RUN:
download_lenet_mnist()

if FILES_TO_RUN is None or "gpu_quantization_torchao_tutorial" in FILES_TO_RUN:
download_gpu_quantization_torchao()

if __name__ == "__main__":
main()
3 changes: 3 additions & 0 deletions .jenkins/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
},
"intermediate_source/scaled_dot_product_attention_tutorial.py": {
"needs": "linux.g5.4xlarge.nvidia.gpu"
},
"prototype_source/gpu_quantization_torchao_tutorial.py": {
"needs": "linux.g5.4xlarge.nvidia.gpu"
}
}
2 changes: 2 additions & 0 deletions prototype_source/gpu_quantization_torchao_tutorial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"""test"""
import torch
7 changes: 5 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ sphinx-gallery==0.11.1
sphinx_design
docutils==0.16
sphinx-copybutton
tqdm
numpy
tqdm==4.66.1
numpy==1.24.4
matplotlib
librosa
torch
Expand Down Expand Up @@ -53,6 +53,7 @@ scipy==1.11.1
numba==0.57.1
pillow==10.0.1
wget
gym==0.26.2
gym-super-mario-bros==7.4.0
pyopengl
gymnasium[mujoco]==0.27.0
Expand All @@ -61,3 +62,5 @@ iopath
pygame==2.1.2
pycocotools
semilearn==0.3.2
torchao==0.0.3
segment_anything==1.0
Loading