AI Systems

AI systems note는 model이 어떻게 학습되고, serving되고, 측정되고, 재현되는지 설명합니다. 위치상 model concept과 infrastructure operation 사이에 있습니다.

핵심 systems 질문은 다음과 같습니다.

Model은 함수 만이 아닙니다. 동시에 training process, inference process, operational artifact입니다.

주제

AreaUse forStart
Training processtraining run, checkpoint state, distributed run behaviorTraining run, Checkpoint state, Distributed training
Inference and servingbatch/online inference, serving path, latency, throughput, capacityInference, Model serving, Inference serving
Contracts and artifactsinput/output contract, model card, versioning, run artifactInference contract, Model card, Run artifact
Reproducibilityenvironment, modules, containers, experiment tracking, public run recordsEnvironment management, Environment modules and containers, Reproducibility
Scaling and resourcesscheduling, memory/compute tradeoff, storage IO, scaling claimResource scheduling, Memory-compute tradeoff, Scaling claim contract
Deployment and reliabilitydeployment strategy, observability, failure recovery, data validationDeployment strategy, Observability, Failure recovery
Infra bridgehardware speed, storage/network, scheduler reconciliationMemory hierarchy, Storage and network, Job reconciliation

System Contract

AI system은 model weight 하나가 아니라 실행 가능한 contract입니다.

이 중 하나라도 바뀌면 같은 architecture라도 다른 system으로 취급해야 합니다.

Contract partAskStart
data어떤 snapshot, split, preprocessing을 썼는가?Data validation, Dataset split contract
model어떤 weights, tokenizer, featurizer, config인가?Model versioning, Model card
training statecheckpoint가 optimizer, scheduler, step, seed를 보존하는가?Training run, Checkpoint state
inference contractinput/output schema, batching, limits, failure format은 무엇인가?Inference contract, Inference
environmentdependency, CUDA/runtime, module/container가 고정되는가?Environment management, Environment modules and containers
evidence나중에 claim을 재구성할 artifact가 있는가?Run artifact, Reproducibility

Lifecycle Map

StageMain system riskEvidence to keep
data preparationpreprocessing drift or leakagemanifest, checksum, split rule, preprocessing code
trainingunrecoverable or non-comparable runconfig, seed, commit, checkpoint, optimizer state
evaluationmetric claim and selection rule mixedevaluation protocol, baseline, confidence interval
packagingmissing tokenizer/featurizer/configmodel card, version tag, artifact bundle
inferencedifferent preprocessing or batch policyinference contract, example IO, limits
servinglatency/throughput/capacity mismatchload test, monitoring, rollout record
failure recoverycannot explain or resume a failed runlogs, error class, recovery action, run record

Runtime Questions

Many system bugs are caused by asking the wrong layer to explain a symptom.

SymptomFirst routeThen route
training metric changes after resumeCheckpoint stateReproducible run record
offline metric is good but service output differsInference contractModel serving
GPU is underutilizedMemory-compute tradeoffGPU, Storage and IO
run cannot be reproducedReproducibilityEnvironment management
scaling claim is unclearScaling claim contractDistributed training
service latency tail is highLatency and throughputInference capacity planning
output schema changes across versionsModel versioningInference contract

Systems vs Infra

질문Systems에서 볼 것Infra에서 볼 것
모델을 어떻게 실행 단위로 만들까?Training run, InferenceHPC, GPU
serving capacity를 어떻게 잡을까?Inference capacity planning, Latency and throughputGPU memory, Hardware
결과를 나중에 검증할 수 있을까?Run artifact, Experiment lifecycleReproducibility
environment 문제가 재현성에 영향을 주나?Environment managementServer operations, HPC
bottleneck이 어디인가?Memory-compute tradeoff, Storage and IOGPU, Storage and IO

Claim Types

ClaimNeeds
model qualityevaluation protocol, split, metric, baseline, uncertainty
faster trainingmatched model/data/quality target, wall time, hardware class, precision
cheaper inferencelatency, throughput, batch size, memory, hardware class, cache policy
reproducible resultrun artifact, environment, seed, dataset version, code commit
deployable serviceinference contract, monitoring, failure mode, rollout and rollback
scalable systemscaling curve, communication cost, data loading, resource request

Do not mix these claims. A better metric does not prove a better service, and a faster service does not prove a better model.

Public Boundary

Systems notes often sit close to private runs. Public pages should keep reusable contracts and remove operational details.

KeepRemove
hardware classreal hostname, node name, IP, SSH port
generic path roleprivate absolute path
environment typeinternal module tree or registry
rounded runtime or qualitative bottleneckunpublished experiment result
public dataset versionprivate dataset path or collaborator detail
command patterncredentials, tokens, live endpoint

확인할 것

CheckWhy
bottleneck이 data loading, compute, memory, communication, scheduling 중 무엇인가?fix 위치를 code, data, hardware, scheduler 중 하나로 좁힙니다
workload가 single-device, data-parallel, sharded, pipeline, model-parallel 중 무엇인가?scaling claim과 resource request가 달라집니다
목표가 model quality, time-to-train, cost, latency, throughput, reliability 중 무엇인가?같은 system도 최적화 기준이 다르면 설계가 바뀝니다
run artifact가 commit, config, seed, dataset version, environment를 포함하는가?나중에 metric이나 failure를 다시 확인할 수 있습니다
training metric, validation metric, serving metric이 분리되어 있는가?offline 성능과 runtime 품질을 혼동하지 않습니다
deployment path가 evaluation과 같은 preprocessing과 constraint를 보존하는가?평가와 실제 실행 사이의 hidden mismatch를 줄입니다
public-facing artifact에 model card와 inference contract가 있는가?사용 범위, input/output, failure format을 명확히 합니다

27 items under this folder.