Repository navigation
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces support for TPU v5e, v5p, and v6e within the Slurm on GCP framework. It provides new blueprints for these TPU generations, enhances the reliability of concurrent TPU slice management, and includes critical bug fixes for job parsing and quota management. These changes ensure robust deployment and operational stability for high-performance TPU workloads on Slurm. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
|
/gemini review |
|
/gemini review |
|
@AdarshK15, |
73772c2 to
257ba97
Compare
Summary
Blueprint & Daily Tests
examples/machine-learning/tpu-v5e-v5p-v6e/):tpu-slurm-blueprint.yaml,tpu-slurm-deployment.yaml, andREADME.mdsupporting:TPU v6e (
ct6e-standard-4t),TPU v5p (
ct5p-hightpu-4t), andTPU v5e (
ct5lp-hightpu-4t) with Slurm 26.05 (aci-tpu-v5e-v5p-v6e-u2204-slurm-2605-amd64) and Managed Lustre.tpu_machine_typeautomatically selects the required boot disk type (hyperdisk-balancedfor v6e,pd-balancedfor v5p/v5e) and default staticaccelerator_topology(2x2x1for v5p,2x2for v6e/v5e) whentpu_accelerator_topologyis left null.tools/cloud-build/daily-tests/):ml-tpu-v6e-onspot-slurm,ml-tpu-v5p-onspot-slurm,ml-tpu-v5e-onspot-slurm).test-tpu-slurm.ymlto checkConstrainDevices=nofor dual-core-per-chip TPUs (tpu7x,v5p) andConstrainDevices=yesfor single-core-per-chip TPUs (v6e,v5e).Key Changes & Bug Fixes
conf_v2605.py:enable_async_replytoSlurmctldParameterswhen TPU nodesets are present.Type=<tpu_type>fromcloud_gres.confentries (Name=tpu File=/dev/vfio/devices/vfio[0-3]) to match Slurm 26.05'sgres/tpuplugin expectations.mig_flex.py&resume.py:resume_tpu_chunks()to provision multiple TPU slices concurrently viautil.map_with_futuresinstead of sequentially, isolating per-slice failures._tpu_shared_resource_lock) and a short wait on HTTP 409 ("already exists") inget_instance_template_copy()and_ensure_tpu_workload_policy()to prevent race conditions during concurrent TPU slice resume.mig_self_linkconstruction duringcreateInstancesrollback so_delete_tpu_mig()uses the zonal API when cleaning up failed zonal TPU MIGs.slurmsync.py:get_node_action()for terminated TPU instances to transition directly toNodeActionPowerDownForcewith a clear reason ("Spot instance preempted"or"Instance terminated") so allocated/mixed nodes power down and clean up their MIGs immediately instead of taking multiple sync cycles.util.py:Lookup.get_jobs()to splitscontrol show jobsoutput on\n\n+(?=JobId=\d+)instead of\n\n(andReqNodeList=(\S+)), preventing crashes when jobCommand=fields contain blank lines.find_available_zone.sh:jqquota parsing incheck_filestore_quota()andcheck_lustre_quota()(|vsoroperator precedence in the.dimensionsfallback, and defaulting missing.details.valuefields to"0"before converting to number).