[Slurm] Dataset Condensation model ๋Œ๋ฆฌ๊ธฐ (feat. ๊ณต์šฉGPU)

2023. 9. 28. 03:21ใ†ArtificialIntelligence/DeepLearning

 

 

 

 

https://github.com/VICO-UoE/DatasetCondensation

 

GitHub - VICO-UoE/DatasetCondensation: Dataset Condensation (ICLR21 and ICML21)

Dataset Condensation (ICLR21 and ICML21). Contribute to VICO-UoE/DatasetCondensation development by creating an account on GitHub.

github.com

๋Œ๋ ค๋ณผ ๋ชจ๋ธ์€ ์ด ์•„์ด์˜€์Šต๋‹ˆ๋‹ค. . .

 

 

 

๋Œ€๊ฐ• ํ•ด๋ดค๋Š”๋ฐ, CPU๋กœ๋Š” ์ ˆ๋Œ€ ๋์„ ๋ชป๋ณด๊ฒ ๋‹ค ์‹ถ๋”๋ผ๊ณ ์š” . . (๋ถˆํ–‰์˜ ์‹œ์ž‘)

 

 

 

 

^^_

 

 

 

 

์ž ๊ฒฐ์— ๋“ค์—ˆ๋”๋‹ˆ ์‹œํ—˜ 3๋ฒˆ์งธ์— ๊ฒจ์šฐ ํ†ต๊ณผ . .

 

 

 

 

๋จธ๋‚˜๋จผ ๋จธ์–ดใ…“ใ…“ใ…“ใ…“ใ…“ใ…“ใ…“ใ…“๋‚˜๋จผ ์‹œํ–‰์ฐฉ์˜ค ๋์— . ๋“œ๋””์–ด ํ•ด๊ฒฐ๋จ

 

 

 

 

๋žฉ๋ฏธํŒ… + GoogleML + ๊ณผ์ œ _ ์‹œํ—˜๊ณต๋ถ€ = ์ถ”์„ ๋ฐ˜๋‚ฉ

 

 

 

 

์•„์ฃผ . ์•„์ฃผ ์œ ์šฉํ•˜๊ฒŒ ์“ด ๊ฒƒ (ํŠนํžˆ 4)

 

 

 

 

๊นŒ๋จน๊ธฐ ์ „์— ๋ช…๋ น์–ด ์ •๋ฆฌ โœ๏ธ

 

conda init

conda list

conda env list

conda activate pythorch1.12.1_p38

 

source ~/.bashrc

 

vim main.sh (์‰˜ ํŒŒ์ผ ์ˆ˜์ • ์‹œ)

sbatch main.sh (์‰˜ ํŒŒ์ผ ๋Œ๋ฆด ๋•Œ)

scancel "$JOBID" 

 

cat logs/slurm-19509.out (์ค‘.์š”.)

 

squeue

mkdir

rmdir / rm -> ํด๋” ๋ฐ ํŒŒ์ผ ์‚ญ์ œ

cd .. (๋’ค๋กœ๊ฐ€๊ธฐ)

 

conda install pytorch torchvision torchaudio -c pytorch

conda update -n base -c defaults conda

 

at vim ~.sh

O (์ˆ˜์ •)

esc (๋ชจ๋“œ ๋ณ€๊ฒฝ)

:wq (์ €์žฅ ๋ฐ ๋‚˜๊ฐ€๊ธฐ)

 

srun --gres=gpu:1 --cpus-per-gpu=8 --mem-per-gpu=29G -p debug_ce_ugrad -w moana-r1 --pty $SHELL

nvidia-smi (GPU ํ™•์ธ)

 

srun์œผ๋กœ ํŠน์ • ํŒŒํ‹ฐ์…˜์— GPU ๋ฐฐ์ • ๋ฐ›๊ธฐ -> pip3 install torch ๋“ฑ ํ•„์š”ํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜ 

-> exit (nvidia-smi ์œผ๋กœ ํ™•์ธ ๊ฐ€๋Šฅ) -> sbatch main.sh -> squeue๋กœ ์˜ฌ๋ผ์˜ค๋Š”์ง€ + cat ~~ out ์—๋Ÿฌ ํ™•์ธํ•˜๊ธฐ

 

 

 

 

 

* ํ„ฐ๋ฏธ๋„์— N์‹œ๊ฐ„ ๊ฐ‡ํ˜€ ์žˆ์—ˆ๋‹ค. ^^_

* ํƒˆ์ถœํ•ด์„œ ๋„˜ ํ–‰ ๋ณต ๋ฟŒ ๋“ฏ .