Skip to content

Commit 28dd87a

Browse files
authored
Merge branch 'main' into test-ci
2 parents 4f08414 + aa0ebd2 commit 28dd87a

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.github/workflows/ci-pull-request.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: Pull Request Validation
22

33
on:
4-
pull_request:
5-
types:
6-
- opened
7-
- synchronize
8-
- reopened
94
pull_request_target:
105
types:
116
- opened

.github/workflows/reusable-integration-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
uv venv .venv
7373
source .venv/bin/activate
7474
uv pip install -e ./src -e ./api -e ./client
75+
# block pulling in breaking changes in pypdfium2 v5
7576
uv pip install \
7677
opencv-python \
7778
llama-index-embeddings-nvidia \
@@ -80,7 +81,7 @@ jobs:
8081
'milvus-lite==2.4.12' \
8182
'nvidia-riva-client==2.20.0' \
8283
'unstructured-client>=0.25.9' \
83-
'pypdfium2<5' \ # block pulling in breaking changes in pypdfium2 v5
84+
'pypdfium2<5' \
8485
tritonclient \
8586
markitdown \
8687
glom
@@ -109,4 +110,4 @@ jobs:
109110
source .venv/bin/activate
110111
echo 'Running integration tests...'
111112
unset LD_LIBRARY_PATH
112-
python -m pytest -rsx tests/integration
113+
python -m pytest -rsx -m integration tests/integration

nemo_retriever/src/nemo_retriever/model/local/llama_nemotron_embed_1b_v2_embedder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __post_init__(self) -> None:
4545
MODEL_ID = self.model_id or "nvidia/llama-3.2-nv-embedqa-1b-v2"
4646
dev = torch.device(self.device or ("cuda" if torch.cuda.is_available() else "cpu"))
4747
hf_cache_dir = self.hf_cache_dir or str(Path.home() / ".cache" / "huggingface")
48-
self._tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, cache_dir=hf_cache_dir)
48+
self._tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True, cache_dir=hf_cache_dir)
4949
self._model = AutoModel.from_pretrained(MODEL_ID, trust_remote_code=True, cache_dir=hf_cache_dir)
5050
self._model = self._model.to(dev)
5151
self._model.eval()

0 commit comments

Comments
 (0)