Commit 4501634
[GPU] Enable dynamic quantization for MXFP4 & regular FP4 dtypes (#36944)
### Details:
- This is a continuation of the fp8 [PR
#35283](#35283) that
introduced f8e4m3 and f8e5m2 support.
- This PR extends the fp8 implementation by adding support for f4e2m1
and its microscaling (mx) variation.
- The PR builds upon the existing FP8 utility functions and extends them
to handle FP4 types in OpenCL code.
- Similar to the fp8 implementation, f4e2m1 is only enabled for dynamic
quantization
- Dynamic quantize op is extended with OpenCL kernel support for fp4
data types (building upon the existing kernel infrastructure for fp8).
- Fully connected op is enabled to accept fp4 & mxfp4 inputs (oneDNN
only).
- All transformations and optimizations introduced in the mxfp8 PR are
compatible with the new fp4 data types
- Testing approach follows the same methodology as the mxfp8
implementation
### Tickets:
- CVS-172558
---------
Signed-off-by: intelgaoxiong <xiong.gao@intel.com>
Signed-off-by: hyunback <hyunback.kim@intel.com>
Signed-off-by: Maxim Vafin <maxim.vafin@intel.com>
Signed-off-by: Andrii Staikov <andii.staikov@intel.com>
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: p-wysocki <przemyslaw.wysocki@intel.com>
Signed-off-by: HU Yuan2 <yuan2.hu@intel.com>
Signed-off-by: Pawel Raasz <pawel.raasz@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Min, Byungil <byungil.min@intel.com>
Signed-off-by: Andrew Park <andrew.park@intel.com>
Signed-off-by: wenzengc <wenzeng.chen@intel.com>
Signed-off-by: alexandruenache1111 <alexandru.enache@intel.com>
Signed-off-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
Signed-off-by: Sorin Butnariu <sorin.butnariu@intel.com>
Signed-off-by: Andrii Staikov <andrii.staikov@intel.com>
Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
Signed-off-by: Chen, Peter <peter.chen@intel.com>
Signed-off-by: Min,Byung-il <byungil.min@intel.com>
Signed-off-by: yuan.xiong <yuan.xiong@intel.com>
Signed-off-by: Stefania Hergane <stefania-persida.hergane@intel.com>
Signed-off-by: xiping.yan <xiping.yan@intel.com>
Signed-off-by: xipingya <xiping.yan@intel.com>
Signed-off-by: Stepan <patrik.stepan@intel.com>
Signed-off-by: Vasanth Tovinkere <vasanth.tovinkere@intel.com>
Signed-off-by: Xin Wang <xin1.wang@intel.com>
Signed-off-by: Alina Kladieva <alina.kladieva@intel.com>
Signed-off-by: zhanmyz <yazhan.ma@intel.com>
Signed-off-by: Kang, Wenjing <wenjing.kang@intel.com>
Signed-off-by: Kirill Suvorov <kirill.suvorov@intel.com>
Signed-off-by: Doronin, Maksim <maksim.doronin@intel.com>
Signed-off-by: Skrebkov, Artemy <artemy.skrebkov@intel.com>
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Signed-off-by: hyunback.kim <hyunback.kim@intel.com>
Co-authored-by: Alina Kladieva <alina.kladieva@intel.com>
Co-authored-by: Tomasz Krupa <tomasz.krupa@intel.com>
Co-authored-by: Olena Onyshchenko <olena.onyshchenko@intel.com>
Co-authored-by: intelgaoxiong <xiong.gao@intel.com>
Co-authored-by: Michael Frank Hansen <michael.f.hansen@intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
Co-authored-by: Sorin Butnariu <sorin.butnariu@intel.com>
Co-authored-by: hyunback kim <hyunback.kim@intel.com>
Co-authored-by: Arseniy Obolenskiy <arseniy.obolenskiy@intel.com>
Co-authored-by: Anastasiya(Asya) Pronina <anastasiya.pronina@intel.com>
Co-authored-by: piyush kumar <150425540+Sujanian1304@users.noreply.github.com>
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>
Co-authored-by: Andrii Staikov <andrii.staikov@intel.com>
Co-authored-by: Vasily Shamporov <vasily.shamporov@intel.com>
Co-authored-by: Pawel Raasz <pawel.raasz@intel.com>
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
Co-authored-by: Jade Cho <jade.cho@intel.com>
Co-authored-by: sys-openvino-ci <sys_openvino_ci@intel.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mingyu Kim <mingyu.kim@intel.com>
Co-authored-by: Oleg Pipikin <oleg.pipikin@intel.com>
Co-authored-by: Chenhu Wang <chenhu.wang@intel.com>
Co-authored-by: Ryan Metcalfe <107415876+RyanMetcalfeInt8@users.noreply.github.com>
Co-authored-by: Alexey Smirnov <alexey.smirnov@intel.com>
Co-authored-by: Ekaterina Shiryaeva <ekaterina.shiriaeva@intel.com>
Co-authored-by: Sungeun Kim <sungeun.kim@intel.com>
Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com>
Co-authored-by: Yuan Hu <yuan2.hu@intel.com>
Co-authored-by: zaixing.wang <zaixing.wang@intel.com>
Co-authored-by: Alicja Miloszewska <alicja.miloszewska@intel.com>
Co-authored-by: Bo Liu <bo4.liu@intel.com>
Co-authored-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Co-authored-by: Andrei Kashchikhin <andrey.kashchikhin@intel.com>
Co-authored-by: Mircea-Aurelian Dan <mircea-aurelian.dan@intel.com>
Co-authored-by: Min, Byungil <byungil.min@intel.com>
Co-authored-by: Ashutosh Singh <ashutosh.singh@intel.com>
Co-authored-by: Andrew Kwangwoong Park <andrew.park@intel.com>
Co-authored-by: Siddhant Shekhar <shekharsiddhant93@gmail.com>
Co-authored-by: Pavel Durandin <pavel.durandin@intel.com>
Co-authored-by: Dmitry Matveev <dmitry.matveev@intel.com>
Co-authored-by: Roman Lyamin <Roman.Lyamin@intel.com>
Co-authored-by: Eddy Kim <eddy.kim@intel.com>
Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
Co-authored-by: Wenzeng Chen <wenzeng.chen@intel.com>
Co-authored-by: Taylor Yeonbok Lee <taylor.lee@intel.com>
Co-authored-by: Andrey Babushkin <andrey.babushkin@intel.com>
Co-authored-by: Alexandru Enache <alexandru.enache@intel.com>
Co-authored-by: Vigh Sebastian <sebastian-robert.vigh@intel.com>
Co-authored-by: Denis Orlov <denis.orlov@intel.com>
Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
Co-authored-by: Evgeny Kotov <evgeny.kotov@intel.com>
Co-authored-by: Daria Mityagina <daria.mityagina@intel.com>
Co-authored-by: ashwins990 <ashwin.sekhar@fujitsu.com>
Co-authored-by: Aleksandr Voron <aleksandr.voron@intel.com>
Co-authored-by: Michal Miotk <michal.miotk@intel.com>
Co-authored-by: liang <liang.gao@intel.com>
Co-authored-by: Lei Chen <lei5.chen@intel.com>
Co-authored-by: Maksim Doronin <maksim.doronin@intel.com>
Co-authored-by: Surya Siddharth Pemmaraju <surya.siddharth.pemmaraju@intel.com>
Co-authored-by: David Nam <david.nam@intel.com>
Co-authored-by: Paul Youngsoo Ahn <paul.y.ahn@intel.com>
Co-authored-by: Kamil Wieloch <113444477+kwieloch-intel@users.noreply.github.com>
Co-authored-by: Wanglei Shen <wanglei.shen@intel.com>
Co-authored-by: Dan Liu <dan1.liu@intel.com>
Co-authored-by: Stefania Hergane <stefania-persida.hergane@intel.com>
Co-authored-by: Szymon Gutaj <szymon.gutaj@intel.com>
Co-authored-by: Razvan Apetroaie <razvan-mihai.apetroaie@intel.com>
Co-authored-by: Wilson Seok <wilson.seok@intel.com>
Co-authored-by: Nikolay Proshunin <nikolay.proshunin@intel.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: whitneyfoster <whitney.foster@intel.com>
Co-authored-by: Nikolay Shchegolev <nikolay.shchegolev@intel.com>
Co-authored-by: Chon Ming Lee <chon.ming.lee@intel.com>
Co-authored-by: Susanta Bhattacharjee <susanta.bhattacharjee@intel.com>
Co-authored-by: Mateusz Mikolajczyk <mateusz.mikolajczyk@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
Co-authored-by: Maksim Kutakov <maksim.kutakov@intel.com>
Co-authored-by: river.li <river.li@intel.com>
Co-authored-by: ceciliapeng2011 <cecilia.peng@intel.com>
Co-authored-by: Luo Cheng <cheng.luo@intel.com>
Co-authored-by: Li, Tingqian <tingqian.li@intel.com>
Co-authored-by: rnwang04 <ruonan1.wang@intel.com>
Co-authored-by: Zhai, Xuejun <xuejun.zhai@intel.com>
Co-authored-by: Luwei Zhou <luwei.zhou@intel.com>
Co-authored-by: Wang Wangwang <wangwang.wang@intel.com>
Co-authored-by: Nesterov Alexander <alexander.nesterov@intel.com>
Co-authored-by: bopeng1234 <bo.peng@intel.com>
Co-authored-by: Gracjan Koscinski <gracjan.koscinski@intel.com>
Co-authored-by: Piotr Krzemiński <piotr.krzeminski@intel.com>
Co-authored-by: liang <gxgaoliang@126.com>
Co-authored-by: Egor Duplenskii <egor.duplensky@gmail.com>
Co-authored-by: Sofya Balandina <sofya.balandina@intel.com>
Co-authored-by: Xiuchuan Zhai <xiuchuan.zhai@intel.com>
Co-authored-by: Alan Zhai <zhaixiuchuan@hotmail.com>
Co-authored-by: Patrik Stepan <patrik.stepan@intel.com>
Co-authored-by: Andrey Churkin <andrey.churkin@intel.com>
Co-authored-by: Ethan Yang <ethan.yang@intel.com>
Co-authored-by: Alexey Moskalev <alexey.moskalev@intel.com>
Co-authored-by: Xiong Yuan <yuan.xiong@intel.com>
Co-authored-by: Klimenko, Mikhail <mikhail.klimenko@intel.com>
Co-authored-by: Vladislav Golubev <vladislav.golubev@intel.com>
Co-authored-by: Sun Xiaoxia <xiaoxia.sun@intel.com>
Co-authored-by: Xiping Yan <xiping.yan@intel.com>
Co-authored-by: Wiktor Kobiela <wiktor.kobiela@intel.com>
Co-authored-by: jszczepa <jaroslaw.szczepanski@intel.com>
Co-authored-by: Damian Kurek <damian.kurek@intel.com>
Co-authored-by: Arseniy Obolenskiy <gooddoog@student.su>
Co-authored-by: Tikhonov Ivan <ivan.tikhonov@intel.com>
Co-authored-by: Andrei Tamas <andrei-stefan.tamas@intel.com>
Co-authored-by: Sergey Shumihin <sergey.shumihin@intel.com>
Co-authored-by: tovinkere <vasanth.tovinkere@gmail.com>
Co-authored-by: Xin Wang <xin1.wang@intel.com>
Co-authored-by: Yaru Du <yaru.du@intel.com>
Co-authored-by: Dvoretckii, Mikhail <mikhail.dvoretckii@intel.com>
Co-authored-by: czekun <chen.zekun@intel.com>
Co-authored-by: Nikita Kudriavtsev <nikita.kudriavtsev@intel.com>
Co-authored-by: Weiguo Meng <weiguo.meng@intel.com>
Co-authored-by: Egor Tyuvaev <egor.tyuvaev@intel.com>
Co-authored-by: Daria Ilina <daria.ilina@intel.com>
Co-authored-by: Simon Ewing <simon.ewing@intel.com>
Co-authored-by: Pengqiang Li <pengqiang.li@intel.com>
Co-authored-by: Alexander Kalistratov <alexander.kalistratov@intel.com>
Co-authored-by: Arun Thakur <nk9599341@gmail.com>
Co-authored-by: Hannah mnq <hannah.mushtaque@gmail.com>
Co-authored-by: Artyom Anokhov <artyom.anokhov@intel.com>
Co-authored-by: Yury Gaydaychuk <yury.gaydaychuk@intel.com>
Co-authored-by: Jozef Wludzik <jozef.wludzik@intel.com>
Co-authored-by: Qiujiao Wu <qiujiao.wu@intel.com>
Co-authored-by: Yash Vijay <yash_vijay@outlook.com>
Co-authored-by: tovinkere <vasanth.tovinkere@intel.com>
Co-authored-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: Alexander Dokuchaev <alexander.dokuchaev@intel.com>
Co-authored-by: Maksim Proshin <maksim.proshin@intel.com>
Co-authored-by: Nazanin Beheshti <nazanin.beheshti@intel.com>
Co-authored-by: Eugene Smirnov <eugene.smirnov@intel.com>
Co-authored-by: Vladimir Zlobin <vladimir.zlobin@intel.com>
Co-authored-by: abhijain1204fujitsu <139222713+abhijain1204fujitsu@users.noreply.github.com>
Co-authored-by: Mang Guo <mang.guo@intel.com>
Co-authored-by: Dylan Neve <dylan.neve@intel.com>
Co-authored-by: Yazhan Ma <yazhan.ma@intel.com>
Co-authored-by: fcmiron <catalin.miron@intel.com>
Co-authored-by: Wenjing Kang <wenjing.kang@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: Kirill Suvorov <kirill.suvorov@intel.com>
Co-authored-by: Mateusz Tabaka <mateusz.tabaka@intel.com>
Co-authored-by: shiyi <shiyi.zou@intel.com>
Co-authored-by: Golubev, Andrey <andrey.golubev@intel.com>
Co-authored-by: Shagun Gupta <137595846+MissLostCodes@users.noreply.github.com>
Co-authored-by: Jaskaran Singh Nagi <jaskaran.singh.nagi@intel.com>
Co-authored-by: barnasm1 <michal.barnas@intel.com>
Co-authored-by: Prithviraj-R <prithviraj.r@intel.com>
Co-authored-by: Artemy Skrebkov <artemy.skrebkov@intel.com>
Co-authored-by: mfhansen <mfhansen@users.noreply.github.com>
Co-authored-by: Jakub Kasprzak <jakub.kasprzak@intel.com>
Co-authored-by: Koryun Khachatryan <koryun.khachatryan@intel.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Chen Xu <chen.xu@intel.com>
Co-authored-by: Chirla Darius <darius.chirla@intel.com>
Co-authored-by: Valentina Kats <valentina.kats@intel.com>
Co-authored-by: Omar Ali <110394937+om4rrr@users.noreply.github.com>
Co-authored-by: Aleksandra Głowacka <aleksandra.glowacka@intel.com>
Co-authored-by: Zhang Yi <yi3.zhang@intel.com>1 parent 5d13a5c commit 4501634
32 files changed
Lines changed: 734 additions & 33 deletions
File tree
- src
- common
- low_precision_transformations
- include/low_precision
- src
- transformations/src/transformations/fp16_compression
- plugins/intel_gpu
- src
- graph
- impls
- ocl_v2/utils
- ocl
- onednn
- kernel_selector
- cl_kernels
- include
- batch_headers
- kernels
- dynamic_quantize
- reorder
- plugin
- transformations
- tests
- functional/subgraph_tests/dynamic
- unit
- test_cases
- transformations
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| |||
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
| 310 | + | |
| 311 | + | |
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
| |||
336 | 340 | | |
337 | 341 | | |
338 | 342 | | |
| 343 | + | |
| 344 | + | |
339 | 345 | | |
340 | 346 | | |
341 | 347 | | |
| |||
365 | 371 | | |
366 | 372 | | |
367 | 373 | | |
| 374 | + | |
| 375 | + | |
368 | 376 | | |
369 | 377 | | |
370 | 378 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
36 | 47 | | |
37 | 48 | | |
38 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
323 | 335 | | |
324 | 336 | | |
325 | 337 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
0 commit comments