8개 브런치 자료
AI실습을 통해 서버를 만들 수 있다.
네이버 AI 서비스를 API로 사용 할수 있도록 알려준다.
NCP-AI 는 3일 과정이다.
1일 과정은 AI 정의부터 시작한다.
2일 과정은 네이버 AI 서비스 알려준다.
3일 과정은 네이버 생성형 AI인 하이퍼 클로바X 알려준다.
1
ai 정의
https://www.youtube.com/results?search_query=ai%EC%A0%95%EC%9D%98
인공지능과 머신러닝, 딥러닝
https://www.youtube.com/watch?v=WeHFmpDN_ks
2
ai기술과 역사
https://www.youtube.com/results?search_query=ai%EA%B8%B0%EC%88%A0%EA%B3%BC+%EC%97%AD%EC%82%AC
3
ai적용사례
https://www.youtube.com/watch?v=4t2QLQ-7-9Q
4
머신러닝, 딥러닝
https://www.youtube.com/watch?v=jPs3n9Vou9c
5
GPU
https://www.youtube.com/results?search_query=gpu
6
프로세스, 태스크
1
네트워크 생성
VPC
agame-dev-vpc
Public Subnet
10.0.0.0/20
10.0.2.0/24
2
일반 VM 1대 생성
# 반드시 22.04 버전이여야 한다. 24버전 아님!!
acg (server > acg) 생성
in
0.0.0.0 icmp
tcp 1-65535 myip
out
0.0.0.0 icmp
tcp 1-65535 0.0.0.0
udp 1-65535 0.0.0.0
3
init script (server > init script ) 생성
#!/bin/bash
apt-get update
apt-get install -y apache2 php mariadb-server php-mysql php-curl curl
cd /var/www/html
wget https://kr.object.ncloudstorage.com/ncp-manual/ncpai/ncp-ai-lab.tgz
tar xvfz ncp-ai-lab.tgz
cat phpadd >> /etc/apache2/apache2.conf
systemctl restart apache2
ubuntu-24.04-base
4
vm 생성
high cpu 2/4
서버 생성 시 공인 IP 할당
root / 암호
passwd로 암호 변경
5
# 참고만 하세요
GPU VM 1대 - 월 100만원.
NCP 서버 이미지
1
gpgpu - 쿠다 강의
https://www.youtube.com/watch?v=F_SvRKSZ7B4
2
arm , cuda
https://www.youtube.com/results?search_query=cuda
3
tensor flow
https://www.youtube.com/watch?v=U57LVkQVf4o
https://www.youtube.com/watch?v=v0RoLCmqI54&list=PLSlDi2AkDv810N_uje_mCJuMthkU-oM1i
https://www.youtube.com/results?search_query=tensorflow
4
사이킷 런
https://www.youtube.com/results?search_query=scikit+learn
5
넘파이(Numpy)
https://www.youtube.com/results?search_query=numpy
6
파이토치
https://www.youtube.com/results?search_query=pythrch
7
판다스
https://www.youtube.com/results?search_query=%ED%8C%90%EB%8B%A4%EC%8A%A4
8
케라스
https://www.youtube.com/results?search_query=keras
1
서버에 설치할 것?
파이썬과 php 설치
AI 라이브러리 설치
주피터 노트북 설치
텐서보드 설치
CUDA 테스트
2
lab2. ai를 위한 서버 구성
우분트 서버 1대 생성한다. 22.04 버전만 동작한다.
apt-get update
apt install python3-pip
pip3 install jupyter
pip3 install jupyter
암호는 이렇게 예) ncp!@#12
jupyter notebook --generate-config
jupyter notebook password
vi .jupyter/jupyter_notebook_config.py
# 변경전
c.ServerApp.ip = 'localhost'
변경후
c.ServerApp.ip = '*'
3
jupyter notebook --allow-root
웹프라우저로 접속
공인 ip : 8888
4
# 서버 중지하고 애플리케이션 설치하기.
컨트롤 C
Shut down this Jupyter server (y/[n])? y
[C 2024-03-05 15:02:11.174 ServerApp] Shutdown confirmed
[I 2024-03-05 15:02:11.175 ServerApp] Shutting down 5 extensions
5
pip3 install tensorflow
pip3 install matplot
pip3 install pandas
pip3 install scikit-learn
(선택)
pip3 install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.htm
(10분)
ERROR: tensorflow 2.13.1 has requirement typing-extensions<4.6.0,>=3.6.6, but you'll have
typing-extensions 4.10.0 which is incompatible.
6
(선택)
pip3 install tensorboardX
tensorboard --logdir=runs/ --host=0.0.0.0
6060으로 접속
1
# 중지했던 jupyter 재시작
jupyter notebook --allow-root
2
# 실습 시 주의점
띄어쓰기 필수!!
KNN 알고리즘
https://www.youtube.com/results?search_query=knn+%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98
회귀 모델?
https://www.youtube.com/results?search_query=%ED%9A%8C%EA%B8%B0+%EB%AA%A8%EB%8D%B8
랜덤 포레스트?
https://www.youtube.com/results?search_query=%EB%A0%8C%EB%8D%A4+%ED%8F%AC%EB%A0%88%EC%8A%A4%ED%8A%B8
1
클라이언트에 postman 설치
https://www.postman.com/downloads/
google 계정으로 로그인
2
동영상
https://www.youtube.com/watch?v=hZJNwZssuhg
# REST API 알아보자
https://www.youtube.com/results?search_query=rest+api
3
4
AI-NAVER API를 발급받아야 사용가능하다.
Services > AI-NAVER API 클릭
5
Application 등록
6
사용할 애플리케이션 체크
7
인증 정보 클릭
인증정보 복사해 두기!!!
8
복사
복사
확인
9
가이드 센터 > api 가이드
CSR : https://api.ncloud-docs.com/docs/ai-naver-clovaspeechrecognition
10
음성 합성 서비스
Clova Voice : https://api.ncloud-docs.com/docs/ai-naver-clovavoice
1
2
파파고용은 API키는 AI API키와 다르다.
따로 발급받아야 한다.!!!
3
Papago Translation
https://api.ncloud-docs.com/docs/ai-naver-papagonmt
배운 것
AI 실습을 할 수 있는 우분트 서버 1대 만들 수 있다. 개발 환경 구축 가능하다.
jupyter notebook 사용할 수 있다.
손 글씨 구분하는 예제를 할 수 있다.
AI API 발급과 Postman 사용법을 알 수 있다.
AI API로 네이버 AI API 서비스들을 사용할 수 있다.
https://brunch.co.kr/@topasvga/3713
https://brunch.co.kr/@topasvga/3717
감사합니다.