Skip to content

Commit f0a24f6

Browse files
authored
Merge branch 'main' into edwardk/fix-config-embed
2 parents f1c7523 + aa0ebd2 commit f0a24f6

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- labeled
1010

1111
concurrency:
12-
group: ${{ github.workflow }}-pr-${{ github.event.pull_request_target.number }}
12+
group: ${{ github.workflow }}-pr-${{ github.event.pull_request.number }}
1313
cancel-in-progress: true
1414

1515
jobs:
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
platform: 'linux/amd64'
3434
target: 'test'
35-
tags: 'nv-ingest:pr-${{ github.event.pull_request_target.number }}'
35+
tags: 'nv-ingest:pr-${{ github.event.pull_request.number }}'
3636
base-image: 'ubuntu'
3737
base-image-tag: 'jammy-20250415.1'
3838
test-selection: 'full'
@@ -54,10 +54,10 @@ jobs:
5454
id: check
5555
run: |
5656
HAS_ACCESS="false"
57-
if [[ "${{ github.event.pull_request_target.author_association }}" == "MEMBER" ]] || \
58-
[[ "${{ github.event.pull_request_target.author_association }}" == "COLLABORATOR" ]] || \
59-
[[ "${{ github.event.pull_request_target.author_association }}" == "OWNER" ]] || \
60-
[[ "${{ contains(github.event.pull_request_target.labels.*.name, 'ok-to-test') }}" == "true" ]]; then
57+
if [[ "${{ github.event.pull_request.author_association }}" == "MEMBER" ]] || \
58+
[[ "${{ github.event.pull_request.author_association }}" == "COLLABORATOR" ]] || \
59+
[[ "${{ github.event.pull_request.author_association }}" == "OWNER" ]] || \
60+
[[ "${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}" == "true" ]]; then
6161
HAS_ACCESS="true"
6262
fi
6363
echo "has-access=$HAS_ACCESS" >> $GITHUB_OUTPUT
@@ -72,7 +72,7 @@ jobs:
7272
with:
7373
runner: 'ubuntu-latest'
7474
timeout-minutes: 60
75-
source-ref: ${{ github.event.pull_request_target.head.sha }}
75+
source-ref: ${{ github.event.pull_request.head.sha }}
7676
secrets:
7777
AUDIO_FUNCTION_ID: ${{ secrets.AUDIO_FUNCTION_ID }}
7878
EMBEDDING_NIM_MODEL_NAME: ${{ secrets.EMBEDDING_NIM_MODEL_NAME }}

.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)