get_models: build facades for the caller's model configs, with async clients
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 2.4k
- Forks
- 241
- Merge medio
- 1 d 2 h
- PR fusionados (30 d)
- 96
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NVIDIA-NeMo/DataDesigner
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
NVIDIA-NeMo/DataDesigner#1129 ·
Los mantenedores suelen responder en 1 día
-
Allow huggingface-hub 2.x (widen cap from <2 to <3)Posiblemente ocupada @davanstrien la tomó hace 4 días. Abiertoenhancement triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NVIDIA-NeMo/DataDesigner#1110 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Local seed path containing a single quote breaks the DuckDB queryQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
NVIDIA-NeMo/DataDesigner#1102 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
enforce \from future import annotations` via ruff FA102 rule`Posiblemente ocupada @chethanuk la tomó hace 54 días. Abiertotask
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NVIDIA-NeMo/DataDesigner#760 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 18/100
NVIDIA-NeMo/DataDesigner#1125 ·
Los mantenedores suelen responder en 1 día
Todos los issues de NVIDIA-NeMo/DataDesigner
Issues similares
-
DBFS append mode silently overwrites existing filesPosiblemente ocupada @IlyaKhalafi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
fsspec/filesystem_spec#2429 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Retrieval rerank fallback statistics stay zero after provider failurePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
volcengine/OpenViking#7014 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
fedora-copr/copr#4600 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ansys/pydpf-core#3620 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día