Skip to content

Snehalv dsv4 conv utility#4078

Draft
snehalv2002 wants to merge 15 commits into
mainfrom
snehalv-dsv4-conv-utility
Draft

Snehalv dsv4 conv utility#4078
snehalv2002 wants to merge 15 commits into
mainfrom
snehalv-dsv4-conv-utility

Conversation

@snehalv2002

@snehalv2002 snehalv2002 commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Description

Standalone and conversion util support for DeepSeek V4 Scanned.
FIXES: b/509930555

Tests

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@snehalv2002 snehalv2002 force-pushed the snehalv-dsv4-conv-utility branch from a201455 to e45a786 Compare June 15, 2026 19:50
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

@snehalv2002 snehalv2002 force-pushed the snehalv-dsv4-conv-utility branch 2 times, most recently from 278f2ec to b210f93 Compare June 17, 2026 16:57
- Add standalone script for scanned DeepSeek V4 checkpoint conversion.
- Add DeepSeek V4 unscanned checkpoint conversion script and validation tool.
- Refactor checkpoint conversion to cast path keys to strings and add test script for unscanned paths.

TAG=agy
CONV=6d130342-8f6e-4abd-a4c5-dbbfd7180ae5
…and shapes

- Updated SCANNED_LAYER_MAPPING to include standalone layers (0, 1, 2) and alternate scanned block ranges.
- Corrected query projection (wq_b) shapes for standard and indexer parameters.
- Updated hf_shape registry with dynamic compressor key-value projection and normalization shapes.
- Successfully verified both scanned and unscanned conversions via dry-run shape matching.

TAG=agy
CONV=6d130342-8f6e-4abd-a4c5-dbbfd7180ae5
- Updated cluster name to mlperf-v5p.
- Updated zone to europe-west4-b.
- Updated tpu-type to v5p-256.
- Updated load_parameters_path to the verified scanned DeepSeek-V4 checkpoint.
- Updated model_name to deepseek4-284b.

TAG=agy
CONV=6d130342-8f6e-4abd-a4c5-dbbfd7180ae5
…ved cluster taints

- Add dry-run manifest generation.
- Add fix_manifest.py patch step to configure reservation and toleration.
- Add kubectl apply step to submit workload.

TAG=agy
CONV=6d130342-8f6e-4abd-a4c5-dbbfd7180ae5
…ng flow

TAG=agy
CONV=6d130342-8f6e-4abd-a4c5-dbbfd7180ae5
…conflicts

TAG=agy
CONV=6d130342-8f6e-4abd-a4c5-dbbfd7180ae5
…rations

TAG=agy
CONV=6d130342-8f6e-4abd-a4c5-dbbfd7180ae5
TAG=agy
CONV=6d130342-8f6e-4abd-a4c5-dbbfd7180ae5
TAG=agy
CONV=6d130342-8f6e-4abd-a4c5-dbbfd7180ae5
…cript

TAG=agy
CONV=6d130342-8f6e-4abd-a4c5-dbbfd7180ae5
@snehalv2002 snehalv2002 force-pushed the snehalv-dsv4-conv-utility branch from 5bb1ba6 to eeda017 Compare June 23, 2026 07:23
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