# Vector Search course (On Demand) - lesson 2 lab seems not working

**URL:** <https://discuss.elastic.co/t/vector-search-course-on-demand-lesson-2-lab-seems-not-working/380264>\
**Category:** Elastic Training\
**Tags:** docker\
**Created:** [July 18, 2025, 4:33pm UTC](https://discuss.elastic.co/t/vector-search-course-on-demand-lesson-2-lab-seems-not-working/380264 "2025-07-18T16:33:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfarolfi](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@dfarolfi](https://discuss.elastic.co/u/dfarolfi)\
**Post date:** [July 18, 2025, 4:33pm UTC](https://discuss.elastic.co/t/vector-search-course-on-demand-lesson-2-lab-seems-not-working/380264/1 "2025-07-18T16:33:00Z")

</div>

Course: Vector Search Course (On demand)  
Version:  
Question:  
I am following Vector Search course, Lesson 2 lab breaks on this instruction

```auto
docker run -it --rm --network host \
docker.elastic.co/eland/eland:8.9.0 eland_import_hub_model \
--url https://localhost:9200 -u training -p nonprodpwd \
--hub-model-id sentence-transformers/msmarco-MiniLM-L-12-v3 \
--task-type text_embedding --insecure

```

Error is

```auto
INFO : Establishing connection to Elasticsearch
/usr/local/lib/python3.9/dist-packages/elasticsearch/_sync/client/ __init__.py:397: SecurityWarning: Connecting to 'https://localhost:9200' using TLS with verify_certs=False is insecure
  _transport = transport_class(
/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
2025-07-18 16:16:03,919 INFO : Connected to cluster named 'cluster1' (version: 8.16.0)
2025-07-18 16:16:03,921 INFO : Loading HuggingFace transformer tokenizer and model 'sentence-transformers/msmarco-MiniLM-L-12-v3'
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/transformers/configuration_utils.py", line 594, in _get_config_dict
    resolved_config_file = cached_path(
  File "/usr/local/lib/python3.9/dist-packages/transformers/file_utils.py", line 1921, in cached_path
    output_path = get_from_cache(
  File "/usr/local/lib/python3.9/dist-packages/transformers/file_utils.py", line 2131, in get_from_cache
    raise OSError(
OSError: Distant resource does not have an ETag, we won't be able to reliably ensure reproducibility.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/eland_import_hub_model", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/dist-packages/eland/cli/eland_import_hub_model.py", line 235, in main
    tm = TransformerModel(
  File "/usr/local/lib/python3.9/dist-packages/eland/ml/pytorch/transformers.py", line 617, in __init__
    self._tokenizer = transformers.AutoTokenizer.from_pretrained(
  File "/usr/local/lib/python3.9/dist-packages/transformers/models/auto/tokenization_auto.py", line 484, in from_pretrained
    config = AutoConfig.from_pretrained(
  File "/usr/local/lib/python3.9/dist-packages/transformers/models/auto/configuration_auto.py", line 637, in from_pretrained
    config_dict, _ = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/transformers/configuration_utils.py", line 546, in get_config_dict
    config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/transformers/configuration_utils.py", line 630, in _get_config_dict
    raise EnvironmentError(
OSError: Can't load config for 'sentence-transformers/msmarco-MiniLM-L-12-v3'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'sentence-transformers/msmarco-MiniLM-L-12-v3' is the correct path to a directory containing a config.json file

```

How to fix ? Any alternative way to proceed with the uploading of the designed model to Elastic ?

---

<div class="post-metadata">

**Author:** ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)\
**Post date:** [July 19, 2025, 2:10am UTC](https://discuss.elastic.co/t/vector-search-course-on-demand-lesson-2-lab-seems-not-working/380264/2 "2025-07-19T02:10:12Z")

</div>

Hello @dfarolfi

You need to run below

```
docker run -it --rm --network host \
docker.elastic.co/eland/eland:8.9.0 eland_import_hub_model \
--url https://localhost:9200 -u elastic -p nonprodpwd \
--hub-model-id sentence-transformers/msmarco-MiniLM-L12-v3 \
--task-type text_embedding --insecure

```

msmarco-MiniLM-L-12-v3 =\> msmarco-MiniLM-L12-v3

Same issue as [ESRE Engineer Course Labs 5.1 - #2 by TimBosman](https://discuss.elastic.co/t/esre-engineer-course-labs-5-1/379031/2)

Thanks!!

---

<div class="post-metadata">

**Author:** ![dfarolfi](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@dfarolfi](https://discuss.elastic.co/u/dfarolfi)\
**Post date:** [July 19, 2025, 4:40pm UTC](https://discuss.elastic.co/t/vector-search-course-on-demand-lesson-2-lab-seems-not-working/380264/3 "2025-07-19T16:40:38Z")

</div>

Thank you for the tip, but this did not completely solved (though greatly helped).  
I was successful running command below, after noticing that lab was actually running under version 8.16.0

```auto
docker run -it --rm --network host \
    docker.elastic.co/eland/eland:8.16.0 eland_import_hub_model \
    --url https://localhost:9200 -u training -p nonprodpwd \
    --hub-model-id sentence-transformers/msmarco-MiniLM-L12-v3 \
    --task-type text_embedding --insecure

```
