Support pluggable backends for foundation models
Maintainers usually reply within 2 days
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 58/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- machine-learning
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 169
- Forks
- 59
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 8
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenSTEF/openstef
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
Add support for LightGBM importance_type hyperparameterPossibly taken @divya234-hue claimed this 20 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
chore github-actions
Difficulty 3/5 1-2 days Newbie friendliness 67/100
Maintainers usually reply within 2 days
-
Add RMSEPossibly taken @SANJANAKUMARI83 claimed this 1 day ago. Openenhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 57/100
Maintainers usually reply within 2 days
All issues in OpenSTEF/openstef
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Model version publishes the new UK firm entity as a personPossibly taken @vahid-ahmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine.py#764 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spcl/HPCAgent-Bench#264 ·
Maintainers usually reply within 1 day