Closed lucasavila00 closed 7 months ago
Check your Runtime args. Pretty sure model_mode is fully deprecated.
@Qubitium thanks. I have updated https://github.com/lucasavila00/LmScript/tree/main/runpod-serverless already to use the a recent commit b2eb080501b4b4a0d72eb5a0e6be30d43811dcbd
and fixed the model_mode
usage.
I haven't tried running sglang without the work around on the recent commit. I'll do it later and I'll report the results here
I investigated it and the issue only happens if using docker, and if installing an editable and local installation pip install -e
.
I have a minimal reproduction here https://github.com/lucasavila00/sglang-repro-docker you can clone and docker-compose up --build
to reproduce it.
I think __file__
usage should be avoided - other projects are avoiding it https://github.com/scikit-learn/scikit-learn/issues/20081
Also, I wouldn't be surprised if the issue reported here https://github.com/sgl-project/sglang/pull/242#issuecomment-1968250092 was this same issue, given that both dockerfiles are installing it with pip install -e
.
@lucasavila00 Please use this PR https://github.com/sgl-project/sglang/pull/288 and confirm it fixed your docker env issue due to file usage
I'm running the runtime directly, like so:
But after upgrading from 0.1.12 to latest commit I get this error:
I fixed it by monkey-patching this field with the required path
For context, this code runs within the runpod serverless runtime and the full docker-image is available here https://github.com/lucasavila00/LmScript/tree/main/runpod-serverless