# Model loading in Colab but not Jupyterlab?!

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodel-loading-in-colab-but-not-jupyterlab%2F154082%3E%5C
**Category:** Spaces\
**Created:** [May 8, 2025, 8:37am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodel-loading-in-colab-but-not-jupyterlab%2F154082 "2025-05-08T08:37:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [May 8, 2025, 11:55pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodel-loading-in-colab-but-not-jupyterlab%2F154082%2F2 "2025-05-08T23:55:50Z")

</div>

Since it includes models close to the latest ones such as Gemma 3, the Transoformers version is likely to be almost the latest. In fact, even older Transoformers models should work with the Llama architecture. This is indeed a strange error. The cause is probably not the code or the model itself.

There seems to be a possibility of errors occurring in hf\_transfer related to Jupyter. In other words, there may be an error in the download.

> [@AutoTokenizer.from\_pretrained() suddenly raises an error](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotokenizer-from-pretrained-suddenly-raises-an-error%2F153809%2F4)%3A
>
> OK since this was an EnvironmentError I checked everything and I think I have found the culprit. In my bashrc, I had export HF\_HUB\_ENABLE\_HF\_TRANSFER=1 set which means the problem might have something to do with an inconsistency with the hf-transfer package. Reading Hugging Face’s [Environment Variable documentation](https://huggingface.co/docs/huggingface_hub/v0.31.0/package_reference/environment_variables) gave the clue about the possibility of such incidents and undefined behavior HF\_HUB\_ENABLE\_HF\_TRANSFER Set to True to download files from the Hub using hf\_transfer. It’s a Rust-bas…

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodel-loading-in-colab-but-not-jupyterlab%2F154082)._
