티스토리 뷰
ValueError: Expected parameter logits (Tensor of shape (1, 51865)) of distribution Categorical(logits: torch.Size([1, 51865])) to satisfy the constraint IndependentConstraint(Real(), 1), but found invalid values:tensor([[nan, nan, nan, ..., nan, nan, na..
첸첸 2023. 11. 23. 16:42GPU 사용환경을 만들고 Whisper를 실행 시키니 아래와 같은 에러가 났다! ㅎㅎ! 엉엉..😭
ValueError: Expected parameter logits (Tensor of shape (1, 51865)) of distribution Categorical(logits: torch.Size([1, 51865])) to satisfy the constraint IndependentConstraint(Real(), 1), but found invalid values:
tensor([[nan, nan, nan, ..., nan, nan, nan]], device='cuda:0')
그런데 whisper 모델이 아니라 다른 model을 사용하니 똑같은 gpu를 사용하는데 에러가 나지 않았다. 따라서 GPU 환경 때문에 나는건 아니라는 것 같았다.
검색해보니 fb16을 False로 두라는 내용을 발견했다.
아래와 같이 fb16=False를 파라미터로 넘긴 후 정상 작동 되는 것을 확인했다!
import whisper as ws
result = ws.transcribe(model=model, audio=audioPath, fp16=False)
참고 페이지
https://github.com/openai/whisper/discussions/383
running on cuda · openai/whisper · Discussion #383
Hi All, Am able to run on cpu on ipynb with this code. model = whisper.load_model("medium", 'cpu') result = model.transcribe("TEST.mp3") result However when I try to run it with cuda, I get this er...
github.com
'기타' 카테고리의 다른 글
GPU 사용 환경 만들기 (0) | 2023.11.23 |
---|---|
[인텔리제이] 멀티 서버 실행하기 / 동일한 springboot 서버 여러개 실행 (0) | 2023.09.10 |
L4 도메인으로 접속이 안되는 현상 (0) | 2023.05.15 |
- Total
- Today
- Yesterday
- mysql
- 전자정부프레임워크
- springboot
- 현대
- Kubernetes
- java 코테
- 도커
- 자바스크립트
- 스프링
- 자바
- 아파치카프카
- softeer
- 리액트
- Docker
- centos
- 자바코테
- Spring
- 오토에버코테
- react
- Linux
- java
- 현대코테
- tomcat
- softeer java
- javascript
- 톰캣
- 현대오토에버
- 코테
- 쿠버네티스
- 코딩테스트
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |