Best practices for AI video

Member lesson

Pinning versions the way open-source projects do

Lesson 5 of 10 in Best practices for AI video.

Checked against the makers' documentation on 25 September 2026.

Understand Python's Virtual Environments, Pinning, Lock Files, pip, uv | In One Video · codingjerk
Lesson

Four things drift under a working project. The Python libraries update, the model weights on Hugging Face take new commits, a ComfyUI graph's custom nodes change, and a hosted model id can be retired or swapped. Open-source projects pin each one to something that cannot move, a version and hash for libraries, a commit for weights, a saved graph and a node snapshot for ComfyUI, and they write the hosted model id and the date beside every output because that one cannot be pinned.

python librariesuv.lock, with hashesmodel weightsrevision = full commitcomfyui graphworkflow json + snapshothosted modelcan't pin: log id + date"latest" changes under you with every releasepin what you can; write down what you can't
Four things drift, so pin each one: Python libraries with a uv lock file, model weights with a full commit revision, the ComfyUI graph with its workflow JSON and a node snapshot; a hosted model cannot be pinned, so record its id and the date.
An ink drawing of a dressmaker's table with paper pattern pieces on fabric; the pinned pieces sit on their chalk lines and one unpinned piece has slid off its outline.
What you pin stays where you put it.
Member

The rest of this is for members.

You have read the opening of this lesson. The rest of it comes with a membership.

One membership covers all four courses and Brands.

  • All lessons in the four Learn courses
  • All brand breakdowns in the Brands section
  • All quizzes, flashcards and crosswords
  • An AI teacher on every lesson, for up to 60 questions a day
  • All course material published during the membership

Price

Membership is from $12 a month on the Yearly plan, which is charged at $144 once a year. Lifetime access is $59, paid once.Membership is from ₹200 a month on the Yearly plan, which is charged at ₹2,400 + GST once a year. Lifetime access is ₹3,999 + GST, paid once.

Check what stuck

Members only

You can't take this check yet.

Members answer these 3 questions and keep the ticket for this lesson. Every lesson has one.

  1. Question 1, locked

    Which of these words means this? “A file listing the exact version and hash of every package a project installed. uv writes uv.lock.”

    • Watch-for line
    • Lockfile
    • Ledger
    • Route
  2. Question 2, locked

    Which of these words means this? “A Hugging Face commit hash. Pass the full 40 characters and you get the same files every time.”

    • Motion prompt
    • Revision
    • Flicker
    • Camera move
  3. Question 3, locked

    Which of these words means this? “ComfyUI-Manager's record of the installed custom nodes, with a commit hash for each one managed by git.”

    • Snapshot
    • Release
    • Deterministic mode
    • Excluded territory

Elsewhere in the library

Hear about new courses.

Leave an email and we will tell you when something new lands. We do not write often.