continual_learning: PPCA state accepts BFP, but ppcaReplaySample/ppcaReplayMean reject a BFP output tensor
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c
- Domain
- embedded-iot
Research direction
Read src/continual_learning/PpcaReplay.c:110-113 and :152-155, then trace executeConvert and the output sizing in src/userApi/continual_learning/ReplayDataLoader.c:62-67. Check both REPLAY_MODE_PPCA_SAMPLE and REPLAY_MODE_CLASS_MEAN with a BFP dataset output. Done when the supported behavior is covered by tests, or the restriction is documented in docs/CONTINUAL_LEARNING.md and the header comments.
Written by the indexing model from the issue text.
Description
Problem
The PPCA state storage whitelist and the replay output whitelist disagree:
ppcaReplayCreateaccepts per-tensor BFP formeanQ/basisQ/eigvalsQ(src/userApi/continual_learning/PpcaReplayApi.c:17-23, BFP epic PR3).ppcaReplaySampleandppcaReplayMeanstill require theirouttensor to be FLOAT32/SYM/ASYM (src/continual_learning/PpcaReplay.c:110-113and:152-155). A BFPouthitsPRINT_ERROR+exit(1).
Reachability (narrower than it first looks)
The replay wrapper sizes its item pool from the base dataset's first sample, using getQLike(first->item->quantization) (src/userApi/continual_learning/ReplayDataLoader.c:62-67). So the output dtype is the dataset's dtype, not the state's:
- BFP state with a FLOAT32 dataset works. This is the normal setup and the one the docs describe.
- The failure needs a dataset that delivers BFP-stored samples, plus
REPLAY_MODE_PPCA_SAMPLEorREPLAY_MODE_CLASS_MEAN.
Options
- Add BFP to the two output whitelists. The writes already go through
executeConvert, which has the FLOAT32→BFP cell. Add tests for both modes with a BFPout. - Or document the restriction in
docs/CONTINUAL_LEARNING.mdand the header comments, and keep the fail-fast.
Found by the Codex adversarial review on PR #474 and verified against the code.
- Dominant language
- C
- Stars
- 2
- Forks
- 3
- Avg merge
- 13h 6m
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from es-ude/OnDeviceTraining
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
es-ude/OnDeviceTraining#549 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
es-ude/OnDeviceTraining#547 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
es-ude/OnDeviceTraining#536 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
es-ude/OnDeviceTraining#478 ·
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
es-ude/OnDeviceTraining#459 ·
Maintainers usually reply within 1 day
All issues in es-ude/OnDeviceTraining
Similar issues
-
issue: bug report
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
BasedHardware/omi#26486 ·
Maintainers usually reply within 1 day
-
The LLVM object can build before collection_config.h is generatedPossibly taken @Vonng claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
aws/pgcollection#51 ·
-
area/docdb kind/failing-test priority/medium status/awaiting-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
yugabyte/yugabyte-db#39462 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libreswan/libreswan#3185 · 1 comment ·
Maintainers usually reply within 1 day