-
Notifications
You must be signed in to change notification settings - Fork 71
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
VLM Support via GPTQ Hooks and Data Pipelines #914
Open
kylesayrs
wants to merge
312
commits into
main
Choose a base branch
from
kylesayrs/gptq-partition
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7,694
−661
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Merged
…' into kylesayrs/gptq-partition
kylesayrs
changed the base branch from
main
to
kylesayrs/cleanup-custom-dataset
December 23, 2024 20:46
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Is this ready for review? |
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
kylesayrs
changed the title
VLM Support via GPTQ Hooks and Sequential Data Pipeline
VLM Support via GPTQ Hooks and Data Pipelines
Dec 31, 2024
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
@dsikka The PR description has been updated and the PR is ready for review. I will continue to add model evaluations to the description as they are completed. |
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Llama_3 2-Vision Graphviz
Related Issues
Prerequisites
Changes
VLM Support
examples/multimodal_vision
custom_offload_device_map
to support models which are notXForCausalLM
src/llmcompressor/transformers/utils/data_collator.py
GPTQModifier
GPTQModifier
gptq_wrapper.py
are now implemented ingptq_quantize.py
offload_hessians
parameter inGPTQModifier
GPTQModifier
sequential
pipelinelayer_sequential
pipelineoffload_hessians
Data Pipelines
LayerCompressor
as a straight-forward data pipelineIntermediatesCache
to handle activation offloadingtorch.fx
to trace the graph in order to determine where sequential targets (layers) exist in the graph and what their inputs and outputs areSubgraph
) is compiled as an executable python function with the proper inputs and outputsIntermediatesCache
to handle activation offloadingIntermediatesCache
which automagically handles the offloading and onloading of activations from batchesTuple
s and dataclasses such asBaseModelOutputWithPast
tests/llmcompressor/pipelines/test_cache.py
Tracing
# vllm-project: no copyright
was added in similar style to text_generation.pyMiscellaneous
apply_pad_mask_to_batch
custom_offload_device_map
Future Work/ Follow ups
Evaluations
lm_eval --model vllm --model_args pretrained="path/to/model",dtype=auto,max_model_len=4096,tensor_parallel_size=1,gpu_memory_utilization=0.8,enforce_eager=True,add_bos_token=True --tasks winogrande --num_fewshot 5 --batch_size 32
lm_eval --model vllm --model_args pretrained="path/to/model",dtype=bfloat16,max_model_len=4096,tensor_parallel_size=1,gpu_memory_utilization=0.8,enforce_eager=True,add_bos_token=True,max_num_seqs=1 --tasks winogrande --num_fewshot 5 --batch_size 1
Testing