Repository navigation
refactor(docker): move ONNX override env into env/docker/variants/onnx #21829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
devashish2203
wants to merge
11
commits into
pfp-8941-env-anchors-frontend
from
pfp-8941-env-anchors-onnx
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6e806dc
refactor(docker): move ONNX override env into env/docker/variants/onnx
devashish2203 fbe81bd
chore: merge the PR below in the stack
devashish2203 410105b
chore: merge the PR below in the stack
devashish2203 15e0033
chore: merge the PR below in the stack
devashish2203 3986bd2
chore: merge the PR below in the stack
devashish2203 fda3c07
docs(docker): document ONNX variant env_file precedence
devashish2203 62ff624
chore: merge the PR below in the stack
devashish2203 2b3a1c6
chore: merge the PR below in the stack
devashish2203 fbe8dc5
chore: merge the PR below in the stack
devashish2203 8803e77
chore: merge the PR below in the stack
devashish2203 f35167d
chore: merge the PR below in the stack
devashish2203 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # ONNX semantic search for the debug quickstart (quickstartDebugBuiltinEmbedding). Arctic-embed is | ||
| # CLS-pooled and expects a query instruction prefix. The model dir stays in the override file's | ||
| # environment: it is tied to the /datahub/models mount. | ||
| EMBEDDING_PROVIDER_TYPE=onnx | ||
| ELASTICSEARCH_SEMANTIC_SEARCH_ENABLED=true | ||
| SEARCH_SERVICE_SEMANTIC_SEARCH_ENABLED=true | ||
| ONNX_EMBEDDING_MODEL_NAME=snowflake_arctic_embed_s | ||
| ELASTICSEARCH_ENTITY_INDEX_SEMANTIC_SEARCH_MODELS_SNOWFLAKE_ARCTIC_EMBED_S_VECTORDIMENSION=384 | ||
| ONNX_EMBEDDING_POOLING=cls | ||
| ONNX_EMBEDDING_QUERY_INSTRUCTION="Represent this sentence for searching relevant passages: " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # ONNX semantic search for the debug quickstart (quickstartDebugBuiltinEmbedding). Arctic-embed is | ||
| # CLS-pooled and expects a query instruction prefix. The model dir stays in the override file's | ||
| # environment: it is tied to the /datahub/models mount. | ||
| EMBEDDING_PROVIDER_TYPE=onnx | ||
| ELASTICSEARCH_SEMANTIC_SEARCH_ENABLED=true | ||
| SEARCH_SERVICE_SEMANTIC_SEARCH_ENABLED=true | ||
| ONNX_EMBEDDING_MODEL_NAME=snowflake_arctic_embed_s | ||
| ELASTICSEARCH_ENTITY_INDEX_SEMANTIC_SEARCH_MODELS_SNOWFLAKE_ARCTIC_EMBED_S_VECTORDIMENSION=384 | ||
| ONNX_EMBEDDING_POOLING=cls | ||
| ONNX_EMBEDDING_QUERY_INSTRUCTION="Represent this sentence for searching relevant passages: " |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compose appends an override file's
env_fileentries after the base service's list, so this ONNX file now wins over every layer in the base list:env/docker/gms.env,<mode>/all.env, the extension dir and the job dir. That is the reverse of the documented order, where variants sit below the extension and job layers. I confirmed it by rendering with an ad-hoc file that sets one of these keys: the ONNX value wins.Before this PR the same values sat in the override's
environment:block, which also outranksenv_file, so an ad-hoc or job file could not override them then either. The change is not a regression. It does mean the new layering doc is wrong for this variant.Either document that the ONNX variant is last, or add the variant to the base
env_filelist at its normal position. The same applies tosystem-update-debugbelow.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed: the override's
env_fileentries are appended after the service's whole list, so the ONNX variant beats the extension, job and ad-hoc layers. Kept the behaviour and documented it inenv/README.mdand next to eachenv_filein the override (fda3c07). Onlyenvironment:beats it.