mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2551
Author: @qiuzan2001
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:chief-serve/cpuinfo-no-flags📝 Commits (1)
84eaaf4setup: cpu_info() reads a /proc/cpuinfo without a flags line as no AVX2, not a traceback (#1935)📊 Changes
2 files changed (+15 additions, -1 deletions)
View changed files
📝
setup.py(+2 -1)📝
tools/test_setup_oldcpu.py(+13 -0)📄 Description
The product half of #1935 (the test half is #2552, separate so each can be taken alone).
What it changes. On Linux,
cpu_info()insetup.pytook theflagsline's regex match without checking it.aarch64's
/proc/cpuinfolistsFeaturesinstead, and some emulated x86 containers list neither, so setup stoppedwith
AttributeError: 'NoneType' object has no attribute 'group'(a traceback on any Linux ARM host). A missing linenow means no flags (no AVX2, no AVX-512), the same way
cpu_floor()already reads it (it catchesAttributeError);the CPU name is still read from
model name.What it leaves alone. A
/proc/cpuinfowith aflagsline (every x86 host this ran on before): the same flags,AVX2/AVX-512 answer and name. Windows: untouched. What setup does next on an ARM host is unchanged by this PR: it
prints
CPU: <name> (no AVX2),cpu_floorsays "unsupported", and setup stops with its existing message("this CPU has neither AVX2 nor SSE4.2 ...") instead of a traceback. That message is about x86; making it name ARM
is left out.
How it was checked.
tools/test_setup_oldcpu.pyFloorTest.test_a_cpuinfo_without_flags_1935: an aarch64 cpuinfo (Features)and an emulated one (no flags line) give
(name, False, False)and floor "unsupported"; a flags line with avx2still gives
True. Onmainit fails with the issue'sAttributeError.python3 tools/test_setup_oldcpu.py: OK (1 Windows-only skip).test_setup_choices.py,test_setup_amd.py,test_setup_stale_stamp.py,test_setup_unsloth.py: OK.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.