Skip to content

[serve.llm] Organize spread out utils.py - #53722

Merged
kouroshHakha merged 1 commit into
ray-project:masterfrom
nrghosh:organize-utils
Jun 13, 2025
Merged

kouroshHakha merged 1 commit into
ray-project:masterfrom
nrghosh:organize-utils

Conversation

@nrghosh

@nrghosh nrghosh commented Jun 10, 2025 •

Copy link
Copy Markdown
Contributor

Refactor utils.py into to llm/_internal/common

Why are these changes needed?

Related issue number

Checks

@nrghosh
nrghosh requested a review from a team as a code owner June 10, 2025 22:20
@nrghosh
nrghosh requested a review from kouroshHakha June 10, 2025 22:21
@nrghosh nrghosh changed the title [LLM-1784] - Organize spread out utils.py (serve.llm) Organize spread out utils.py Jun 10, 2025
- move to llm/_internal/common
- lint fixes

Signed-off-by: Nikhil Ghosh <[email protected]>
@nrghosh nrghosh added the go add ONLY when ready to merge, run all tests label Jun 10, 2025
@nrghosh
nrghosh requested a review from eicherseiji June 11, 2025 18:34
@kouroshHakha kouroshHakha changed the title (serve.llm) Organize spread out utils.py [serve.llm] Organize spread out utils.py Jun 13, 2025
@kouroshHakha
kouroshHakha merged commit ab1a29f into ray-project:master Jun 13, 2025
@nrghosh

nrghosh commented Jun 13, 2025

Copy link
Copy Markdown
Contributor Author

Reason for not doing a full refactor / re-org of all python/ray/llm/ utils:

_internal/common is for utilities to be shared between serve and batch (ex: download_model_utils). While the other utilities are spread out and not well organized, only import_utils fits the criteria for this. Further clean-up is left for the future.

elliot-barn pushed a commit that referenced this pull request Jun 18, 2025
Signed-off-by: Nikhil Ghosh <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
elliot-barn pushed a commit that referenced this pull request Jul 2, 2025
Signed-off-by: Nikhil Ghosh <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants