Repository navigation
Conversation
DzmitryPihulski
left a comment
There was a problem hiding this comment.
Hi @anush-933, thank you for your contribution! The tokenizer trust_remote_code fix and the docstring/README corrections are exactly what #110 asked for. A few things need changing before we can merge:
- Wrong argument name for the token.
vllm.LLM()takeshf_token, nottoken. Withtoken=the engine will either raiseTypeError: unexpected keyword argumentor ignore it, so gated models still won't load. Please passllm_init_args["hf_token"] = hf_token. - Keep the LoRA consistency check. #110 asked to deduplicate the
enable_loravalidation, not remove it. Right now the second check (lora_configgiven butenable_loranot set) is deleted, so--lora-pathwithout--enable-lorasilently does nothing. Either keep one copy of each check, or (nicer) make--lora-path/--lora-configimplyenable_lora=Truein the CLI. - Tests. #110 asks for a test for each fix. Mocked tests are fine (no GPU needed); see
mock_llmintests/inference/conftest.pyandtests/cli/test_model_args.pyfor the pattern:hf_tokenreachesLLM(...)ashf_token;- the tokenizer gets
trust_remote_code=Falsewhen the argument isFalse; tokenizer_kwargs/llm_kwargsoverride the explicit parameters (the documented precedence);--lora-pathfrom the CLI produces the expectedlora_configand enables LoRA.
- Remove the template files (
.github/pull_request_template.md,.github/ISSUE_TEMPLATE/feature_request.yml); they belong to #118. - Please rebase on current
main; #113 and #121 just changed the test setup so the suite runs without vLLM installed.
If you find LLMSQL useful, we'd be grateful if you could give the project a ⭐ on GitHub, it really helps us!
6af6801 to
2db7958
Compare
DzmitryPihulski
left a comment
There was a problem hiding this comment.
Hi @anush-933, thank you for the quick update! hf_token is now passed correctly, the template files are gone, and you're right that the removed LoRA check was an exact duplicate of the one above it, so --lora-path without --enable-lora still gives a clear error. Nice.
Two things left before we merge:
- Tests (point 3 of the previous review). Mocked tests are enough, no GPU needed; see
mock_llmintests/inference/conftest.pyandtests/cli/test_model_args.pyfor the pattern:hf_tokenreachesLLM(...)ashf_token;- the tokenizer gets
trust_remote_code=Falsewhen the argument isFalse; tokenizer_kwargs/llm_kwargsoverride the explicit parameters (the documented precedence);--lora-pathfrom the CLI produces the expectedlora_config.
- Please run
ruff format llmsql/_cli/inference.py: the new LoRAadd_argumentlines are over the line length.
Note that #129 was just merged and also touches llmsql/_cli/inference.py; it merges cleanly with your branch, but please update from main before pushing.
If you find LLMSQL useful, we'd be grateful if you could give the project a ⭐ on GitHub, it really helps us!
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
… LoRA args, doc fixes
…te_code, kwargs precedence, and CLI LoRA; make --lora-path imply enable_lora; ruff format
2db7958 to
dc4ff94
Compare
|
Thanks for the review! Pushed the remaining items and rebased on the latest main:
|
Fixes #110