Download and Pin a GUI Model 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.

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
fiRead 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
Choose the source
Start from the publisher’s model page and record the exact repository.
Preview the transfer
Pin the revision and estimate the file count and storage requirement.
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.