# Prohibition on loading models (Probable)

**URL:** <https://discuss.huggingface.co/t/prohibition-on-loading-models-probable/34656>\
**Category:** 🤗Transformers\
**Created:** [March 25, 2023, 7:25pm UTC](https://discuss.huggingface.co/t/prohibition-on-loading-models-probable/34656 "2023-03-25T19:25:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FDuCHeS](https://avatars.discourse-cdn.com/v4/letter/f/9e8a1a/32.png) [@FDuCHeS](https://discuss.huggingface.co/u/FDuCHeS)\
**Post date:** [March 25, 2023, 7:25pm UTC](https://discuss.huggingface.co/t/prohibition-on-loading-models-probable/34656/1 "2023-03-25T19:25:39Z")

</div>

Good afternoon. I’m trying to run a simple code on the Russian Yandex.DataSphere service in the local JupiterLab, which loads the model using a pipeline. But I have such a strange mistake. Can there be a ban from the huggingface service?

Это мой код

```auto
from transformers import pipeline

prompt = "Write an email about an alpaca that likes flan"
model = pipeline(model="declare-lab/flan-alpaca-xl")
model(prompt, max_length=128, do_sample=True)

```

Это моя ошибка:

## 404 Client Error: Not Found for url: huggingface. co/declare-lab/flan-alpaca-xl/resolve/main/pytorch\_model.bin 404 Client Error: Not Found for url: huggingface. co/declare-lab/flan-alpaca-xl/resolve/main/tf\_model.h5 404 Client Error: Not Found for url: huggingface. co/declare-lab/flan-alpaca-xl/resolve/main/pytorch\_model.bin 404 Client Error: Not Found for url: huggingface. co/declare-lab/flan-alpaca-xl/resolve/main/tf\_model.h5

ValueError Traceback (most recent call last)  
 in   
1 from transformers import pipeline  
2  
----\> 3 model = pipeline(model=“declare-lab/flan-alpaca-xl”)  
4 #

/usr/local/lib/python3.8/dist-packages/transformers/pipelines/ **init**.py in pipeline(task, model, config, tokenizer, feature\_extractor, framework, revision, use\_fast, use\_auth\_token, model\_kwargs, pipeline\_class, \*\*kwargs)  
541 # Will load the correct model if possible  
542 model\_classes = {“tf”: targeted\_task[“tf”], “pt”: targeted\_task[“pt”]}  
 → 543 framework, model = infer\_framework\_load\_model(  
544 model,  
545 model\_classes=model\_classes,

/usr/local/lib/python3.8/dist-packages/transformers/pipelines/base.py in infer\_framework\_load\_model(model, config, model\_classes, task, framework, \*\*model\_kwargs)  
229  
230 if isinstance(model, str):  
 → 231 raise ValueError(f"Could not load model {model} with any of the following classes: {class\_tuple}.")  
232  
233 framework = “tf” if model. **class**. **name**.startswith(“TF”) else “pt”

ValueError: Could not load model declare-lab/flan-alpaca-xl with any of the following classes: (\<class ‘transformers.models.auto.modeling\_auto.AutoModelForSeq2SeqLM’\>, \<class ‘transformers.models.auto.modeling\_tf\_auto.TFAutoModelForSeq2SeqLM’\>, \<class ‘transformers.models.t5.modeling\_t5.T5ForConditionalGeneration’\>, \<class ‘transformers.models.t5.modeling\_tf\_t5.TFT5ForConditionalGeneration’\>).
