Skip to content

solve fp4 -> bf16 layout - #1473

Closed
Likai-19 wants to merge 5 commits into
hw-native-sys:masterfrom
Likai-19:fix_vcvt_fp4_layout
Closed

solve fp4 -> bf16 layout#1473
Likai-19 wants to merge 5 commits into
hw-native-sys:masterfrom
Likai-19:fix_vcvt_fp4_layout

Conversation

@Likai-19

@Likai-19 Likai-19 commented Sep 7, 2026

Copy link
Copy Markdown

看看门禁

@Likai-19
Likai-19 force-pushed the fix_vcvt_fp4_layout branch from 45da7c9 to 0b5b164 Compare September 7, 2026 01:18
Port of 0903pr46 e100a95:
- gate the VMILoadOp natural-layout seed on packed-carrier/8-bit rules,
  leave other loads unconstrained so consumer deinterleaved requests
  (e.g. channel_split) still propagate back to the load
- restrict {8->32 ls(4) c()} preferred cast row and {8->32 ls(2) d(2)}
  legal cast row to packed carriers / integer casts
- restore dense 8-bit extf factor-4 requirement in VMIToVPTO
- update e2b group-broadcast lit expectations to contiguous fallback
@Likai-19 Likai-19 closed this Sep 7, 2026
Zhendong404 pushed a commit that referenced this pull request Sep 7, 2026
Co-authored-by: zoujiangjiang<zoujiangjiang@h-partners.com>



# message auto-generated for no-merge-commit merge:
!53 merge fix/vmi-patch-context-new into master

fix: update VMI patch context for requires-python change

Created-by: zoujiangjiang
Commit-by: zoujiangjiang
Merged-by: cann-robot
Description: ## 问题

master 上代码同步提交(394bb77a)将根目录 pyproject.toml 的 requires-python 从 >=3.10 改为 >=3.7,导致 packaging/ptoas-vmi/pyproject.toml.patch 的 hunk 1 上下文失配,git apply 失败:

```
error: patch failed: pyproject.toml:18
error: pyproject.toml: patch does not apply
```

vmi-source-patch-check(Validate VMI source patch)随之失败,阻塞所有 PR 的 CI。GitHub 侧 hw-native-sys/PTOAS 同样受影响(见 PR #1473 的 vmi-source-patch-check job)。

## 修复

仅修改 patch 文件中一行上下文:requires-python = ">=3.10" → ">=3.7",与当前 master 的 pyproject.toml 对齐。

## 验证

本地以 CI 同款方式验证通过:

```
python packaging/ptoas-vmi/prepare_source.py --output-dir .work/ptoas-vmi-source-check --revision HEAD
# EXIT=0,打补丁后 pyproject.toml 含 ptoas-vmi / 0.1.6 / >=3.7 / sdist.inclusion-mode / PTOAS_CLI_VERSION_LABEL
```

See merge request: cann/pto-as!53
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