반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- GPT
- 터미널
- pytorch
- linux
- Torch
- TTS
- ubuntu
- 맛집
- socketio
- CUDA
- error
- ChatGPT
- ros
- opencv
- string
- timm
- Android
- ROS2
- python
- CLASS
- OS
- 딥러닝
- 클래스
- CPU
- tensorflow
- humble
- openAI
- 분당맛집
- 판교
- 스팸
Archives
- Today
- Total
RoBoLoG
[Python] kobert 패키지 오류: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks... 본문
Error Solution/Etc
[Python] kobert 패키지 오류: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
SKJun 2023. 2. 27. 16:49
Python 패키지인 kobert 사용시 아래와 같은 경고가 뜬다면
huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
To disable this warning, you can either:
- Avoid using `tokenizers` before the fork if possible
- Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
아래 코드를 소스코드에 넣어 해결 가능
import os
os.environ["TOKENIZERS_PARALLELISM"] = "false"
728x90
반응형