Код: Выделить всё
pip install -q huggingface_hub
< /code>
Это модуль, который импортировал < /p>
import os
from huggingface_hub import InferenceClient
# os.environ["HF_TOKEN"]="hf_xxxxxxxxxxx"
client = InferenceClient("meta-llama/Llama-3.2-3B-Instruct")
# if the outputs for next cells are wrong, the free model may be overloaded. You can also use this public endpoint that contains Llama-3.2-3B-Instruct
#client = InferenceClient("https://jc26mwg228mkj8dw.us-east-1.aws.endpoints.huggingface.cloud")
< /code>
Это ошибка, которую она показывает < /p>
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 2
1 import os
----> 2 from huggingface_hub import InferenceClient
4 # os.environ["HF_TOKEN"]="hf_xxxxxxxxxxx"
6 client = InferenceClient("meta-llama/Llama-3.2-3B-Instruct")
ModuleNotFoundError: No module named 'huggingface_hub'
Вывод списка PIP в Venv
Подробнее здесь: https://stackoverflow.com/questions/795 ... rt-warning