반응형
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
- opencv
- linux
- 분당맛집
- python
- ChatGPT
- OS
- ROS2
- humble
- error
- CLASS
- Torch
- openAI
- 맛집
- 판교
- timm
- string
- 딥러닝
- CUDA
- tensorflow
- 클래스
- Android
- ros
- ubuntu
- 터미널
- 스팸
- CPU
- pytorch
- socketio
- TTS
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
반응형