Ray Data supports tensor columns natively: an Arrow column whose elements are NumPy ndarrays of the same shape.Documentation Index
Fetch the complete documentation index at: https://ray-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Read tensor data
read_images returns tensor columns by default:
read_numpy does the same for raw .npy files.
Build tensor columns from arrays
Transform tensor columns
numpy batch format gives you native ndarrays, which is the most ergonomic format for tensor work.
Use in training
Variable-shape tensors
For tensors with varying shapes (e.g., variable-length sequences), use a list of arrays per row:sort or groupby) don’t support variable-shape tensor columns.
Save tensor columns
Next steps
Batch inference
Run image and text models over tensor columns.
Working with LLMs
Score prompts at scale.