cabm - fix: Python 3.13 + updated dependency compatibility (pandas 2.2, PyTorch 2.11, gluonts 0.16, datasets 4.x)#256
Open
chandragupta wants to merge 1 commit intoSalesforceAIResearch:mainfrom
Conversation
…2, PyTorch 2.11, gluonts 0.16, datasets 4.x)
|
Thanks for the contribution! Before we can merge this, we need @chandragupta to sign the Salesforce Inc. Contributor License Agreement. |
Author
Already signed the CLA but the PR is wrongly labeled as cla:missing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit: Python 3.13 + updated dependency compatibility
Message:
fix: Python 3.13 + updated dependency compatibility (pandas 2.2, PyTorch 2.11, gluonts 0.16, datasets 4.x)Summary
Relaxed version pins in
pyproject.tomlto support Python 3.13 (numpy,scipy,torch,gluonts,datasets). Fixed resulting breakages across the codebase:src/uni2ts/transform/patch.py: UpdatedDEFAULT_RANGESkeys to pandas 2.2+ frequency aliases (H→h,T→min,M→ME, etc.)src/uni2ts/data/builder/simple.py: ReplacedDataset.from_generatorwithDataset.from_listto avoid Windows Arrow file-locking in datasets 4.x; added.astype("float32").squeeze()for stricter schema enforcementsrc/uni2ts/model/moirai2/forecast.py: Added_QuantilePredictionNetWrapperto adaptMoirai2Forecast.forward()output to the gluonts 0.16.xQuantileForecastGeneratorinterface (now expects((tensor,), loc, scale))test/module/test_attention.py: Updated all-masked attention assertion for PyTorch 2.11 behaviour changetest/data/builder/test_simple.py: Added explicitdel hf_datasetbeforeshutil.rmtreeto release Arrow file handles on Windowstest/transform/test_patch.py: Fixed frequency alias lookup to usenorm_freq_strREADME.md: Fixed Getting Started code block (added missingmoirai2imports, removed unused imports, replaced hardcoded lengths with variables)test/sample_test_run.py: Added end-to-end smoke test; usesforecast.quantile("p50")instead offorecast.meanto avoid gluontsQuantileForecastwarning