EAddario
changed the title quantize: add option to automatically choose optimal quant types to reach a bpw target at lowest MSE error possible quantize: add option to automatically choose optimal quant types to reach a bpw target at lowest MSE error1 year ago
EAddario
changed the title quantize: add option to automatically choose optimal quant types to reach a bpw target at lowest MSE error quantize: add option to automatically choose optimal quant types to reach a bpw target at lowest error1 year ago
Refactor pareto optimise and convexify
9a1656eb
Refactor lagrange_penalty()
0d5f1830
Minor general refactoring
814f6b66
Refactor quantisation checks into its own function
e92db008
Fix typos in variable names
fecc472c
Refactor potential overflow
896cdc21
Fix typo
b748a1ef
Exit loop if no better solution found
c855094d
Replace slope with cross product
1fbc59f8
Fix minor logic flaw
f1844508
Adjust for small vector size
d79ade2e
Simplify candidates sorting
7ba6001e
Add comments to explain magic numbers
d36ee0a0
Increase scale multiplier
8eedcf74
Move is_iq() into a lambda and remove unused variables
a74b410f
Combine quant types
dbdd179a
Merge branch 'master' into quantize
29bb30c4
Reduce bpw range
dd4f4bd0
Refactor outlier trimming
d1694573
Tighten worker allocator
87cba659
Check for direction reversal
8a2c71f4
Simplify dequantisation
3d75b14c
Calculate bpw over all tensors
e49e241d
Compute rows based on tensor shape and slice count
b3b8a111
Prioritise important tensors
f5d8811d
Merge branch 'master' into quantize
555981b3
Select quantization type if target_bpw is set unless user specifies t…
940db631
Merge branch 'master' into quantize
fb07fe98
Minor refactoring
66d4aed1
Relax lambda clamping
560e8c9d
Add signal handler
533cda30
Add save_bpw_state()
e48ca32f
Add load_bpw_state()
02c3073b
Add delete_bpw_state()
74c62ed4
Persist progress
46706cec
Uninstall signal handler and cleanup
84ada448
Fix trimming logic
044fa783
Generate model ID hash
c11184a3
Remove bias mode computation
3a3d807f
Remove --no-bias option
c93131ce
Automatically determine if bias error is significant
5b0d3f6d
Merge branch 'master' into quantize
951de2e2
Reduce compute time by parallelising tensor processing - courtesy of …
12e0524f
Add quant types
b6094a97
Add --keep-bpw-state option
ca282302
Refactor signal handlers
b1b58e67
Update quant types
cd734b89
Minor refactoring
b7911f14
Add tensor type and depth heuristics
a6853ea2
Add option to override bpw state file name
0b3e930d
Minor refactoring
a5103933
Merge branch 'master' into quantize
41a00696
Finetune heuristics
fa1df81d
Merge branch 'master' into quantize
90402c05
Update usage
00ddf039
Fix lambda capture
543b5a99
Fix lambda capture
27bf25e9
Update epsilon specifier
04561d57
Finetune heuristics
d6ccd564
Merge branch 'master' into quantize
8da14c0f
Simplify tensor selection
53032123
Minor refactoring
f8863b9a
Read statistics from imatrix
6e32244a
Add Euclidean-Cosine score to identify important tensors
c59bb6d4
Merge branch 'master' into quantize
b02b1b23
Improved is_important() logic
ac8cfbdd
Merge branch 'master' into quantize
bdf2e741
Fix lambda capture bug in Windows and initialise candidate_types struct
a0ba9136
Remove processing statistics_data
9ec3e6e2
Add --disable-tensor-importance option
1c9993e1
Merge branch 'master' into quantize
7eb77147
Use more descriptive option naming
66160084
Relax target bpw range
69a32b6f
Minor refactoring
5b557ca9
Increase importance boost for final pass
229109f3
Add B/F16 to get_ftype()
b97cda62
Process bpw targets up to B/F16
37cf51eb
Merge branch 'master' into quantize
3f7842c6
Merge branch 'master' into quantize
e3d9b340
Merge branch 'master' into quantize
dfa79a94
Merge branch 'master' into quantize
c7cbe36a
Merge branch 'master' into quantize
db7f8e0d
Improve state checkpoint filename
5f7bba78
Add code comments
b6d718a4
Update usage()
3be3b1ef
Update README.md
311c2c9f
Update README.md
7f886128
Merge branch 'master' into quantize
b7b705f9
Change checkpoint file magic
91846ee7
Prepare for future optimization algorithms
960ef961
Merge branch 'master' into quantize
efe9c8b9
EAddariomarked this pull request as ready for review 326 days ago
EAddario
changed the title quantize: add option to automatically choose optimal quant types to reach a bpw target at lowest error quantize: add option to automatically choose optimal quant types to reach a file/bpw target size at lowest error319 days ago
Login to write a write a comment.
Login via GitHub