-
Notifications
You must be signed in to change notification settings - Fork 224
Feat/add lora for sglangjax #826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
32a06fd to
3af36c3
Compare
3ea01a4 to
a56ef3a
Compare
3dfcb05 to
bb7bd21
Compare
|
Hi @aolemila , thank you for the PR! Can you rebase to head and resolve the conflicts? We've removed the sglang script so it should merge into our main script. And please squash the commits. |
wang2yn84
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your PR! Left some comments.
|
Hi @wang2yn84 , thanks for your reply. I will rebase the main and modify codes according to your advice. |
|
I am rerunning scripts and fix new problems I meet. |
bb7bd21 to
e32615c
Compare
|
Hi, @wang2yn84 . I have updated codes according to your suggestions. In addition to modifications, I have passed three test cases. You can see more details in PR descriptions.
|
874bfbc to
fd80b54
Compare
fd80b54 to
401c62f
Compare
401c62f to
48c01da
Compare
wang2yn84
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better! Thank you!
48c01da to
5b87a5c
Compare
wang2yn84
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Can you squash the commits?
5b87a5c to
62c6701
Compare
done |
62c6701 to
b516523
Compare


Resolves #825.
scripts/grpo_demo_llama3_qwen2.pyto run LoRA.sglang_jax_lora_test.pyto ensureupdate_paramsworks, and put it intotpu-tests.yml.verify_update_paramswill be executed whenVERIFY_UPDATE_PARAMS_KEYis configured.Test1: Run verification of
update_paramsJAX_COMPILATION_CACHE_DIR=/tmp/jit_cache python3 tests/generate/sglang_jax_lora_test.py.Test2: Run
scripts/grpo_demo_llama3_qwen2.pywithout LoRAJAX_COMPILATION_CACHE_DIR=/tmp/jit_cache python3 scripts/grpo_demo_llama3_qwen2.py --num-batches 2 --num-test-batches 1 --root-dir=/home/gcpuser/aolemila --rollout-engine sglang_jax.Test3: Run
scripts/grpo_demo_llama3_qwen2.pywith LoRAJAX_COMPILATION_CACHE_DIR=/tmp/jit_cache python3 scripts/grpo_demo_llama3_qwen2.py --num-batches 2 --num-test-batches 1 --root-dir=/home/gcpuser/aolemila --rollout-engine sglang_jax --enable-lora --lora-target-modules all.Reference
Colab Notebook
Checklist