Python program all the way cannot identify the model 'bloom.models'model ""

Dear all,

I have cloned the HuggingFace transformer library into my local computer (win11 based), and set the PYTHONPATH environmental variable pointing to my local \bloom\ folder properly.

Thereafter, I am trying to apply the following Python code snippet to access the bloom “Question Answering” module:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
import transformers
import torch
import torchvision
from bloom.models.models.base import ModelForQuestionAnswering
print(model.question_answering(‘Who wrote Romeo and Juliet?’))
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

However, all the way I hit the following error message:

============================================================
Traceback (most recent call last):
File “D:\TrustedHub\doc\Machine_Learning_Course\Python\HuggingFace.py”, line 4, in
from bloom.models.models.base import ModelForQuestionAnswering
ModuleNotFoundError: No module named ‘bloom.models’

Then I went to the bloom site-package subfolder, but cannot find the due python file models.py over there:

============================================================
D:\TrustedHub\doc\Machine_Learning_Course\Python>python HuggingFace.py
Traceback (most recent call last):
File “D:\TrustedHub\doc\Machine_Learning_Course\Python\HuggingFace.py”, line 4, in
from bloom.models.models.base import ModelForQuestionAnswering
ModuleNotFoundError: No module named ‘bloom.models’

D:\TrustedHub\doc\Machine_Learning_Course\Python>

Can anybody help me to resolve the issue?

Thanks.