Support pluggable backends for foundation models

Aperta
#1,176 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@LuYuan-Zjyy ci sta già lavorando.

Dal 6/11/2026.

  • #1180 di @LuYuan-Zjyy — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start with the ForecastingWorkflowConfig preset in packages/openstef-foundation-models/src/openstef_foundation_models/presets/forecasting_workflow.py, where the backend is hardcoded to the ONNX runtime, then read the InferenceBackend base class in inference/backend.py. Widen the accepted type so any InferenceBackend implementation validates, keeping the ONNX backend as the default. Done when a custom backend passes config validation and existing ONNX-based workflow tests still pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Is your feature request related to a problem?

Not a problem, but rather a limitation in one of the extension points: using different backends for foundation models.

At the moment the ForecastingWorfklowConfig preset is hardcoded to use the local ONNX runtime backend.

Trying to plug another backend (another implementation of the InferenceBackend for e.g. KServe) leads to a Pydantic validation error.

Describe the solution you'd like

Relax the types accepted by ForecastingWorfklowConfig such that any implementation of the InferenceBackend class is valid.

Keep the local ONNX runtime as the default backend used when not overriden.

Describe alternatives you've considered

Writing another implementation of BaseConfig to replace ForecastingWorkflowConfig in client code, but most of the code would be the upstream copy-pasted with the only difference being the solution suggested above.

Affected package(s)

  • openstef-core
  • openstef-models
  • openstef-beam
  • openstef-foundation-models
  • openstef-meta
  • examples / deployment
  • docs
  • not sure

Would this require breaking changes to the public API?

  • No
  • Yes
  • Not sure

Additional context

I am willing to contribute a PR to close this issue.

Lingua principale
Python
Stelle
169
Fork
59
Merge medio
4g 15h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenSTEF/openstef

Tutte le issue di OpenSTEF/openstef

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.