SK Networks Family AI bootcamp 강의노트

45일차 [uv/ aws /diffuser/chatgpt]

HyunJung_Jo 2025. 3. 21. 17:47
어제 애자일 끝나구.. 사실 오늘은 아침에 깨서 나오기 싫었다.

UV

  • pip install 을 병렬적으로 설치하기 때문에 엄청 빠름
  • installation 가이드 따라서 설치후 uv 치면 확인 가능
uv python list
uv python install 3.12
uv venv .venv -p 3.12
.\.venv\Scripts\activate
python --version
uv run main.py
uv pip install -r .\requirements.txt
 

Index | uv

Introduction Getting started To help you get started with uv, we'll cover a few important topics: Read on, or jump ahead to another section: Get going quickly with guides for common workflows. Learn more about the core concepts in uv. Use the reference doc

docs.astral.sh

 

 

AWS

  • MFA
  • my monthly cost budget 
  • IAM user and role access to Billing information - activated
  • IAM user- activated
  • Admin
    • user groups > admin/ Attach AdministratorAccess policy
    • admin 계정 만들었어서 root 계정 쓸 필요 없음.
    • user: admin (console에 접근 권한 주기/ IAM user/group으로 관리/download credentials)

Diffuser

  • runpod에서 돌리자
  • huggingface - token 설정해서 os.environ['HF_TOKEN']으로 지정
  • 멀티모달 finetuning은 데이터가 어마어마하게 필요해서 거의 불가능하다.

https://colab.research.google.com/drive/14250hlEAjSAas5ZE78KEbIvV2VU8FWob

 

Google Colab Notebook

Run, share, and edit Python notebooks

colab.research.google.com

https://colab.research.google.com/drive/14bZUoxZYddyLYDoOhUuFQb6YXjPFQpi2

 

Google Colab Notebook

Run, share, and edit Python notebooks

colab.research.google.com

 

 

고양이라고 주장하는 모델의 결과물
an island full of kittens

chatGPT

  • 온갖 데이터를 다 수집하기 때문에 챗지피티는 금융/국방 이런데서 일할 때는 쓰지 말 것을 권유드림
  • 차라리 허깅페이스에서 다운받아서 쓰면 안전하다
  • api key는 일회용으로 쓰고 바로 버려라. 털리면 마이너스 잔고 나옴

https://colab.research.google.com/drive/16uAwd38TQy_sz-0XBAmxMIn4DhL1-p_y#scrollTo=eI5Pzt3HPUt8

 

Google Colab Notebook

Run, share, and edit Python notebooks

colab.research.google.com

 

git

  • local 에 폴더 생성 > 물리적 git init > git commit 하면 알아서 깃헙에 레포 생성하게 됨
  • dev branch : create branch from main(github) 으로 publish branch
  • feature branch: create branch from dev 으로  publish branch