딥러닝 Quantization 분석 — PTQ·QAT·INT8·INT4·Calibration
#한 줄 요약
“Quantization은 float 표현을 낮은 bit-width 정수로 바꿔 메모리·연산량을 줄이는 기법입니다.” 같은 INT8이라도 scale을 tensor 하나에 줄지 channel마다 줄지에 따라 작은 channel의 오차가 150배 넘게 달라집니다.
#어떤 상황에서 쓰나
INT8 모델을 받는 가속기(12-03에서는 INT8 TFLite 모델을 Ethos-U용 Vela에 넣었습니다)에 모델을 올리거나, flash·RAM이 부족해 weight를 줄여야 할 때입니다. LLM은 크기 때문에 더 절실합니다. 8B parameter 모델은 16-bit로 두면 weight만 16 GB 남짓이고, llama.cpp의 Llama 3.1 8B 표에서 F16 파일은 14.96 GiB, Q4_K_M은 4.58 GiB입니다.
이 글의 계산과 ONNX Runtime 실행은 Debian 13 arm64 guest의 Python 3.13.5, numpy, onnx 1.23.2, onnxruntime 1.32.0에서 돌렸습니다.
#핵심 개념
LiteRT(TFLite) quantization 명세는 INT8 값과 실수를 다음처럼 잇습니다.
real_value = (int8_value - zero_point) × scale정의를 뒤집으면 q = round(x / scale) + zero_point이고, 표현 범위를 넘는 값은 clip합니다. 같은 명세는 weight를 zero-point 0인 symmetric으로, activation을 zero-point가 범위 안 어디든 올 수 있는 asymmetric으로 둡니다. 명세의 activation은 int8이고 zero-point는 [-128, 127] 안에 옵니다. 0~6 범위의 ReLU6 출력이라면 scale = 6 / 255, zero-point = -128로 두고 아래처럼 왕복합니다.
asym int8: scale 0.023529 zp -128 q [-128, -86, -43, 0, 42, 84, 127] back [0.0, 0.9882, 2.0, 3.0118, 4.0, 4.9882, 6.0]명세는 예전 도구가 per-tensor asymmetric uint8을 썼다고 적습니다. 같은 범위를 uint8로 두면 zero-point만 0이 되고 scale은 같습니다.
적용 시점은 두 가지입니다.
| 방식 | 동작 |
|---|---|
| PTQ (Post-Training Quantization) | 학습이 끝난 모델에 calibration 입력을 흘려 activation 범위를 재고 scale을 정함 |
| QAT (Quantization-Aware Training) | 학습 중에 quantize·dequantize를 흉내 내는 node를 넣어, 양자화 오차를 본 채로 weight를 학습 |
#Granularity — per-tensor와 per-channel
symmetric·asymmetric과 적용 시점에 이어, scale을 몇 개 둘지(granularity)가 세 번째 축입니다. 명세는 weight에 per-axis(Conv의 per-channel)와 per-tensor를 둘 다 허용합니다.
차이를 숫자로 보려고, output channel마다 크기가 0.01배~2배로 다른 conv weight [8, 3, 3, 3]을 만들어 symmetric INT8로 양자화했습니다. scale을 tensor 전체에 하나 줄 때와 channel마다 줄 때, 각 channel의 최대 절대 오차를 그 channel의 최대값으로 나눈 상대 오차입니다.
ch max|w| rel.err per-tensor rel.err per-channel0 0.0233 0.5877 0.00381 0.0392 0.4578 0.00372 0.1102 0.1638 0.00393 0.1689 0.1052 0.00364 0.4500 0.0384 0.00375 1.1991 0.0151 0.00356 1.9350 0.0093 0.00397 4.6207 0.0039 0.0039non-zero int8 values per channel with the per-tensor scale: [1, 11, 22, 25, 24, 26, 27, 27] of 27per-tensor scale은 가장 큰 channel(최대 4.62)에 맞춰지므로, 가장 작은 channel 0은 27개 weight 중 26개가 0으로 반올림되어 상대 오차가 59%입니다. per-channel은 모든 channel이 0.4% 이하입니다. 자로 비유하면, 1 m 눈금 하나로 1 mm 부품과 1 m 부품을 같이 재는 것이 per-tensor, 부품마다 맞는 자를 쓰는 것이 per-channel입니다.
# per-tensor vs per-channel INT8 weight quantization on a conv weight whose# output channels have very different rangesimport numpy as nprng = np.random.default_rng(0)w = rng.normal(size=(8, 3, 3, 3)).astype(np.float32) # [out_ch, in_ch, kh, kw]w *= np.array([0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1.0, 2.0], np.float32)[:, None, None, None]
def q_sym(x, scale): # symmetric: zero_point = 0, range [-127, 127] q = np.clip(np.round(x / scale), -127, 127) return q * scale # real = (q - 0) * scale
s_t = np.abs(w).max() / 127 # one scales_c = np.abs(w).reshape(8, -1).max(axis=1) / 127 # one scale per out channel#코드 / 실제 사용 예
#ONNX Runtime static quantization
64 → 256 → 10의 작은 MLP를 onnx.helper로 만들고, 200개 calibration 입력으로 quantize_static을 돌렸습니다. QuantFormat·QuantType도 onnxruntime.quantization에서 import해야 합니다.
from onnxruntime.quantization import quantize_static, CalibrationDataReader, QuantFormat, QuantType
class Reader(CalibrationDataReader): def __init__(self, data): self.it = iter(data) def get_next(self): try: return {"input": next(self.it)} except StopIteration: return None
quantize_static( model_input="model.onnx", model_output="model_int8.onnx", calibration_data_reader=Reader(calib), quant_format=QuantFormat.QDQ, per_channel=True, activation_type=QuantType.QInt8, weight_type=QuantType.QInt8,)onnxruntime 1.32.0size fp32 77003 int8 QDQ 22629ops in quantized graph {'DequantizeLinear': 7, 'QuantizeLinear': 4, 'MatMul': 2, 'Add': 1}max relative output error: mean 0.0222, worst 0.0739; argmax agreement 98/100파일은 77,003 byte에서 22,629 byte로 줄었습니다. QDQ format은 원래 연산(MatMul, Add) 앞뒤에 QuantizeLinear·DequantizeLinear를 끼워 넣은 그래프이고, 이 실행에서는 원래 그래프의 Relu가 양자화 뒤 그래프에서 사라졌습니다. 100개 test 입력에서 FP32 출력 대비 최대 상대 오차의 평균은 2.2%, 최악 7.4%였고, 최댓값 index(분류 결과)는 100개 중 98개가 같았습니다. 실제 모델에서는 이 비교를 정확도 지표로 다시 합니다.
#TFLite PTQ INT8
LiteRT 문서의 “Post-training integer quantization” 페이지가 쓰는 API입니다. 문서 예제는 입출력 type을 tf.uint8로 두고 calibration 입력을 tf.data.Dataset.from_tensor_slices(...).batch(1).take(100)으로 만듭니다. 아래의 tf.int8 입출력과 500개 loop는 이 글의 선택입니다. 이 글의 환경에는 TensorFlow가 없어 실행하지 않았습니다.
import tensorflow as tf
converter = tf.lite.TFLiteConverter.from_keras_model(model)converter.optimizations = [tf.lite.Optimize.DEFAULT]
def representative_dataset(): for x in calib_images[:500]: yield [tf.cast(x[None, ...], tf.float32)]
converter.representative_dataset = representative_datasetconverter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]converter.inference_input_type = tf.int8converter.inference_output_type = tf.int8
tflite_int8 = converter.convert()open("model_int8.tflite", "wb").write(tflite_int8)representative_dataset이 activation 범위를 정하는 calibration 입력입니다. 실제 deploy 분포에서 뽑아야 범위가 맞습니다.
#llama.cpp quantize — LLM 4-bit
llama.cpp의 tools/quantize/README.md는 GGUF로 변환한 모델을 llama-quantize로 양자화하는 예를 보입니다.
./build/bin/llama-quantize gemma-4-E2B-it-bf16.gguf gemma-4-E2B-it-Q4_K_M.gguf Q4_K_M같은 README의 Llama 3.1 8B 표(일부)입니다. 이 표는 README에 실린 값이고 이 글에서 재지 않았습니다.
| Variant | bits/weight | size (GiB) | text generation t/s @ 128 |
|---|---|---|---|
| Q2_K | 3.1593 | 2.95 | 79.85 ±0.20 |
| Q3_K_M | 3.9960 | 3.74 | 71.68 ±0.22 |
| Q4_K_M | 4.8944 | 4.58 | 71.93 ±1.52 |
| Q5_K_M | 5.7036 | 5.33 | 67.23 ±1.08 |
| Q6_K | 6.5633 | 6.14 | 58.67 ±3.13 |
| Q8_0 | 8.5008 | 7.95 | 50.93 ±0.08 |
| F16 | 16.0005 | 14.96 | 29.17 ±0.04 |
Q4_K_M의 bits/weight는 이름의 4가 아니라 4.8944이고, 같은 README의 메모리 표에서 Llama 3.1 8B Q4_K_M 파일은 4.9 GB입니다. README는 정확도 손실을 perplexity나 KL divergence로 잰다고 설명하지만, 이 표에는 그 값이 없어 이 글도 싣지 않았습니다.
#GPTQ와 SmoothQuant
두 방법 모두 LLM용 PTQ입니다. 이 글에서는 실행하지 않았고, 설명은 각 논문의 초록에서 옮겼습니다.
- GPTQ(arXiv 2210.17323)는 “a new one-shot weight quantization method based on approximate second-order information”으로, weight를 “3 or 4 bits per weight”까지 줄이면서 정확도 저하를 무시할 수준으로 둔다고 보고합니다.
- SmoothQuant(arXiv 2211.10438)는 W8A8을 위한 training-free PTQ입니다. “weights are easy to quantize while activations are not”이라는 관찰에서 출발해, 수학적으로 동등한 변환으로 activation의 outlier 부담을 weight로 옮깁니다.
#측정 / 성능 비교
이 글에서 잰 것과 인용한 것을 나눠 적습니다.
| 항목 | 값 | 출처 |
|---|---|---|
| per-tensor vs per-channel 상대 오차, 가장 작은 channel | 0.5877 vs 0.0038 | 위 numpy 실행 |
| 작은 MLP, ORT QDQ INT8 파일 크기 | 77,003 → 22,629 byte | 위 ORT 실행 |
| 같은 MLP, argmax 일치 | 98/100 | 위 ORT 실행 |
| Llama 3.1 8B, Q4_K_M vs F16 크기 | 4.58 vs 14.96 GiB | llama.cpp quantize README |
ResNet-50 등 큰 모델의 정확도·latency는 이번에 실행하지 않았고 확인한 공개 자료도 없어 싣지 않았습니다.
#자주 보는 함정
⚠️ calibration 입력이 적거나 deploy와 다름
activation 범위는 calibration 입력에서 정해집니다. 실제 deploy 분포와 다른 입력으로 정하면 scale이 맞지 않습니다. 몇 장을 쓸지는 정확도 비교로 정하고, 낮과 밤처럼 조건이 다른 입력을 골고루 넣습니다.
⚠️ per-tensor weight scale
위 실행처럼 channel 간 크기 차이가 큰 weight에 scale 하나를 주면 작은 channel이 거의 0이 됩니다. 가속기가 per-channel을 지원하는지 먼저 봅니다.
⚠️ 양자화 식의 부호
(q - zero_point) × scale의 부호를 바꿔 쓰면 전처리가 틀립니다. 모델 input tensor의 scale·zero_point를 읽어 그대로 씁니다(12-03).
⚠️ INT8 가속기에 float 입력
INT8 모델의 입력이 int8이면, 전처리에서 위 식으로 변환해 넣어야 합니다. float를 그대로 넣으면 모델이 기대하는 범위를 벗어난 값이 들어갑니다.
#정리
- INT8 값과 실수는
real = (q - zero_point) × scale로 이어지고, weight는 symmetric, activation은 asymmetric이 명세의 기본입니다. - 크기가 다른 channel에 scale 하나를 주면 작은 channel의 오차가 150배 넘게 커집니다(위 실행 58.8% vs 0.38%).
- ONNX Runtime
quantize_static은 작은 MLP를 3.4분의 1 크기의 QDQ 모델로 바꿨고 분류 결과는 98% 일치했습니다. - LLM 4-bit 양자화의 실제 크기는 README 표의 bits/weight로 봅니다(Q4_K_M 4.89).
다음 편은 TensorRT입니다.
#관련 항목
- 12-05: TensorRT
- 12-08: Thermal
- 6-07: 온디바이스 LLM
Modern Embedded Recipes · 141 of 153 전체 목차 접기
- 1 Modern Embedded Recipes — 모던 임베디드 실전 레시피 시리즈 소개
- 2 디지털 신호 기초 — Voltage Level·Edge·Noise Margin·반사 분석
- 3 임베디드 클럭과 타이밍 — Skew·Jitter·PLL 분석
- 4 GPIO 내부 구조 분해 — Push-Pull·Open-Drain·Schmitt Trigger
- 5 UART 하드웨어 동작 분석 — Baud Rate·Framing·FIFO
- 6 SPI 하드웨어 분석 — Clock Mode·MOSI/MISO·Chip Select
- 7 I2C 하드웨어 분석 — Open-Drain·Clock Stretching·Arbitration
- 8 ADC 동작 원리 — SAR·Sigma-Delta 비교
- 9 DAC 동작 원리 — R-2R Ladder·Sigma-Delta·Settling Time
- 10 PWM 신호 생성 분석 — Duty·Frequency·Dead Time·Center-Aligned
- 11 CAN 버스 전기적 특성 — 종단·전압 레벨·GND 전위차와 1 Mbit/s 버스 길이 예산
- 12 RS-485·RS-422 차동 신호 분석 — Termination·Biasing·Topology
- 13 LVDS 차동 신호 분석 — Common-Mode·Impedance·Eye Pattern
- 14 ARM Cortex-M 시리즈 비교 — M0·M3·M4·M7·M33·M55 분석
- 15 ARM Cortex-A 시리즈 비교 — A53·A55·A72·A78·X1 분석
- 16 Cortex-M 레지스터 구조 분석 — R0~R15·xPSR·CONTROL·Mask Registers
- 17 Cortex-M4 예외 처리 — Vector Table·NVIC 우선순위·Tail-Chaining
- 18 ARM 메모리 맵 분석 — Normal·Device·Strongly-Ordered Region
- 19 Cortex-M7 캐시와 DMA — Cache Line·Write-Back·Clean/Invalidate 순서
- 20 Cortex-M4 MPU 활용 — Region 배치·Stack Guard·Task 격리
- 21 AArch64 Linux MMU 기초 — Translation Table·TLB·ASID
- 22 ARM TrustZone-M 기초 — Secure/Non-Secure·NSC·MPC
- 23 ARM Memory Barrier 실전 — DMB·DSB·ISB·DMA·MMIO
- 24 임베디드 크로스 컴파일러 분석 — GCC·Clang·Sysroot 구성
- 25 C 컴파일 4단계 — Preprocess·Compile·Assemble·Link 추적
- 26 ELF 파일 구조 분석 — Section·Segment·Symbol Table·DWARF
- 27 링커 스크립트 기초 — SECTIONS·MEMORY·entry point
- 28 링커 스크립트 고급 — Overlay·BSS·init_array·LMA/VMA
- 29 임베디드 스타트업 코드 분석 — Reset_Handler·Vector Table·SystemInit
- 30 C 런타임 crt0 분석 — Stack·BSS Zero·Data Copy·atexit
- 31 임베디드 메모리 레이아웃 — .text·.rodata·.data·.bss·.heap·.stack
- 32 임베디드 컴파일러 최적화 분석 — -O0~-O3·-Os·-LTO 비교
- 33 Map 파일 분석 — 링커가 넣은 것, 끌어온 이유, 버린 것 읽기
- 34 Make·CMake 크로스 컴파일 — Toolchain File·Sysroot·Preset
- 35 임베디드 Bootloader 체인 — BootROM·SPL·U-Boot·Kernel·Secure Boot
- 36 첫 bare-metal 프로그램 작성 — Linker·Startup·main의 최소 구성
- 37 MMIO 레지스터 직접 접근 — volatile·Memory Map·Aliasing 분석
- 38 GPIO 드라이버 직접 구현 — STM32F407을 HAL 없이 레지스터로
- 39 임베디드 클럭 설정 분석 — HSE·PLL·SYSCLK·AHB/APB 분주
- 40 Cortex-M 인터럽트 핸들링 — NVIC·Priority·Vector·EXTI
- 41 SysTick 타이머 활용 — 24-bit Counter·1ms Tick·delay 구현
- 42 UART 드라이버 구현 — polling·interrupt·DMA 3가지 방식 비교
- 43 SPI 드라이버 구현 — Master·Slave·CRC·DMA
- 44 I2C 드라이버 구현 — STM32F405/407 Master·Repeated START·Clock Stretching·Bus Recovery
- 45 임베디드 DMA 기초 — Memory-to-Memory·Peripheral·Circular Mode
- 46 저전력 모드 분석 — Sleep·Stop·Standby·Wake-up Source
- 47 STM32F405/407 IWDG·WWDG 워치독 구현 — Independent vs Window 비교
- 48 임베디드 Flash 프로그래밍 — Erase·Program·Read While Write
- 49 DDR 초기화 실패 진단 — Timing·Calibration·Walking Bit Test
- 50 PWM 출력 실전 — LED 밝기·모터 속도 제어
- 51 DC 모터 제어 — H-Bridge·PWM Duty·Encoder Feedback
- 52 스테퍼 모터 제어 — Full Step·Half Step·Microstepping
- 53 서보 모터 제어 — 50 Hz PWM·다채널·Calibration
- 54 Character LCD 제어 — HD44780·4-bit Mode·Custom Char
- 55 SPI OLED 제어 — SSD1306·Frame Buffer·Page 단위 갱신
- 56 TFT 디스플레이 구동 — ILI9341 SPI와 STM32F746 LTDC
- 57 환경 센서 활용 — BME280 온습압·SHT3x 비교
- 58 IMU 센서 활용 — MPU-6050·Data Ready·Complementary Filter
- 59 CAN 통신 구현 — bxCAN Bit Timing·Filter·Mailbox·Error 상태
- 60 USB Device 기초 — TinyUSB CDC·Descriptor·STM32F407 OTG_FS
- 61 Ethernet MAC+PHY 통합 — RMII·MDIO·lwIP Raw API
- 62 SD 카드 SPI 모드 + FatFs — 초기화·diskio 포팅·다중 블록 쓰기와 f_sync
- 63 STM32F4 RTC 활용 — Calendar·Alarm·Sub-second·Tamper·Backup Register
- 64 RTOS 도입 결정 분석 — Super Loop vs RTOS 트레이드오프
- 65 RTOS Task 설계 패턴 — 우선순위·스택·State Machine
- 66 RTOS Scheduler 동작 분석 — Tick·Context Switch·Yield
- 67 RTOS Semaphore 활용 — Binary·Counting·ISR Give
- 68 RTOS Mutex 활용 — Recursive·Priority Inheritance 적용
- 69 RTOS Queue 활용 — By-Value·By-Reference·Timeout 패턴
- 70 RTOS Event Group 활용 — Bit Wait·Sync·Notify
- 71 RTOS Software Timer 활용 — One-shot·Auto-reload·Daemon Task
- 72 ISR-Safe API 설계 — Reentrant·Atomic·Defer 패턴
- 73 Priority Inversion 진단·예방 — Mars Pathfinder Lesson 추적
- 74 Timer Wheel 분석 — Hashed·Hierarchical·O(1) Tick
- 75 RTOS 디버깅 기법 — Stack·Heap·Run-time Stats·SystemView
- 76 i.MX8M Mini EVK Linux 부팅 흐름 — BootROM에서 PID 1까지 단계별 인계
- 77 U-Boot 활용 — bootcmd·env·tftp·boot.scr 분석
- 78 Device Tree 실전 — DTS·DTB·Overlay·Phandle 추적
- 79 Device Tree Overlay 적용 — Runtime fragment·dtoverlay
- 80 임베디드 커널 빌드 — defconfig·menuconfig·Image·deb 패키지
- 81 커널 모듈 기초 — init/exit·Parameter·KBuild·modprobe
- 82 캐릭터 드라이버 작성 — file_operations·cdev·register_chrdev
- 83 Platform 드라이버 작성 — of_match·devm 해제 순서·probe 실패 판정 (Linux v6.12)
- 84 mmap 4가지 모드 — Anonymous·File·Shared·Huge Page
- 85 epoll 실전 — LT·ET·ONESHOT·EXCLUSIVE 비교
- 86 UIO·VFIO 분석 — User-Space Driver와 IOMMU 격리
- 87 sysfs·configfs 활용 — kobject 기반 User 인터페이스
- 88 IRQ Affinity 설정이 거부되거나 되돌아가는 이유 — smp_affinity·effective_affinity·isolcpus·irqbalance
- 89 루트 파일시스템 구축 — Buildroot 기초·Package·Toolchain
- 90 임베디드 동적 메모리 — malloc 위험·결정성·대안 분석
- 91 메모리 정렬과 패딩 분석 — Natural·Strict Alignment·Trap
- 92 Cache Line Alignment — alignas·Padding·SoA 적용
- 93 DMA-Friendly Allocator — dma_alloc_coherent·IOMMU·Pool
- 94 Zero-Copy Pipeline — DMA-BUF·sendfile·io_uring·splice
- 95 NUMA Memory Topology — numactl·numa_alloc·HBM 적용
- 96 SIMD 활용 분석 — Intrinsics·Auto-Vectorization·OpenMP SIMD
- 97 ARM NEON 심화 — Matrix Multiply·FFT·Image Filter 적용
- 98 임베디드 스택 분석 — high-water·overflow 탐지
- 99 임베디드 코드 크기 최적화 — -Os·LTO·Section Garbage Collection
- 100 임베디드 전력 최적화 — Sleep Mode·Clock Gating·DVFS
- 101 WCET 분석 기법 — Static·Measurement·Hybrid 방법론
- 102 Lock-Free Ring Buffer 구현 — SPSC·Power-of-2·Memory Order
- 103 Wait-Free Signaling — Atomic Flag·Sequence·Latest-Value
- 104 RCU (Read-Copy-Update) 기초 — Quiescent State·Grace Period
- 105 Hazard Pointer 분석 — Lock-Free Memory Reclamation
- 106 Compare-And-Swap 패턴 — Stack·Counter·Linked List 적용
- 107 Atomic Operation 비용 분석 — Fence·Cache Line·Contention
- 108 Spinlock vs Mutex 결정 가이드 — Context Switch·Hold Time
- 109 ABA 문제 회피 — Tagged Pointer·Hazard·Generation Counter
- 110 False Sharing 해결 — Cache Line Padding·Per-CPU·thread_local
- 111 MPMC Queue 구현 — Multi-producer Multi-consumer Lock-Free
- 112 임베디드 디버깅 마인드셋 — 가설·격리·재현·이분탐색
- 113 JTAG·SWD 안 붙을 때 — 핀·전압·속도·세션 진단
- 114 GDB 원격 디버깅 — OpenOCD·J-Link·target remote 구성
- 115 Cortex-M 하드폴트 분석 — Stacked Frame·CFSR 읽기
- 116 UART 안 찍힐 때 — Bare-metal 체크리스트
- 117 임베디드 부팅 실패 진단 — 단계별 Isolation
- 118 인터럽트 누락·중복 진단 — Priority·Pending·Re-entry 추적
- 119 메모리 오버플로우·오염 진단 — Canary·MPU·Pattern 분석
- 120 타이밍·Race 진단 — Heisenbug 잡는 법
- 121 통신 프로토콜 분석 — Logic Analyzer와 Protocol Decoder
- 122 임베디드 로깅 시스템 설계 — 레벨·버퍼·SWO·Deferred
- 123 임베디드 포스트모템 분석 — Core Dump와 Field Crash
- 124 FPGA 기초 분석 — LUT·FF·BRAM·DSP 자원 구조
- 125 Vivado 사용법 — Project·Constraint·Synth·Impl·Bitstream
- 126 PCIe BAR 매핑 분석 — Config Space·Enumeration·MMIO 접근
- 127 AXI 인터페이스 — AXI4·AXI4-Lite·AXI-Stream 비교
- 128 Zynq PS-PL 통신 — GP·HP·ACP 인터페이스 선택
- 129 Mailbox Protocol 분석 — Host와 Accelerator를 잇는 Doorbell
- 130 Command Queue·Submission Queue — NVMe·XDMA 공통 패턴
- 131 DMA Completion 메커니즘 — Interrupt·Polling·Completion Ring
- 132 PCIe Streaming 분석 — BAR Type·MSI-X·Kernel Bypass
- 133 Vitis HLS 분석 — Pragma·Pipeline II·Dataflow 실전 감각
- 134 HLS 최적화 기법 — Pipeline·Unroll·Partition·Dataflow
- 135 Vitis AI 분석 — DPU·xmodel·VART
- 136 OpenCL on FPGA — Kernel·Channel·Burst Memory 분석
- 137 Intel Quartus로 넘어가기 전 — 어느 toolchain에서나 쓰는 HDL과 testbench
- 138 Edge Inference 분석 — Cloud vs Edge·Latency·Privacy
- 139 Edge 추론 Pipeline 측정 — Stage Latency·Mailbox 정책·Buffer 수
- 140 NPU 아키텍처 분석 — Ethos·Hexagon·Systolic Array 비교
- 141 딥러닝 Quantization 분석 — PTQ·QAT·INT8·INT4·Calibration
- 142 TensorRT 분석 — ONNX→Engine·FP16·INT8·DLA·Multi-Stream
- 143 TFLite Micro 분석 — Op Resolver·Tensor Arena·Cortex-M
- 144 ONNX Runtime 분석 — Execution Provider와 Cross-Platform 배포
- 145 Edge Thermal Management — Throttling·DVFS·Fan Curve·Sustained
- 146 NVIDIA Jetson 분석 — Nano·Xavier·Orin·Thor·JetPack·DLA·VPI
- 147 Zero-Copy Camera Pipeline — V4L2·DMA-BUF·GPU Import·NPU 직결
- 148 온디바이스 LLM 추론 — llama.cpp·GGUF·MLX·KV Cache·NPU Backend
- 149 Cortex-M33 TF-M·TrustZone — Secure Firmware·PSA·MCUboot
- 150 Matter·Thread 분석 — IoT 통합 표준·Commissioning·Multi-Fabric
- 151 PCIe → CXL 진화 — 같은 PHY 위 cache-coherent 프로토콜 추가
- 152 QEMU CXL Type 3 디바이스 에뮬레이션 — 노트북에서 CXL 개발 환경 구축
- 153 Linux CXL 드라이버 분석 — cxl_pci·cxl_core·region·DAX