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

**URL:** <https://discuss.huggingface.co/t/python-program-all-the-way-cannot-identify-the-model-bloom-modelsmodel/48042>\
**Category:** Beginners\
**Created:** [July 25, 2023, 8:43am UTC](https://discuss.huggingface.co/t/python-program-all-the-way-cannot-identify-the-model-bloom-modelsmodel/48042 "2023-07-25T08:43:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewEpoch](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@NewEpoch](https://discuss.huggingface.co/u/NewEpoch)\
**Post date:** [July 25, 2023, 8:43am UTC](https://discuss.huggingface.co/t/python-program-all-the-way-cannot-identify-the-model-bloom-modelsmodel/48042/1 "2023-07-25T08:43:32Z")

</div>

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.
