-
Notifications
You must be signed in to change notification settings - Fork 32
chore: resync downstream content #25
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
Changes from 7 commits
358fe45
b770d1a
d576cb0
7e76164
cbbc46c
6c5211b
7674ef8
c16eebb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,6 +10,7 @@ apis: | |||||
| - telemetry | ||||||
| - tool_runtime | ||||||
| - vector_io | ||||||
| - files | ||||||
| providers: | ||||||
| inference: | ||||||
| - provider_id: vllm-inference | ||||||
|
|
@@ -44,6 +45,20 @@ providers: | |||||
| type: sqlite | ||||||
| namespace: null | ||||||
| db_path: /opt/app-root/src/.llama/distributions/rh/milvus_registry.db | ||||||
| - provider_id: ${env.MILVUS_ENDPOINT:+milvus-remote} | ||||||
| provider_type: remote::milvus | ||||||
| config: | ||||||
| uri: ${env.MILVUS_ENDPOINT:=} | ||||||
| token: ${env.MILVUS_TOKEN:=} | ||||||
| secure: ${env.MILVUS_SECURE:=} | ||||||
| consistency_level: ${env.MILVUS_CONSISTENCY_LEVEL:=} | ||||||
| ca_pem_path: ${env.MILVUS_CA_PEM_PATH:=} | ||||||
| client_pem_path: ${env.MILVUS_CLIENT_PEM_PATH:=} | ||||||
| client_key_path: ${env.MILVUS_CLIENT_KEY_PATH:=} | ||||||
| kvstore: | ||||||
| type: sqlite | ||||||
| namespace: null | ||||||
| db_path: /opt/app-root/src/.llama/distributions/rh/milvus_remote_registry.db | ||||||
| safety: | ||||||
| - provider_id: trustyai_fms | ||||||
| provider_type: remote::trustyai_fms | ||||||
|
|
@@ -66,7 +81,7 @@ providers: | |||||
| - provider_id: trustyai_lmeval | ||||||
| provider_type: remote::trustyai_lmeval | ||||||
| config: | ||||||
| use_k8s: True | ||||||
| use_k8s: ${env.TRUSTYAI_LMEVAL_USE_K8S:=true} | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainCritical: env var name and default for use_k8s PR text references LM_EVAL_USE_K8S=false, but config reads TRUSTYAI_LMEVAL_USE_K8S with default true. With kubernetes lib not installed in the image, default true can cause runtime errors. Apply one of the following (preferred: align with PR doc and default to false): - use_k8s: ${env.TRUSTYAI_LMEVAL_USE_K8S:=true}
+ use_k8s: ${env.LM_EVAL_USE_K8S:=false}Run to confirm naming and defaults across the repo: 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "Containerfile base:"
rg -n '^FROM .*python-(3\d+)' -n distribution/Containerfile
echo
echo "build.yaml container_image:"
rg -n 'container_image:' -n distribution/build.yaml
echo
echo "Env var occurrences:"
rg -n 'LM_EVAL_USE_K8S|TRUSTYAI_LMEVAL_USE_K8S' -nLength of output: 403 Critical: env var name and default for use_k8s distribution/run.yaml defaults TRUSTYAI_LMEVAL_USE_K8S to true (distribution/run.yaml:84); tests/smoke.sh sets TRUSTYAI_LMEVAL_USE_K8S=False (tests/smoke.sh:14). LM_EVAL_USE_K8S is not present. Default=true can cause runtime errors when k8s libs are not in the image. Apply one of the following (preferred: align with PR doc and default to false): - use_k8s: ${env.TRUSTYAI_LMEVAL_USE_K8S:=true}
+ use_k8s: ${env.LM_EVAL_USE_K8S:=false}Files: distribution/run.yaml:84, tests/smoke.sh:14 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| base_url: ${env.VLLM_URL:=http://localhost:8000/v1} | ||||||
| datasetio: | ||||||
| - provider_id: huggingface | ||||||
|
|
||||||
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.
🛠️ Refactor suggestion
Create directories used by the new Files API and DB paths
run.yaml writes under /opt/app-root/src/.llama/distributions/rh (and files/). Pre-create to avoid runtime failures on first boot.
Apply after the existing mkdir step:
🤖 Prompt for AI Agents