2024/12 2

linux 18.04 + geforce 2080 ti Pytorch gpu 사용 환경 구축 (with anaconda)

이전에 구축했을 때는 온갖 삽질을 다 해서 했는데, GPT 와 함께하니 좋은 설정들을 알려주면서 해서 정말 시간 절약이 많이 되었다.그래도 미리 알고 있는거랑 아닌거는 차이가 많이 나니, 정리를 해보도록 하면, 1. nvidia driver 470.223 이미 installed. 2. Cuda version -> nvidia-smi 에서 뜨는것은 아마도 추천 버전인 듯 했다.sudo apt install cuda-toolkit 을 하니.. (좀 다를수도 있다) 11.3이 뜨는데 그것도 괜찮을거같아서 install 했다.3. nvcc --version으로 cuda version 확인 4. pytorch 버전 확인 -> gpt 에 의하면 나의 환경에 맞는 pytorch는 1.12.1 이라고 한다. 왠지는 잘..

환경설정 2024.12.09

로컬 vad(voice activity detection) 사용기 (Sirelo)

프로젝트를 하다가 앱을 만드는데 있어서 음성 녹음을 받아서 chatgpt한테 넘겨주는 애플리케이션을 만드는 데 있어서, vad의 중요성을 알게 되었습니다. 관련 아티클 : https://thegradient.pub/one-voice-detector-to-rule-them-all/  One Voice Detector to Rule Them AllVAD is among the most important and fundamental algorithms in any production or data preparation pipelines related to speechthegradient.pub VAD의 필요성은, STT를 사용하려면 wav file 또는 mp3 파일이 있어야지 그걸 STT 모델에 전달 할 수 ..