[ray-update-2.56.0] Update llm_batch_inference_vision to Ray 2.56.0#887
Merged
Conversation
Co-authored-by: Aydin Abiar <Aydin-ab@users.noreply.github.com>
Contributor
Author
|
/test-template llm_batch_inference_vision |
The 2.56.0 anyscale/ray-llm image ships numpy 1.26.4 + pyarrow 19.0.1 (scipy is compiled against numpy 1.x). Upgrading numpy to 2.2.6 via the layered lock broke scipy on import — pin the runtime versions so the reinstall is a no-op and keep the numpy-1 ABI intact. Co-authored-by: Aydin Abiar <Aydin-ab@users.noreply.github.com>
Contributor
Author
|
/test-template llm_batch_inference_vision |
Ray 2.56.0 removed the deprecated build_llm_processor alias in ray-project/ray#63569; use the canonical build_processor. Updated: - batch_inference_vision.py / batch_inference_vision_scaled.py - README.ipynb + regenerated README.md Co-authored-by: Aydin Abiar <Aydin-ab@users.noreply.github.com>
Contributor
Author
|
/test-template llm_batch_inference_vision |
Aydin-ab
approved these changes
Jul 8, 2026
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
Bump llm_batch_inference_vision to Ray 2.56.0.
Changes
BUILD.yaml:cluster_env.image_uri→anyscale/ray-llm:2.56.0-py312-cu130(was2.55.1-py311-cu128). Ray 2.56.0anyscale/ray-llmonly shipspy312-cu130, so this also moves the Python/CUDA pair (tag verified on Docker Hub).templates/llm_batch_inference_vision/job.yaml:image_uri→anyscale/ray-llm:2.56.0-py312-cu130.templates/llm_batch_inference_vision/README.md+README.ipynb: in-docimage_uriexample →anyscale/ray-llm:2.56.0-py312-cu130.dependencies/template.depsets.yaml: repoint this template'sexpandentrybuild_arg_setsray2551_py311_cu128→ray2560_py312_cu130; PyTorch--index→cu130. Theray2560_py312_cu130bundle +rayllm_2.56.0_py312_cu130.lockbase already existed from build(deps): Ray 2.56.0 image base locks (base-only) #833's follow-up, so only this expand pointer + index flipped.templates/llm_batch_inference_vision/requirements.txt: refresh the comment to referenceanyscale/ray-llm:2.56.0and pinhuggingface-hub==1.13.0to match the new base image (was0.36.2).numpy==1.26.4,pandas==2.3.3,pyarrow==19.0.1, anddatasets==3.6.0kept unchanged — the 2.56.0 ray-llm image still ships numpy 1.x + pyarrow 19 + scipy compiled against numpy 1.x (verified from the CI package diff), so keeping the numpy-1 stack is what actually lets the layered lock reinstall as a no-op.templates/llm_batch_inference_vision/batch_inference_vision.py+batch_inference_vision_scaled.py+README.ipynb/README.md: migrateray.data.llm.build_llm_processor→build_processor. Ray 2.56.0 removed the deprecatedbuild_llm_processoralias in [data][llm] Removeguided_decoding,truncate_prompt_tokens,build_llm_processorray-project/ray#63569.templates/llm_batch_inference_vision/python_depset.lockvia./update_deps.sh --name llm_batch_inference_vision_depset_2.56.0_3.12_cu130.Fix iterations
Two failure→fix cycles (both agent-fixable, not infra):
ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.6fromscipy.io._sparsetoolson firstimport datasets. The Ray 2.56.0 rayllm deplock declaresnumpy==2.2.6, but the actualanyscale/ray-llm:2.56.0-py312-cu130image still ships numpy 1.26.4 + pyarrow 19.0.1 (with scipy compiled against numpy 1.x). Fix: pin the layered lock to the runtime versions (numpy==1.26.4,pyarrow==19.0.1), matching the classic "un-pinned floats" gotcha inreferences/dependencies.md.ImportError: cannot import name 'build_llm_processor' from 'ray.data.llm'. Ray 2.56.0 removed the deprecated alias ([data][llm] Removeguided_decoding,truncate_prompt_tokens,build_llm_processorray-project/ray#63569). Fix: rename tobuild_processorin the two.pyfiles and in the notebook + regenerated README.Tests / validation
pre-commit run --all-files— passed.template-testbuild #497 — passed (~12m 40s).Publish
BUILDKITE_API_TOKENprovided to this Cloud Agent lacks thewrite_buildsscope, so this run cannot programmaticallycreate_buildontmpl-publish(see.claude/skills/template/references/publish-to-backend.md). After merge, a reviewer should trigger a freshtmpl-publishbuild (org_slug=anyscale,pipeline_slug=tmpl-publish,branch=master,message=llm_batch_inference_vision) and drive the manual gates dev → staging → production per that reference. Pipeline: https://buildkite.com/anyscale/tmpl-publish.