Migrate to Python 3.11 for TIMO services#286
Open
rodneykinney wants to merge 2 commits into
Open
Conversation
- Update python_version in config.yaml from 3.8 to 3.11 for variants: - layout_parser - bibentry_predictor_mmda - citation_mentions - dwp-heuristic - Bump package version from 0.9.18 to 0.9.19 This resolves Python 3.8 compatibility issues with modern pip and addresses scholar#41682 layout-parser latency problems. Python 3.11 chosen for better performance and longer support lifecycle. Affects 4 TIMO services: - layout-parser-v0 - citation_mentions_v0 - bibentry-predictor-mmda-v0 - dwp-v1 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
0834a42 to
9234fe9
Compare
- Update python_version from 3.10 to 3.11 for svm-word-predictor variant - Part of Python 3.9/3.10 to 3.11 migration effort Affects word-predictor-v1 TIMO service. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.
Summary
Migrates five TIMO model configurations from Python 3.8/3.10 to Python 3.11 to resolve compatibility issues with modern pip and build tools.
Changes
python_versioninsrc/ai2_internal/config.yamlto "3.11" for variants:layout_parser(3.8 → 3.11, fixes layout-parser-v0 service)bibentry_predictor_mmda(3.8 → 3.11)citation_mentions(3.8 → 3.11)dwp-heuristic(3.8 → 3.11)svm-word-predictor(3.10 → 3.11)pyproject.tomlContext
This is part of the migration effort to resolve Python 3.8 compatibility issues documented in https://github.com/allenai/scholar/issues/41682. Python 3.8 is no longer supported by modern pip installers (requires 3.9+), causing TIMO service build failures.
Critical: The
layout-parser-v0service is experiencing high latency issues (p50 > 120s) which may be related to the failed builds and outdated Python version.Why Python 3.11?
Testing
Related Services
🤖 Generated with Claude Code