Skip to content

Enable Xet for checkpoint model downloads#1781

Merged
luke-lombardi merged 1 commit into
mainfrom
codex/checkpoint-xet-transfer
Jul 18, 2026
Merged

Enable Xet for checkpoint model downloads#1781
luke-lombardi merged 1 commit into
mainfrom
codex/checkpoint-xet-transfer

Conversation

@luke-lombardi

@luke-lombardi luke-lombardi commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • stop forcing Hugging Face Hub onto the deprecated serial HTTP transfer path for checkpoint-enabled workloads
  • keep Xet transfer scratch data on local ephemeral storage while model files remain in workspace storage
  • cover transport environment behavior in gateway tests

Staging validation

  • exact Qwen2.5-1.5B-Instruct cold deploy on RTX5090
  • model transfer: 2.88 GiB in 22.3s
  • untouched checkpoint archive: 7.97 GiB
  • scale-to-zero restore and exact chat completion: HTTP 200 in 8.64s
  • gVisor runtime restore: 6.74s

Tests

  • go test ./pkg/gateway/services -count=1

Summary by cubic

Enable Xet for checkpoint model downloads to improve transfer performance and keep workspace volumes small. Move Xet transfer cache to ephemeral storage and let the runtime choose the Hub transport.

  • New Features
    • Enable Xet for checkpoint-enabled model transfers; remove HF_HUB_DISABLE_XET and HF_HUB_ENABLE_HF_TRANSFER overrides.
    • Add HF_XET_CACHE in the ephemeral compile cache; keep model files in the workspace volume.
    • Extend gateway tests to cover env layout and transport selection.

Written for commit 35f34d4. Summary will update on new commits.

Review in cubic

@luke-lombardi
luke-lombardi marked this pull request as ready for review July 18, 2026 15:35
@luke-lombardi
luke-lombardi merged commit 65f44d0 into main Jul 18, 2026
4 checks passed
@luke-lombardi
luke-lombardi deleted the codex/checkpoint-xet-transfer branch July 18, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant