Skip to content
Snippets Groups Projects
Commit 55beffa0 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Batch size

parent bf36f516
No related branches found
No related tags found
No related merge requests found
......@@ -40,10 +40,11 @@ def quantize(
strat: str = "NONE",
working_dir: PathLike = ".",
output_name: str = "calib.txt",
eval_batchsize: int = 128
):
# possible quant strats ['NONE', 'AVG', 'N_STD', 'GAUSS', 'LAPLACE']
print("Quantizing...")
dataloader = DataLoader(dataset, batch_size=1)
dataloader = DataLoader(dataset, batch_size=eval_batchsize)
# Collect Pre Quantization Stats
distiller.utils.assign_layer_fq_names(model)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment