0Pricing
Deep Learning Academy · Lektion

Daten und Modelle versionieren

Reproduzieren Sie jeden Lauf anhand seiner Eingaben.

Daten und Modelle versionieren ist eine kostenlose Deep Learning Academy-Lektion auf CoddyKit. Dies ist Lektion 2 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Deep Learning Academy-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Deep Learning Academy-Kurs umfasst insgesamt 4 Lektionen.

Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.

Code Versioning Is Not Enough

Git tracks your code beautifully, but a model also depends on data and weights. To reproduce a result you must version those too. 🗂️

Why Data Changes Break Runs

Datasets grow, get cleaned, or get relabeled. If you cannot say which version of the data trained a model, you can never rebuild that exact result.

The Reproducibility Triangle

A run is reproducible only when three things are pinned together: the code, the data, and the trained weights. Drop any one and the result drifts.

Hash the Data

You do not store huge files in Git. Instead you record a hash, a short fingerprint of the dataset, so any change is instantly detected.

import hashlib
h = hashlib.md5(open("train.csv","rb").read()).hexdigest()

Meet DVC

DVC, Data Version Control, layers on top of Git to version large files. It stores a tiny pointer in Git and the real data in remote storage.

pip install dvc

Track a Dataset

One command tells DVC to manage a file. It replaces the heavy data with a small .dvc pointer that Git can safely commit.

dvc add data/train.csv

Push Data to Remote

The actual bytes live in cloud storage, not your repo. dvc push uploads them so teammates can pull the exact same files later.

dvc push

Version the Model Too

Save weights with a clear name that ties them to a run. Pairing a checkpoint with its commit and data hash makes the model fully traceable.

torch.save(model.state_dict(), "model_v3.pt")

Tag Releases

When a model is good enough to ship, mark that moment. A Git tag like v1.0 lets you return to the exact code, data, and weights anytime.

git tag -a v1.0 -m "first production model"

Reproduce Any Run

With everything versioned, recovery is two steps: checkout the commit, then dvc pull. You get the identical inputs that produced the original model.

git checkout v1.0
dvc pull

Versioning Builds Trust

When anyone can rebuild a result from scratch, your work becomes auditable. That trust is what separates a hobby project from production ML.

Quick Check

How does DVC keep large datasets out of Git?

Recap

You learned to version data and models: hash inputs, track files with DVC, push to remote, and tag releases so any run is reproducible. 🎉

Häufig gestellte Fragen

Ist die Lektion „Daten und Modelle versionieren“ kostenlos?

Ja — der vollständige Text von „Daten und Modelle versionieren“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Deep Learning Academy-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Deep Learning Academy-Kurs umfasst insgesamt 4 Lektionen.

Was lerne ich in „Daten und Modelle versionieren“?

Reproduzieren Sie jeden Lauf anhand seiner Eingaben. Du übst Deep Learning Academy mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.

Brauche ich Erfahrung, um Deep Learning Academy zu starten?

Keine Vorkenntnisse erforderlich. Deep Learning Academy auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 2 von 4.

Wie lange dauert die Lektion „Daten und Modelle versionieren“?

Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.

Kann ich in dieser Deep Learning Academy-Lektion Code schreiben und ausführen?

Ja. Jede Deep Learning Academy-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.

Alle Lektionen in diesem Kurs

  1. Experimente mit Weights & Biases verfolgen
  2. Daten und Modelle versionieren
  3. Daten- und Modelldrift erkennen
  4. Retraining-Pipelines automatisieren
← Zurück zu Deep Learning Academy