get_models: build facades for the caller's model configs, with async clients
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 45/100
Direzione di ricerca
Start with DataDesigner.get_models and _create_resource_provider in interface/data_designer.py, then read HttpModelClient's concurrency modes. Trace how configs, clients, artifact storage, and the person reader are used to decide what facade construction needs. Done means the public API can build facades from caller configs with async clients and without requiring those unrelated resources.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Priority level: Medium
Is your feature request related to a problem? Please describe.
DataDesigner.get_models(model_aliases) is the public way to get ModelFacades outside a pipeline, but it only
resolves Data Designer's default models.
- It builds an empty
DataDesignerConfigBuilder()(interface/data_designer.py,get_models), so a caller's own
ModelConfigs can't be resolved. - It creates sync clients (
ClientConcurrencyMode.SYNC), while code that awaitsfacade.acompletionneeds
async ones.
A library that configures its own models and drives the calls itself has to call the private
_create_resource_provider(name, builder, client_concurrency_mode=ASYNC) to get them. NeMo UserSim does this
for its models files, so an extension can run episodes on the same models a UserSim run uses. That private
path also brings two side effects a caller only wanting facades has to work around:
- it creates the artifact root,
./artifactsby default, in the working directory; - it builds a person reader that raises when the managed-assets path doesn't exist, as on a fresh CI machine.
Describe the solution you'd like
An optional model_configs argument, with async clients:
designer.get_models(["judge", "patient"], model_configs=[...], client_concurrency_mode=ClientConcurrencyMode.ASYNC)
- With
model_configs, the registry is built from those configs (the aliases must be among them). Without
it, behaviour is as today. - Async clients on request, or by default when
model_configsis given. - No artifact root and no person reader needed just to build facades. Facades never use either.
Describe alternatives you've considered
- The private
_create_resource_providercall, with a temporary artifact root and managed-assets path. This
is what UserSim ships now, pinned by a test so a Data Designer change that breaks it fails loudly. It works,
but it's private API. - Building
ModelRegistryand its facade factory directly: more private surface, not less.
Agent investigation
Read in 0.9.5:
DataDesigner.get_modelsand_create_resource_provider(artifact storagemkdir_if_needed, and
create_person_readerraising on a missing path);HttpModelClient's concurrency modes.
Additional context
With DD 1.0 in rc, this seems a good moment. UserSim keeps its own public function
(usersim.engine.external.model_facades) and would swap its internals to this API once it lands.
Checklist
- I've reviewed existing issues and the documentation
- This is a design proposal, not a "please build this" request
- Lingua principale
- Python
- Stelle
- 2.4k
- Fork
- 234
- Merge medio
- 23h
- PR unite (30g)
- 75
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NVIDIA-NeMo/DataDesigner
-
`ValidationColumnConfig` misaligns rows and discards the whole batch after an upstream row is droppedForse già presa @suryapilla l’ha presa 1 giorno fa. Apertatriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA-NeMo/DataDesigner#1073 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
docs: required_columns description is incomplete for LLM and multimodal columnsForse già presa @rksharma-owg l’ha presa 7 giorni fa. Apertabug triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
NVIDIA-NeMo/DataDesigner#1002 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enforce \from future import annotations` via ruff FA102 rule`Forse già presa @chethanuk l’ha presa 43 giorni fa. Apertatask
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
NVIDIA-NeMo/DataDesigner#760 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
NVIDIA-NeMo/DataDesigner#1085 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
NVIDIA-NeMo/DataDesigner#1082 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di NVIDIA-NeMo/DataDesigner
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
iceboundrock/AutoForge#304 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
fossasia/visdom-dev#77 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
aws-cloudformation/cfn-lint#4890 ·
I maintainer di solito rispondono entro 2 giorni