Skip to content

[Feat] Asu store adaptation#1018

Merged
mag1c-h merged 6 commits into
ModelEngine-Group:feature_26h1from
Fengli5355:asu-store-adapt
Jun 15, 2026
Merged

[Feat] Asu store adaptation#1018
mag1c-h merged 6 commits into
ModelEngine-Group:feature_26h1from
Fengli5355:asu-store-adapt

Conversation

@Fengli5355

@Fengli5355 Fengli5355 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Purpose

Adapt AsuStore into Connector in order to run an e2e inference.

Modifications

  1. Adaptations for AsuStore:
    (1) Add a .yaml config file;
    (2) Modify build/compile scripts;
    (3) Define "shard_size" and "tensor_size" the same as "block_size" for AsuStore;
    (4) Introduce fakebackend in AsuTransport and AsuStore;

  2. Fixes of FakeBackend:
    (1) FakeBackend Adds deviceId config;
    (2) FakeBackend Adds aclrtInit and aclrtSetDevice. (Reset and Finalize are not added yet)
    (3) Correct batchNum value in FakeBackend::CompleteDelete and CompleteExist;
    (4) Correct direct NPU I/O in FakeBackend, and use aclrtMemcpy instead;
    (5) Correct FakeBackend::Exist which lacks existing_key_number.

  3. Add some error logs for AsuClient.

  4. Change the way of hashing to try to avoid hash collision.

  5. Adapt to BufferManager changes PR#1014.

  6. Fix of AsuStore:
    Correct AsuStore::Dump by adding WaitPrerequisiteEvent before submitting the task.

  7. Further fixes:
    (1) Rename config file as ucm_config_asu.yaml;
    (2) AsuStore makes key hash only by blockId now;
    (3) Move PatchFakeBackendTransportConfig into asu_store.cpp:BuildTransportConfig where transProvider has type FAKE.
    (4) Remove fake_backend.h/cpp;
    (5) Simplify fake_trans_provider.cpp when making FakeTransProviderConfig.

Test

examples/offline_inference.py with asu store type shares the same output with cache|posix. (Basic correctness)
"Xiamen University" Example test passes. (Single concurrency)
multifieldqa-zh.jsonl produces similar outputs in 2 runs in a row. (32 concurrency)

@Fengli5355 Fengli5355 changed the title [Feat] Asu store adapt [Feat] Asu store adaptation Jun 11, 2026
Comment thread ucm/transport/kv/asu/trans/include/asu_transport/fake_backend.h Outdated
@Fengli5355 Fengli5355 force-pushed the asu-store-adapt branch 3 times, most recently from d8c6078 to b317d8c Compare June 11, 2026 14:21
Comment thread ucm/store/asu/cc/asu_store.cc Outdated
Comment thread ucm/transport/kv/asu/trans/src/fake_backend.cpp Outdated
Comment thread examples/ucm_config_asu.yaml
Comment thread ucm/store/asu/cc/asu_store.cc Outdated
Comment thread ucm/store/asu/cc/asu_store.cc Outdated
Comment thread ucm/transport/kv/asu/trans/src/fake_trans_provider.cpp Outdated
Comment thread ucm/transport/kv/asu/trans/src/fake_trans_provider.cpp
Comment thread ucm/transport/kv/asu/trans/src/fake_trans_provider.cpp
Comment thread ucm/transport/kv/asu/trans/src/fake_trans_provider.cpp
Comment thread ucm/transport/kv/asu/trans/src/fake_trans_provider.cpp
Comment thread ucm/store/asu/cc/asu_store.cc Outdated
[Refactor] AsuStore makes key hash only by blockId now;
[Refactor] Move PatchFakeBackendTransportConfig into asu_store.cpp:BuildTransportConfig where transProvider has type FAKE. Remove fake_backend.h/cpp;
[Refactor] Make fake_trans_provider.cpp simplier when making FakeTransProviderConfig.
Comment thread ucm/transport/kv/asu/trans/src/fake_trans_provider.cpp
Comment thread ucm/transport/kv/asu/trans/src/fake_trans_provider.cpp
@mag1c-h mag1c-h merged commit 85c5094 into ModelEngine-Group:feature_26h1 Jun 15, 2026
14 of 16 checks passed
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.

5 participants