Skip to content

Commit 447b5ad

Browse files
committed
woof
Signed-off-by: Kyle Sayers <[email protected]>
1 parent a3a9f17 commit 447b5ad

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

examples/multimodal_vision/phi3_vision_example.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from transformers import AutoModelForCausalLM, AutoProcessor
44

55
from llmcompressor.modifiers.quantization import GPTQModifier
6-
from llmcompressor.modifiers.smoothquant import SmoothQuantModifier
76
from llmcompressor.transformers import oneshot
87

98
# Load model.
@@ -16,7 +15,6 @@
1615
_attn_implementation="eager",
1716
)
1817
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
19-
processor.chat_template = processor.tokenizer.chat_template
2018

2119
# Oneshot arguments
2220
DATASET_ID = "lmms-lab/flickr30k"
@@ -68,7 +66,6 @@ def data_collator(batch):
6866

6967
# Recipe
7068
recipe = [
71-
SmoothQuantModifier(smoothing_strength=0.8),
7269
GPTQModifier(
7370
targets="Linear",
7471
scheme="W4A16",

src/llmcompressor/pipelines/sequential/helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def trace_subgraphs(
7171
concrete_args = populate_concrete_args(model, sample_input)
7272

7373
# trace
74-
breakpoint()
7574
with (
7675
calibration_forward_context(model),
7776
HooksMixin.disable_hooks(),

src/llmcompressor/transformers/finetune/data/data_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def format_calibration_data(
8181
else SequentialSampler(tokenized_calibration),
8282
"collate_fn": collate_fn,
8383
"pin_memory": True,
84+
"drop_last": False,
8485
}
8586

8687
calib_dataloader = DataLoader(tokenized_calibration, **dataloader_params)

src/llmcompressor/transformers/finetune/runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def populate_datasets(self, processor: Processor, add_labels: bool = True):
6868
:param processor: processor or tokenizer to use for dataset tokenization
6969
:param add_labels: if True, add labels column to dataset splits
7070
"""
71+
self.processor = processor # TODO: pass processor into init instead of this fn
7172
if self._data_args.dataset is None:
7273
logger.info(
7374
"Running oneshot without calibration data. This is expected for "

0 commit comments

Comments
 (0)