Pytorch OT & Tensor Manipulation
Date | |
---|---|
Assign | ![]() |
Status | Done |
1. OT
2. 파이토치 소개 & 환경 설정
3. 텐서 조작의 개념
4. 텐서 조작 - (1), (2)
💡
[Insight]
- 강의소개서를 통해 내가 얻어 갈 수 있는 포인트들 확인
- 딥러닝 프레임워크 이해 및 환경 설정
- Apple Silicon Mac에 맞는 환경 구축
- Numpy 이해로 텐서 조작은 어려움 없이 진도 뺌 👍🏻
- Trouble Shooting
- Mac pytorch 환경 세팅Start Locally
https://pytorch.org/get-started/locally/#macos-version
- Apple Silicon Chip GPUMPS backend — PyTorch 2.3 documentationmps device enables high-performance training on GPU for MacOS devices with Metal programming framework. It introduces a new device to map Machine Learning computational graphs and primitives on highly efficient Metal Performance Shaders Graph framework and tuned kernels provided by Metal Performance Shaders framework respectively.
https://pytorch.org/docs/stable/notes/mps.html
# Check that MPS is available if not torch.backends.mps.is_available(): if not torch.backends.mps.is_built(): print("MPS not available because the current PyTorch install was not " "built with MPS enabled.") else: print("MPS not available because the current MacOS version is not 12.3+ " "and/or you do not have an MPS-enabled device on this machine.") else: mps_device = torch.device("mps")
- Mac pytorch 환경 세팅
- 피드백
- 애플실리콘 전용 Array Framework
- MLX로 AI 모델 만드는 블로그 : https://devocean.sk.com/blog/techBoardDetail.do?ID=165572
MLX 쓰는게 numpy나 pytorch로 짜는것보다 더 빠릅니다. 근데 API가 거의 비슷해서 배우는데 어렵지 않습니다 :)
- 애플실리콘 전용 Array Framework
'Upstage AI Lab 3기' 카테고리의 다른 글
Image Classification 경진대회 최종 4등 (0) | 2024.08.12 |
---|---|
Regression 경진대회 최종 2등 (0) | 2024.07.22 |
ML Regression 주가 예측 (0) | 2024.06.05 |
코딩테스트를 위한 자료구조 및 알고리즘 개론 (0) | 2024.05.20 |
Python EDA - Pandas (0) | 2024.04.30 |