C.W.K.
Stream
Lesson 02 of 07 · published

TF, PyTorch, JAX — 2026년에 각자가 사는 자리

~12 min · frameworks, comparison, ecosystem

Level 0Level 0
0 XP0/78 lessons0/17 achievements
0/100 XP to next level100 XP to go0% complete

세 framework, 각자 제일 잘하는 일

Deep learning 판은 더 이상 winner-takes-all이 아니야. 2026년 기준, 세 개의 주요 시스템이 판을 나눠 가지고 있고, 각자 다른 둘이 힘들어하는 niche를 가지고 있어.

Framework강점약점
TensorFlow 2.xProduction 배포 (TF Serving, TFLite/LiteRT, TF.js, Vertex AI)research paper 속도 PyTorch보다 느림
PyTorchResearch paper, HuggingFace ecosystem, dynamic graphProduction 배포 story가 더 어려
JAXTPU 규모 training, functional transform (jit, grad, vmap, pmap)배포하려면 jax2tf bridge 필요

HuggingFace에 올라온 LLM을 fine-tune하면 PyTorch에 있게 돼. on-device inference 필요한 폰 앱 만들면 TensorFlow (TFLite)야. Google 안에서 TPU pod로 Gemini급 model 훈련시키면 JAX. 대부분 production team은 둘 다 써 — ecosystem 친절한 데서 train하고, runtime 성숙한 데서 deploy.

Keras 3가 계산을 바꿔놨어. 2023년 말에 나온 Keras 3는 완전히 새로 짠 거고, TF/PyTorch/JAX 위에서 다 돌아가는 high-level API야. model 한 번만 짜고 os.environ["KERAS_BACKEND"]만 바꾸면 원하는 엔진으로 돌아가. 이 quest에서 익히는 스킬이 셋 다에 통하는 셈.

피파의 솔직한 권유: 부족 선택하지 마. backend 고르는 건 infra 결정이지 정체성 아니야. model이 model이라는 걸 아는 코드 — Dense, Conv2D, attention — 는 셋 다에서 똑같아야 해.

Code

Keras 3 — same model, three backends·python
import os
# KERAS_BACKEND must be set BEFORE importing keras. Hard rule.
os.environ["KERAS_BACKEND"] = "jax"   # or "tensorflow", "torch"

import keras
from keras import layers, ops

model = keras.Sequential([
    keras.Input(shape=(784,)),
    layers.Dense(128, activation='relu'),
    layers.Dense(10),
])

# Use keras.ops, NOT tf.* / jnp.* / torch.*, for backend-agnostic math.
x = ops.array([[1.0] * 784])
y = ops.softmax(model(x))
print(y.shape)  # (1, 10) on every backend

External links

Exercise

paperswithcode.com 가서 최근 6개월 안의 CV paper 아무거나 봐. 공식 구현이 어떤 framework인지 확인. 그리고 TF port 있는지 검색. 그 gap이 이 lesson이 말하는 research-vs-production 갈림길이야.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.