Download and Pin a GUI Model Checkpoint

Check the official repository, choose a revision, inspect the download size and record a reproducible local checkpoint.

Record a publisher, repository ID and immutable revision before you download weights. A moving branch can change model files, tokenizer settings or processor behavior between two tests. This walkthrough prepares the official ShowUI-2B checkpoint. The same checks apply to other repositories in the model directory.

A phone, a marked coordinate grid and a compact computer on a desk
Concept illustration of the weights, screen input and runtime pieces to record together.

Inspect the official release

Open the model card and Files page. Confirm the publisher, current repository terms and the runtime used in its example. In the version checked on December 2, 2026, the publisher lists a single pytorch_model.bin weight file of about 4.42 GB. Keep the processor, tokenizer and configuration files as well. Other repositories may split weights across shards or use a different format.

Read the revision and preview the download

Install the hf CLI using the Hugging Face CLI guide. This example uses a public repository. Run all lines in the same shell.

repo=showlab/ShowUI-2B
metadata=$(curl -fsS "https://huggingface.co/api/models/$repo") &&
  revision=$(printf '%s' "$metadata" |
    python3 -c 'import json, sys; print(json.load(sys.stdin)["sha"])') ||
  revision=
if printf '%s\n' "$revision" | grep -Eq '^[0-9a-f]{40}$'; then
  printf '%s\n' "$revision"
  hf download "$repo" --revision "$revision" --dry-run
else
  printf '%s\n' "Could not verify the revision. Stop before downloading." >&2
fi

Read the dry-run total and check the target machine’s free disk space. A weight download can require additional storage for the cache, converted files and logs. The download size is separate from inference memory. If the revision lookup fails, stop and copy the full commit hash from the publisher’s file history.

Save the weights and record what you ran

Keep one reproducible model revision
  1. Choose the source

    Start from the publisher’s model page and record the exact repository.

  2. Preview the transfer

    Pin the revision and estimate the file count and storage requirement.

  3. Record what ran

    Keep the revision, file list and local inference configuration together.

After the dry run fits your budget, use a directory that includes the revision.

printf '%s\n' "$revision" | grep -Eq '^[0-9a-f]{40}$' &&
  hf download "$repo" --revision "$revision" --local-dir "models/showui-$revision"

Keep the repository ID, full revision, runtime version, device and command alongside your results. When the model server loads one directory and your client advertises a different name, record the server’s model alias separately. A model checkpoint supplies the model files. Your GUI runner still needs compatible prompts, coordinates and an execution path.

For a first evaluation, run the publisher’s grounding example with a synthetic sample screenshot. Record the raw response and check where the point lands using the offline coordinate example. Record download verification and inference results as separate checks.