-
Notifications
You must be signed in to change notification settings - Fork 53
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
Lora syncer docs #320
Lora syncer docs #320
Conversation
Hi @coolkp. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
a1fd513
to
69d965a
Compare
/ok-to-test |
I don't think you uploaded the guide |
69d965a
to
e43f5e9
Compare
e16a3ee
to
9efc096
Compare
- "sql-lora=/adapters/hub/models--yard1--llama-2-7b-sql-lora-test/snapshots/0dfa347e8877a4d4ed19ee56c140fa518470028c/" | ||
- "tweet-summary=/adapters/hub/models--vineetsharma--qlora-adapter-Llama-2-7b-hf-TweetSumm/snapshots/796337d8e866318c59e38f16416e3ecd11fe5403" | ||
- 'sql-lora-0=/adapters/yard1/llama-2-7b-sql-lora-test_0' | ||
- 'sql-lora-1=/adapters/yard1/llama-2-7b-sql-lora-test_1' | ||
- 'sql-lora-2=/adapters/yard1/llama-2-7b-sql-lora-test_2' | ||
- 'sql-lora-3=/adapters/yard1/llama-2-7b-sql-lora-test_3' | ||
- 'sql-lora-4=/adapters/yard1/llama-2-7b-sql-lora-test_4' | ||
- 'tweet-summary-0=/adapters/vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm_0' | ||
- 'tweet-summary-1=/adapters/vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm_1' | ||
- 'tweet-summary-2=/adapters/vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm_2' | ||
- 'tweet-summary-3=/adapters/vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm_3' | ||
- 'tweet-summary-4=/adapters/vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm_4' |
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.
I would remove those and leave the two that the inferenceModel.yaml have, tweet-summary-0
and tweet-summary-1
:
- 'tweet-summary-0=vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm'
- 'tweet-summary-1=vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm'
- base-model: meta-llama/Llama-2-7b-hf | ||
id: sql-lora-v1 | ||
source: yard1/llama-2-7b-sql-lora-test | ||
- base-model: meta-llama/Llama-2-7b-hf | ||
id: sql-lora-v3 | ||
source: yard1/llama-2-7b-sql-lora-test | ||
- base-model: meta-llama/Llama-2-7b-hf | ||
id: sql-lora-v4 | ||
source: yard1/llama-2-7b-sql-lora-test |
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.
keep only tweet-summary-0 and 1:
- base-model: meta-llama/Llama-2-7b-hf
id: tweet-summary-0
source: vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm
- base-model: meta-llama/Llama-2-7b-hf
id: tweet-summary-1
source: vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm
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.
need to align this with https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/main/pkg/manifests/inferencemodel.yaml, so only keep the ones I mentioned in the comment above
8435721
to
310c5a8
Compare
site-src/guides/dynamic-lora.md
Outdated
ensureExist: | ||
models: | ||
- id: chatbot-v2 | ||
source: gs://[TEAM-A-MODELS-BUCKET]/chatbot-v2 |
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.
need to update those, lets only work with hugging face adapters, otherwise it will be hard to run through the guide
- '{"name": "tweet-summary-3", "path": "vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm", "base_model_name": "llama-2"}' | ||
- '{"name": "tweet-summary-4", "path": "vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm", "base_model_name": "llama-2"}' | ||
- '{"name": "sql-lora", "path": "yard1/llama-2-7b-sql-lora-test", "base_model_name": "llama-2"}' | ||
- '{"name": "tweet-summary", "path": "vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm", "base_model_name": "llama-2"}' |
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.
Lets only keep tweet-summary-0 and tweet-summary-1, and in the guide we show how we add tweet-summary-2 by modifying the inferenceModel they already created.
- base-model: meta-llama/Llama-2-7b-hf | ||
id: sql-lora-v1 | ||
source: yard1/llama-2-7b-sql-lora-test | ||
- base-model: meta-llama/Llama-2-7b-hf | ||
id: sql-lora-v3 | ||
source: yard1/llama-2-7b-sql-lora-test | ||
- base-model: meta-llama/Llama-2-7b-hf | ||
id: sql-lora-v4 | ||
source: yard1/llama-2-7b-sql-lora-test |
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.
need to align this with https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/main/pkg/manifests/inferencemodel.yaml, so only keep the ones I mentioned in the comment above
site-src/guides/dynamic-lora.md
Outdated
- id: tweet-summary-v1 | ||
source: tweet-summary-1=/adapters/vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm_1 | ||
- id: tweet-summary-v2 | ||
source: tweet-summary-2=/adapters/vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm_2 |
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.
needs to be tweet-summary-0, tweet-summary-1 (existing) and a new tweet-summary-2
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.
also, to update the configmap, we can instruct the user to:
kubectl edit dynamic-lora-config
ff6f5d5
to
0115291
Compare
Signed-off-by: Daneyon Hansen <[email protected]>
Signed-off-by: Kunjan <[email protected]>
8fdf8a4
to
9c367f9
Compare
a014d26
to
0e27f8c
Compare
Signed-off-by: Kunjan <[email protected]>
0e27f8c
to
5b31a4c
Compare
```yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: dynamic-lora-config | ||
data: | ||
configmap.yaml: | | ||
vLLMLoRAConfig: | ||
name: sql-loras-llama | ||
port: 8000 | ||
ensureExist: | ||
models: | ||
- base-model: meta-llama/Llama-2-7b-hf | ||
id: tweet-summary-0 | ||
source: vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm | ||
- base-model: meta-llama/Llama-2-7b-hf | ||
id: tweet-summary-1 | ||
source: vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm | ||
- base-model: meta-llama/Llama-2-7b-hf | ||
id: tweet-summary-2 | ||
source: vineetsharma/qlora-adapter-Llama-2-7b-hf-TweetSumm |
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.
need to close this with ```, I couldn't make a suggestion to fix that.
/lgtm This is great, thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, coolkp The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes issue #303 .