You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 305638c
Browse filesBrowse the repository at this point in the historyBrowse files
Refactor examples/kev into examples/systemone/kev (pytorch#23341)
## Summary
- Splits the generic System One decision-inference C++ interface
(question/answer types, the `SystemOne` base class) out of
`examples/kev` into `examples/systemone/api.h`, in the
`executorch::systemone` namespace, so other models can implement the
same interface.
- Moves everything Kev-specific (`kev.h`/`kev.cpp`, `main.cpp`,
`benchmark.cpp`, `export.py`, `model.py`, `CMakeLists.txt`) into
`examples/systemone/kev/`, which now implements that interface for the
Kev model.
- Adds `examples/systemone/README.md` describing the generic interface
and pointing at `kev/` as the one model implementing it so far.
## Test plan
- [x] `examples/systemone/api.h` syntax-checks standalone with clang
(`-fsyntax-only`)
- [x] `cmake -S examples/systemone/kev -B ...` configures successfully
with the updated `EXECUTORCH_ROOT` path
- [x] `cmake --build ... --target kev_runner` compiles hundreds of
ExecuTorch/XNNPACK sources before hitting a pre-existing, unrelated
build failure in ExecuTorch's own core runtime (torch/c10 version
mismatch in the local environment) -- no file touched by this change is
implicated
- [ ] Full build/run of `kev_runner`/`kev_benchmark` against an exported
`.pte` (blocked locally by the environment issue above; paths and
namespaces reviewed manually)
Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments