Skip to content

Conversation

SAKURA-CAT
Copy link
Member

修复 metax 数据格式:

  1. 删除 gpu_map 中多余的 "maca" 字段
  2. 更新 gpu_memory、gpu_name 为 memory 和 name

@SAKURA-CAT SAKURA-CAT requested review from Zeyi-Lin and Copilot June 3, 2025 13:57
@SAKURA-CAT SAKURA-CAT self-assigned this Jun 3, 2025
@SAKURA-CAT SAKURA-CAT added the 💪 enhancement New feature or request label Jun 3, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adjusts the Metax GPU metadata format by extracting the MACA version separately and normalizing key names.

  • map_metax_gpu now returns maca_version as a separate tuple element and removes "maca" from the GPU map.
  • Renamed GPU mapping fields: gpu_namename and gpu_memorymemory.
  • Cleaned up formatting: single-line subprocess.run calls and removed unused json import.
Comments suppressed due to low confidence (2)

swanlab/data/run/metadata/hardware/gpu/metax.py:48

  • Replace the mismatched closing curly quote () with a straight double-quote (") in the example for consistency.
gpu_map: {"0": { "name": "MetaX C500”, "memory": "64GB"}, "1": ...}

swanlab/data/run/metadata/hardware/gpu/metax.py:33

  • Add or update unit tests for map_metax_gpu to verify that maca_version is parsed correctly and not left in gpu_map.
driver, maca_version, gpu_map = map_metax_gpu()

@SAKURA-CAT SAKURA-CAT merged commit e7abc96 into main Jun 5, 2025
5 checks passed
@SAKURA-CAT SAKURA-CAT deleted the fix/metax branch June 5, 2025 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants