From b27dbeaf88517a17a6376a855cdcca9d299bdccc Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Fri, 6 Nov 2026 11:57:14 +0100 Subject: [PATCH] STRA-338 S26: scripts and documented commands that ran tests of the moved engine now name leleka-engine-qwen35-cuda (leleka-runtime is a facade with no tests); test binaries are found as leleka_engine_qwen35_cuda-; smoke inventory groups follow the crate directory --- docs/gpu-bringup.md | 92 +++++++++---------- docs/memory-safety.md | 6 +- docs/original-serve.md | 4 +- docs/prefix-cache.md | 2 +- docs/windows.md | 2 +- scripts/chain/build_rt.sh | 2 +- scripts/decode-sm120/build_rt.sh | 6 +- scripts/e2e/hexagonal/arch-install.sh | 2 +- scripts/gpu-bringup/regress_3080.sh | 4 +- scripts/gpu-bringup/remote_sync.sh | 4 +- scripts/gpu-bringup/run_gpu_smokes.sh | 6 +- scripts/gpu-bringup/smoke-groups.json | 28 +++--- scripts/gpu-bringup/smoke_inventory.py | 2 +- scripts/gpu-bringup/tests/test_gpu_bringup.py | 2 +- scripts/laptop/port_bench.sh | 2 +- scripts/linux-tests/run.sh | 8 +- scripts/profile/build_rt.sh | 6 +- scripts/soak/identity-job.sh | 2 +- 18 files changed, 90 insertions(+), 90 deletions(-) diff --git a/docs/gpu-bringup.md b/docs/gpu-bringup.md index 42d933ae..60eaae7b 100644 --- a/docs/gpu-bringup.md +++ b/docs/gpu-bringup.md @@ -230,7 +230,7 @@ with `--only a,b,c` (atomic groups must be complete), and fix the rest on the Ma ## d'. Linux test harness (Mac, before the host build) -`scripts/linux-tests/run.sh` runs the Linux x86_64-gated CPU tests of `leleka-cuda-driver`, `leleka-runtime` and +`scripts/linux-tests/run.sh` runs the Linux x86_64-gated CPU tests of `leleka-cuda-driver`, `leleka-engine-qwen35-cuda` and `leleka-native-cpu-expert` in Docker (no GPU, ignored tests stay ignored; 761 non-GPU tests passed when it landed on `claude/port-main`). Run it on the exact commit you sync, and again on the commit that contains the sealed files after step g. Expect, after sealing, only the placeholder tests listed in step c to need flipping; any other red here is a defect in @@ -245,7 +245,7 @@ scripts/gpu-bringup/remote_sync.sh build --host $HOST --remote-dir '~/work/lelek Runs on the host with a log in `$G/logs/`: `cargo fetch --locked` (fails fast if offline), then `cargo build --release --locked -p strata-desktop-core --bin leleka-cli --bin leleka-daemon --bin leleka-inference` (the three binaries the earlier Linux build produced), then `cargo test --no-run --locked` for `leleka-cuda-driver ---features cuda-driver`, `leleka-runtime`, and `leleka-native-cpu-expert`, and prints `sha256sum` of the binaries into +--features cuda-driver`, `leleka-engine-qwen35-cuda`, and `leleka-native-cpu-expert`, and prints `sha256sum` of the binaries into `$G/binaries.sha256`. `native-cpu-expert/build.rs` has no C++ step (the `.cpp` files in that crate are not built); the crate needs only `cc` as linker. `strata-control` (the `cc`-compiled GGML bridge) is not in this set. Do not run `sync` between c and d. First release build is slow; use `--jobs` to leave CPU to a live service. @@ -308,26 +308,26 @@ variables); **mock**: isolated CPU harness protocol tests, not GPU smokes. | model-assets | cuda-driver --test q5_gpu | `installed_driver_q5_real_tensor_component` | assets | LELEKA_CUDA_REAL_GPU=1 | LELEKA_Q5_EVIDENCE, LELEKA_Q5_REAL_INPUT, LELEKA_Q5_NATIVE_ORACLE, LELEKA_Q5_TRUSTED_PTX | | model-assets | cuda-driver --test q6_gpu | `installed_driver_q6_native_parity` | assets | LELEKA_CUDA_REAL_GPU=1 | LELEKA_Q6_EVIDENCE, LELEKA_Q6_NATIVE_ORACLE, LELEKA_Q6_TRUSTED_PTX | | model-assets | cuda-driver --test q6_gpu | `installed_driver_q6_real_tensor_component` | assets | LELEKA_CUDA_REAL_GPU=1 | LELEKA_Q6_EVIDENCE, LELEKA_Q6_REAL_INPUT, LELEKA_Q6_NATIVE_ORACLE, LELEKA_Q6_TRUSTED_PTX | -| model-assets | leleka-runtime lib | `original_serve_smoke_prompt_decode_mtp_verify_commit_reset_cancel_sample` | assets | LELEKA_ORIGINAL_SERVE_SMOKE=yes LELEKA_SMOKE_PROMPTS=yes LELEKA_SMOKE_MAX_NEW=yes LELEKA_SMOKE_MIN_P=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | -| model-assets | leleka-runtime lib | `original_serve_long_context_streamed_kv_smoke` | assets | LELEKA_ORIGINAL_SERVE_LONG_SMOKE=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | -| model-assets | leleka-runtime lib | `pinned_single_load_layer0_and_window_boundaries` | assets | LELEKA_STRA169_RUN_COMBINED_BOUNDARIES=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_LAYER0_DIR | -| model-assets | leleka-runtime lib | `pinned_combined_kar_mtp_retained_three_plus_two_matches_full_reference_five` | assets | LELEKA_STRA169_RUN_COMBINED_REUSE=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | -| model-assets | leleka-runtime lib | `pinned_single_load_layer0_native_first_mmq_diagnostic` | assets | LELEKA_STRA169_RUN_LAYER0_MMQ_DIAGNOSTIC=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_LAYER0_DIR | -| model-assets | leleka-runtime lib | `pinned_five_public_cases_strata_adaptive_slots` | assets | LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE | -| model-assets | leleka-runtime lib | `pinned_new_slowpaths_match_completed_public_output` | assets | LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE | -| model-assets | leleka-runtime lib | `pinned_five_public_cases_one_loaded_owner` | assets | LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE | -| model-assets | leleka-runtime lib | `pinned_five_public_cases_retained_qk_qsa_owner` | assets | LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE | -| model-assets | leleka-runtime lib | `pinned_five_public_cases_resident_owners` | assets | LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE | -| model-assets | leleka-runtime lib | `pinned_single_load_public_native_vs_native_down_outer256_pair` | assets | LELEKA_STRA169_RUN_PUBLIC_NATIVE_DOWN_PAIR=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | -| model-assets | leleka-runtime lib | `pinned_single_load_native_resident_mmq_model_numeric` | assets | LELEKA_STRA169_RUN_NATIVE_RESIDENT_MMQ_MODEL=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | -| model-assets | leleka-runtime lib | `pinned_kar_cached_vs_legacy_same_session_reset_replays_all_logits_and_numeric_state` | assets | (ignore only) | LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_ARCHIVE, LELEKA_STRA169_KAR_STAGING | -| model-assets | leleka-runtime lib | `pinned_artifact_refuses_missing_output_before_layers_without_state_commit` | assets | (ignore only) | LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1 | -| model-assets | leleka-runtime lib | `pinned_artifact_two_tokens_finish_all_layers_and_commit_state` | assets | (ignore only) | LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1 | -| model-assets | leleka-runtime lib | `authentic_scalar_first_mtp_batch_prefix_rejection_cancel_and_cleanup` | assets | LELEKA_STRA169_RUN_MTP_BATCH_NUMERIC=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | -| model-assets | leleka-runtime lib | `pinned_candidate_full_forward_capture_two_public_tokens` | assets | (ignore only) | LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_KAR_ARCHIVE, LELEKA_STRA169_KAR_STAGING | -| model-assets | leleka-runtime lib | `pinned_single_load_resident_mmq_model_numeric` | assets | LELEKA_STRA169_RUN_RESIDENT_MMQ_MODEL=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | -| model-assets | leleka-runtime lib | `pinned_single_load_capture_two_combined_reuse_and_chunk_numeric` | assets | LELEKA_STRA169_RUN_SINGLELOAD_PROOF=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_CAPTURE_DIR | -| model-assets | leleka-runtime lib | `pinned_single_load_grouped_certified_chunk_numeric` | assets | LELEKA_STRA169_RUN_GROUPED_CHUNK_PROOF=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | +| model-assets | engine-qwen35-cuda lib | `original_serve_smoke_prompt_decode_mtp_verify_commit_reset_cancel_sample` | assets | LELEKA_ORIGINAL_SERVE_SMOKE=yes LELEKA_SMOKE_PROMPTS=yes LELEKA_SMOKE_MAX_NEW=yes LELEKA_SMOKE_MIN_P=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | +| model-assets | engine-qwen35-cuda lib | `original_serve_long_context_streamed_kv_smoke` | assets | LELEKA_ORIGINAL_SERVE_LONG_SMOKE=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | +| model-assets | engine-qwen35-cuda lib | `pinned_single_load_layer0_and_window_boundaries` | assets | LELEKA_STRA169_RUN_COMBINED_BOUNDARIES=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_LAYER0_DIR | +| model-assets | engine-qwen35-cuda lib | `pinned_combined_kar_mtp_retained_three_plus_two_matches_full_reference_five` | assets | LELEKA_STRA169_RUN_COMBINED_REUSE=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | +| model-assets | engine-qwen35-cuda lib | `pinned_single_load_layer0_native_first_mmq_diagnostic` | assets | LELEKA_STRA169_RUN_LAYER0_MMQ_DIAGNOSTIC=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_LAYER0_DIR | +| model-assets | engine-qwen35-cuda lib | `pinned_five_public_cases_strata_adaptive_slots` | assets | LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE | +| model-assets | engine-qwen35-cuda lib | `pinned_new_slowpaths_match_completed_public_output` | assets | LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE | +| model-assets | engine-qwen35-cuda lib | `pinned_five_public_cases_one_loaded_owner` | assets | LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE | +| model-assets | engine-qwen35-cuda lib | `pinned_five_public_cases_retained_qk_qsa_owner` | assets | LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE | +| model-assets | engine-qwen35-cuda lib | `pinned_five_public_cases_resident_owners` | assets | LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE | +| model-assets | engine-qwen35-cuda lib | `pinned_single_load_public_native_vs_native_down_outer256_pair` | assets | LELEKA_STRA169_RUN_PUBLIC_NATIVE_DOWN_PAIR=yes | LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | +| model-assets | engine-qwen35-cuda lib | `pinned_single_load_native_resident_mmq_model_numeric` | assets | LELEKA_STRA169_RUN_NATIVE_RESIDENT_MMQ_MODEL=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | +| model-assets | engine-qwen35-cuda lib | `pinned_kar_cached_vs_legacy_same_session_reset_replays_all_logits_and_numeric_state` | assets | (ignore only) | LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_ARCHIVE, LELEKA_STRA169_KAR_STAGING | +| model-assets | engine-qwen35-cuda lib | `pinned_artifact_refuses_missing_output_before_layers_without_state_commit` | assets | (ignore only) | LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1 | +| model-assets | engine-qwen35-cuda lib | `pinned_artifact_two_tokens_finish_all_layers_and_commit_state` | assets | (ignore only) | LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1 | +| model-assets | engine-qwen35-cuda lib | `authentic_scalar_first_mtp_batch_prefix_rejection_cancel_and_cleanup` | assets | LELEKA_STRA169_RUN_MTP_BATCH_NUMERIC=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | +| model-assets | engine-qwen35-cuda lib | `pinned_candidate_full_forward_capture_two_public_tokens` | assets | (ignore only) | LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_KAR_ARCHIVE, LELEKA_STRA169_KAR_STAGING | +| model-assets | engine-qwen35-cuda lib | `pinned_single_load_resident_mmq_model_numeric` | assets | LELEKA_STRA169_RUN_RESIDENT_MMQ_MODEL=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | +| model-assets | engine-qwen35-cuda lib | `pinned_single_load_capture_two_combined_reuse_and_chunk_numeric` | assets | LELEKA_STRA169_RUN_SINGLELOAD_PROOF=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_CAPTURE_DIR | +| model-assets | engine-qwen35-cuda lib | `pinned_single_load_grouped_certified_chunk_numeric` | assets | LELEKA_STRA169_RUN_GROUPED_CHUNK_PROOF=yes | LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING | | model-assets | leleka-runtime --test stra168_full_vocabulary | `prepare_independent_full_vocabulary_fixture` | assets | (ignore only) | (fixture files read via a helper; inspect before running) | | model-assets | leleka-runtime --test stra168_full_vocabulary | `installed_driver_full_vocabulary_matches_original_and_literal_words` | assets | LELEKA_CUDA_REAL_GPU=1 | LELEKA_HEAD_NATIVE_ORACLE, LELEKA_Q6_TRUSTED_PTX, LELEKA_HEAD_NATIVE_SHA256 | | moe-mmq | cuda-driver lib | `strata_prefill_moe_program_runs_in_order_refuses_earliest_and_cleans_up` | device | LELEKA_STRA169_RUN_MOE_PREFILL_BATCH=yes | - | @@ -357,30 +357,30 @@ variables); **mock**: isolated CPU harness protocol tests, not GPU smokes. | qsa | cuda-driver lib | `original_first_selected_kv_bytes_attention_reorder_refusals_cleanup` | device | LELEKA_STRA172_RUN_QSA_SELECTED_KV=yes | - | | qsa | cuda-driver lib | `int8_kv_append_kernels_match_the_original_host_reference_bit_exactly` | device | (ignore only) | - | | qsa | cuda-driver lib | `streamed_attention_equals_fully_resident_attention_with_a_20480_cell_window` | device | (ignore only) | - | -| runtime-gdn | leleka-runtime lib | `original_first_retained_whole_qk_repeat_tail_reset_guards_cleanup` | device | LELEKA_STRA169_RUN_GDN_QK_SLOT=yes | - | -| runtime-gdn | leleka-runtime lib | `retained_gdn_chain_matches_legacy_intermediates_and_fences_products` | device | (ignore only) | - | -| runtime-gdn | leleka-runtime lib | `sixty_five_actual_recurrences_finite_and_local_abort_match_same_ptx_reference` | device | LELEKA_STRA169_RUN_GDN_CHUNK_COMPONENT=yes | - | -| runtime-gdn | leleka-runtime lib | `batch_adoption_is_consecutive_atomic_and_swaps_the_final_state_once` | device | LELEKA_STRA169_RUN_GDN_CHUNK_COMPONENT=yes | - | -| runtime-gdn | leleka-runtime lib | `one_input_upload_matches_four_legacy_projections_and_preserves_lease_guards` | device | (ignore only) | - | -| runtime-gdn | leleka-runtime lib | `batch_resources_charge_exactly_scratch_and_status_and_release_everything` | device | LELEKA_STRA169_RUN_GDN_BATCH_RESOURCES=yes | - | -| runtime-gdn | leleka-runtime lib | `queued_gdn_chain_matches_scalar_oracles_refuses_and_cleans_up` | device | (ignore only) | - | -| runtime-gdn | leleka-runtime lib | `mirror_matches_uncached_steps_and_exact_rollback_reset_identity` | device | (ignore only) | - | -| runtime-gdn | leleka-runtime lib | `original_first_three_rows_and_each_accepted_replay_full_state_finite_abort_cleanup` | device | LELEKA_STRA169_RUN_GDN_MTP_JOURNAL=yes | - | -| runtime-gr | leleka-runtime lib | `original_first_fixed_outputs_repeat_overwrite_abort_and_cleanup` | device | LELEKA_STRA169_RUN_GR_OUTPUT_WORKSPACE=yes | - | -| runtime-gr | leleka-runtime lib | `retained_residual_matches_original_read_inject_and_fences_abort_sticky_failure` | device | (ignore only) | - | -| runtime-gr | leleka-runtime lib | `retained_attention_injection_to_ffn_gr_matches_original_host_roundtrip` | device | LELEKA_STRA169_RUN_GR_HANDOFF=yes | - | -| runtime-moe | leleka-runtime lib | `retained_gate_up_matches_legacy_chain_and_closes_failed_candidates` | device | (ignore only) | - | -| runtime-moe | leleka-runtime lib | `retained_down_pack_scale_combine_matches_old_uploads_and_fences_abort` | device | (ignore only) | - | -| runtime-moe | leleka-runtime lib | `original_first_fixed_router_all_logits_routes_repeat_reset_and_cleanup` | device | LELEKA_STRA169_RUN_ROUTER_SCRATCH=yes | - | -| runtime-moe | leleka-runtime lib | `retained_mtp_experts_match_original_s2_shared_and_combine_and_clean_abort` | device | (ignore only) | - | -| runtime-moe | leleka-runtime lib | `original_first_fixed_draft_moe_repeat_abort_and_cleanup` | device | LELEKA_STRA169_RUN_FIXED_DRAFT_MOE=yes | - | -| runtime-mtp | leleka-runtime lib | `retained_mtp_attention_gate_out_matches_legacy_transfers_and_cleans_refusals` | device | (ignore only) | - | -| runtime-mtp | leleka-runtime lib | `retained_final_matches_original_reuploads_and_fences_invocation_abort` | device | (ignore only) | - | -| runtime-ple | leleka-runtime lib | `retained_key_and_whole_value_match_original_40_tiles_and_fence_abort` | device | (ignore only) | - | -| runtime-qsa | leleka-runtime lib | `retained_attention_gate_out_matches_legacy_transfers_and_cleans_refusals` | device | (ignore only) | - | -| runtime-qsa | leleka-runtime lib | `original_first_five_role_qsa_scratch_repeat_finite_refusal_and_cleanup` | device | LELEKA_STRA169_RUN_QSA_ATTENTION_SCRATCH=yes | - | -| runtime-qsa | leleka-runtime lib | `resident_index_transport_matches_uncached_at_190k_and_reset` | device | (ignore only) | - | -| runtime-qsa | leleka-runtime lib | `one_input_upload_matches_five_legacy_projections_and_preserves_lease_guards` | device | (ignore only) | - | +| runtime-gdn | engine-qwen35-cuda lib | `original_first_retained_whole_qk_repeat_tail_reset_guards_cleanup` | device | LELEKA_STRA169_RUN_GDN_QK_SLOT=yes | - | +| runtime-gdn | engine-qwen35-cuda lib | `retained_gdn_chain_matches_legacy_intermediates_and_fences_products` | device | (ignore only) | - | +| runtime-gdn | engine-qwen35-cuda lib | `sixty_five_actual_recurrences_finite_and_local_abort_match_same_ptx_reference` | device | LELEKA_STRA169_RUN_GDN_CHUNK_COMPONENT=yes | - | +| runtime-gdn | engine-qwen35-cuda lib | `batch_adoption_is_consecutive_atomic_and_swaps_the_final_state_once` | device | LELEKA_STRA169_RUN_GDN_CHUNK_COMPONENT=yes | - | +| runtime-gdn | engine-qwen35-cuda lib | `one_input_upload_matches_four_legacy_projections_and_preserves_lease_guards` | device | (ignore only) | - | +| runtime-gdn | engine-qwen35-cuda lib | `batch_resources_charge_exactly_scratch_and_status_and_release_everything` | device | LELEKA_STRA169_RUN_GDN_BATCH_RESOURCES=yes | - | +| runtime-gdn | engine-qwen35-cuda lib | `queued_gdn_chain_matches_scalar_oracles_refuses_and_cleans_up` | device | (ignore only) | - | +| runtime-gdn | engine-qwen35-cuda lib | `mirror_matches_uncached_steps_and_exact_rollback_reset_identity` | device | (ignore only) | - | +| runtime-gdn | engine-qwen35-cuda lib | `original_first_three_rows_and_each_accepted_replay_full_state_finite_abort_cleanup` | device | LELEKA_STRA169_RUN_GDN_MTP_JOURNAL=yes | - | +| runtime-gr | engine-qwen35-cuda lib | `original_first_fixed_outputs_repeat_overwrite_abort_and_cleanup` | device | LELEKA_STRA169_RUN_GR_OUTPUT_WORKSPACE=yes | - | +| runtime-gr | engine-qwen35-cuda lib | `retained_residual_matches_original_read_inject_and_fences_abort_sticky_failure` | device | (ignore only) | - | +| runtime-gr | engine-qwen35-cuda lib | `retained_attention_injection_to_ffn_gr_matches_original_host_roundtrip` | device | LELEKA_STRA169_RUN_GR_HANDOFF=yes | - | +| runtime-moe | engine-qwen35-cuda lib | `retained_gate_up_matches_legacy_chain_and_closes_failed_candidates` | device | (ignore only) | - | +| runtime-moe | engine-qwen35-cuda lib | `retained_down_pack_scale_combine_matches_old_uploads_and_fences_abort` | device | (ignore only) | - | +| runtime-moe | engine-qwen35-cuda lib | `original_first_fixed_router_all_logits_routes_repeat_reset_and_cleanup` | device | LELEKA_STRA169_RUN_ROUTER_SCRATCH=yes | - | +| runtime-moe | engine-qwen35-cuda lib | `retained_mtp_experts_match_original_s2_shared_and_combine_and_clean_abort` | device | (ignore only) | - | +| runtime-moe | engine-qwen35-cuda lib | `original_first_fixed_draft_moe_repeat_abort_and_cleanup` | device | LELEKA_STRA169_RUN_FIXED_DRAFT_MOE=yes | - | +| runtime-mtp | engine-qwen35-cuda lib | `retained_mtp_attention_gate_out_matches_legacy_transfers_and_cleans_refusals` | device | (ignore only) | - | +| runtime-mtp | engine-qwen35-cuda lib | `retained_final_matches_original_reuploads_and_fences_invocation_abort` | device | (ignore only) | - | +| runtime-ple | engine-qwen35-cuda lib | `retained_key_and_whole_value_match_original_40_tiles_and_fence_abort` | device | (ignore only) | - | +| runtime-qsa | engine-qwen35-cuda lib | `retained_attention_gate_out_matches_legacy_transfers_and_cleans_refusals` | device | (ignore only) | - | +| runtime-qsa | engine-qwen35-cuda lib | `original_first_five_role_qsa_scratch_repeat_finite_refusal_and_cleanup` | device | LELEKA_STRA169_RUN_QSA_ATTENTION_SCRATCH=yes | - | +| runtime-qsa | engine-qwen35-cuda lib | `resident_index_transport_matches_uncached_at_190k_and_reset` | device | (ignore only) | - | +| runtime-qsa | engine-qwen35-cuda lib | `one_input_upload_matches_five_legacy_projections_and_preserves_lease_guards` | device | (ignore only) | - | | seal-loads | cuda-driver lib | `sealed_window_assets_load_on_the_device_and_export_every_named_entry` | device | LELEKA_VERIFY_WINDOW_GPU=yes | - | | seal-loads | cuda-driver lib | `rt_bank_places_every_tensor_and_the_expert_chunks_exactly` | device | LELEKA_MTP_RT_BANK_GPU=yes | - | | seal-loads | cuda-driver lib | `draft_head_gather_matches_a_host_gather_for_each_kernel_width` | device | LELEKA_MTP_RT_BANK_GPU=yes | - | diff --git a/docs/memory-safety.md b/docs/memory-safety.md index a007b7f5..3a581d4d 100644 --- a/docs/memory-safety.md +++ b/docs/memory-safety.md @@ -288,7 +288,7 @@ Everything is built in WSL (tar/rsync of the tracked files, never on the server) cargo test -p leleka-memory # parsers, planner, state machine, governor, mapping/mlock, flatness (67 tests) cargo +nightly miri test -p leleka-memory --lib # the same pure modules under Miri cargo test -p strata-control --test memory_gate_http # gate 503 + Retry-After, engine-side refusal, 600-request soak (threads/fds/RSS flat) -cargo test -p leleka-runtime --lib original_serve_stack::prefix # shed/restore and the churn test under random shed directives +cargo test -p leleka-engine-qwen35-cuda --lib original_serve_stack::prefix # shed/restore and the churn test under random shed directives cargo test -p leleka-deploy # profiles carry the memory section # swap A/B under real pressure, fenced into one cgroup (root; WSL2 or a test box) @@ -297,13 +297,13 @@ sudo ARMS="A B C" HOG_RELEASE=20 SWAP_AB_BIN=target/release/examples/swap_ab scr --memfd-mib 6144 --hog-mib 5120 --limit-mib 9216 --secs 60 --reader /path/to/a/12GiB/file # real model on the 5090, through the serial holder queue (one model process at a time) -cargo test --release -p leleka-runtime --lib --no-run # the binary; copy it to ~/work/leleka-mem-bin/ +cargo test --release -p leleka-engine-qwen35-cuda --lib --no-run # the binary; copy it to ~/work/leleka-mem-bin/ cp scripts/memory/jobs/* ~/work/mem-jobs/ # then: cp ~/work/mem-jobs/91x-*.sh ~/work/gpu-runs/holder2/jobs/ # 910 archive probe (model-free, real 55 GB memfd + competing reader), 911 inventory (idle / 180k / prefix full), 912 soak (220 requests), # 913 shed path, 917 reader (decode speed and memfd residency next to a page-cache reader) # real model on the laptop (WSL2, RTX 3080): the same smoke with the laptop profile -cargo test --release -p leleka-runtime --features sm86 --lib --no-run +cargo test --release -p leleka-engine-qwen35-cuda --features sm86 --lib --no-run bash scripts/memory/laptop_run.sh LABEL ~/laptop/BIN LELEKA_MEM_SCENARIO=inventory LELEKA_MEM_TOKENS=24000 LELEKA_MEM_PREFIX_MIB=auto ``` diff --git a/docs/original-serve.md b/docs/original-serve.md index 5c920fc6..4b0e7230 100644 --- a/docs/original-serve.md +++ b/docs/original-serve.md @@ -86,7 +86,7 @@ is built for exactly one capacity; without a loan the prompt path has no cache h from a lent prefix); `expert_cache_cpu_order`, remote caches, layer splits and the resident RAM mode are not ported (`cpu_order` only concerns the S2 hit kernel, not native packs). -Proof without a model: `LELEKA_EXPERT_TIER_GPU=yes cargo test -p leleka-runtime --lib -- --ignored +Proof without a model: `LELEKA_EXPERT_TIER_GPU=yes cargo test -p leleka-engine-qwen35-cuda --lib -- --ignored original_serve_residency_gpu` (synthetic IQ4_XS/IQ4_NL experts: placement, bit-identical CPU entries, GPU entries within 3e-2 relative L1 of the CPU path; RTX 5090 2026-10-16: worst 1.155e-2). Not yet run on a device: the PCIe DMA share and adaptive swaps (they need the registered model bank), and every real-model run. @@ -167,7 +167,7 @@ LELEKA_STRA169_KAR_FD=… LELEKA_STRA169_KAR_PROVENANCE=… \ LELEKA_STRA169_IQ3S_SHARD0=… LELEKA_STRA169_IQ3S_SHARD1=… \ LELEKA_STRA169_MTP_PACK=… LELEKA_STRA169_MTP_STAGING=… \ [LELEKA_ORIGINAL_SERVE_RT_DIR=…] [LELEKA_ORIGINAL_SERVE_CAPACITY=1024] [LELEKA_ORIGINAL_SERVE_BUDGET_GIB=28] \ -cargo test -p leleka-runtime --features cuda-driver -- --ignored original_serve_smoke +cargo test -p leleka-engine-qwen35-cuda -- --ignored original_serve_smoke ``` The long-context variant (`original_serve_long_context_streamed_kv_smoke`, `LELEKA_ORIGINAL_SERVE_LONG_SMOKE=yes`, diff --git a/docs/prefix-cache.md b/docs/prefix-cache.md index cb7ebd9c..4e0340b4 100644 --- a/docs/prefix-cache.md +++ b/docs/prefix-cache.md @@ -351,7 +351,7 @@ tokens average do not fit in 13 GB: the cache keeps the sessions it can and reje ## Tests -* Model-free (`cargo test -p leleka-runtime --lib prefix`): hash chain (pinned values), budget profiles and parsing, store +* Model-free (`cargo test -p leleka-engine-core -p leleka-engine-qwen35-cuda --lib prefix`: the hash chain, budget and store tests are in `leleka-engine-core`, the orchestrator tests in `leleka-engine-qwen35-cuda`): hash chain (pinned values), budget profiles and parsing, store (sharing, refcounts, collisions, eviction by value, caps, thinning, budget enforcement, orphans), the orchestrator over a fake device whose positional buffer is a token per cell (cross-session resume, interleaving, copy-only-what-the-buffer-lost, cancellation, failed import, budget, low host memory, pool queries) and `PromptPlan` grid cuts. diff --git a/docs/windows.md b/docs/windows.md index 0eea581a..cc120d53 100644 --- a/docs/windows.md +++ b/docs/windows.md @@ -509,7 +509,7 @@ Branch `claude/upstream-speed` (docs/upstream-port-plan.md rows 3.1, 2.3, 0.6). | `LELEKA_CB_WARMUP=off` | Linux only; Windows has no such code path (CPU sets are per thread) | n/a here | Build (the `sm86` companions as in the Build section; the branch only adds Rust and docs): `powershell -ExecutionPolicy Bypass -File scripts\windows\build-release.ps1`, or for the replay harness -`cargo test --release -p leleka-runtime --features sm86 --lib --no-run` and use the printed `leleka_runtime-*.exe` as `TEST_BIN`. +`cargo test --release -p leleka-engine-qwen35-cuda --features sm86 --lib --no-run` and use the printed `leleka_engine_qwen35_cuda-*.exe` as `TEST_BIN`. Paired A/B on the laptop (one variable at a time, same model digest, same cache state, same prompts; ABBA order, at least 6 requests per arm, record tokens, tok/s per request, the `expert tier:` line and the engine's `leleka-serve: ... route tail skip` line): diff --git a/scripts/chain/build_rt.sh b/scripts/chain/build_rt.sh index 20d417f5..d2e26f9b 100644 --- a/scripts/chain/build_rt.sh +++ b/scripts/chain/build_rt.sh @@ -17,7 +17,7 @@ rm -rf ~/chain-src && mkdir -p ~/chain-src ~/chain-bin && tar -xf '$tar_wsl' -C cd ~/chain-src export CARGO_TARGET_DIR=\$HOME/chain-target nice -n 10 cargo test --no-run --locked --release -p leleka-engine-qwen35-cuda --lib $* 2>&1 | tee ~/chain-build-$tag.log | grep -E 'Executable|^error|warning: unused' | tail -5 -exe=\$(grep -o 'target/release/deps/leleka_runtime-[0-9a-f]*' ~/chain-build-$tag.log | tail -1) +exe=\$(grep -o 'target/release/deps/leleka_engine_qwen35_cuda-[0-9a-f]*' ~/chain-build-$tag.log | tail -1) cp \$CARGO_TARGET_DIR/\${exe#target/} ~/chain-bin/rt-$tag cp ~/chain-bin/rt-$tag /mnt/c/Users/pavel/work/chain-bin-rt-$tag ls -la ~/chain-bin/rt-$tag diff --git a/scripts/decode-sm120/build_rt.sh b/scripts/decode-sm120/build_rt.sh index d6e207b1..17469984 100644 --- a/scripts/decode-sm120/build_rt.sh +++ b/scripts/decode-sm120/build_rt.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Build the leleka-runtime test binary (the replay smoke) of THIS worktree in WSL (never on the server). +# Build the leleka-engine-qwen35-cuda test binary (the replay smoke) of THIS worktree in WSL (never on the server). # scripts/decode-sm120/build_rt.sh TAG run from Git Bash in the worktree # Result: WSL ~/sm120-stack/rt-TAG; copy to rnr5090:/data/leleka-e2e/sm120/rt-TAG. set -euo pipefail @@ -15,8 +15,8 @@ export PATH=\$HOME/cuda-toolkits/13.2.2/bin:\$HOME/.cargo/bin:/usr/local/bin:/us rm -rf ~/sm120-src-rt && mkdir -p ~/sm120-src-rt ~/sm120-stack && tar -xf '$tar_wsl' -C ~/sm120-src-rt cd ~/sm120-src-rt export CARGO_TARGET_DIR=\$HOME/sm120-target-rel -nice -n 10 cargo test --no-run --locked --release -p leleka-runtime --lib > ~/sm120-stack/build-rt-$tag.log 2>&1 -exe=\$(grep -o 'release/deps/leleka_runtime-[0-9a-f]*' ~/sm120-stack/build-rt-$tag.log | tail -1) +nice -n 10 cargo test --no-run --locked --release -p leleka-engine-qwen35-cuda --lib > ~/sm120-stack/build-rt-$tag.log 2>&1 +exe=\$(grep -o 'release/deps/leleka_engine_qwen35_cuda-[0-9a-f]*' ~/sm120-stack/build-rt-$tag.log | tail -1) cp \$CARGO_TARGET_DIR/\$exe ~/sm120-stack/rt-$tag sha256sum ~/sm120-stack/rt-$tag " diff --git a/scripts/e2e/hexagonal/arch-install.sh b/scripts/e2e/hexagonal/arch-install.sh index 11ebd1ee..cbc2c6cd 100644 --- a/scripts/e2e/hexagonal/arch-install.sh +++ b/scripts/e2e/hexagonal/arch-install.sh @@ -3,7 +3,7 @@ # # bash arch-install.sh BASE_DIR CAND_DIR BASE_RT CAND_RT # BASE_DIR / CAND_DIR directories that hold leleka-inference leleka-daemon leleka-cli strata-next (main and the branch) -# BASE_RT / CAND_RT the release test binaries of leleka-runtime (cargo test --no-run --release -p leleka-runtime --lib) +# BASE_RT / CAND_RT the release test binaries of leleka-runtime (cargo test --no-run --release --lib, with -p leleka-runtime on a tree before STRA-338 S22 and -p leleka-engine-qwen35-cuda after it) # # Result under /data/leleka-e2e/hexagonal (the task's own directory; nothing outside it is written): # tools/ draftround-id.sh draftround-ab.sh draftround-idcmp.py ts-wrap.sh (DR=...) diff --git a/scripts/gpu-bringup/regress_3080.sh b/scripts/gpu-bringup/regress_3080.sh index d1ac9f8d..9d0662e5 100755 --- a/scripts/gpu-bringup/regress_3080.sh +++ b/scripts/gpu-bringup/regress_3080.sh @@ -13,7 +13,7 @@ # Items (in this order): # companions sm86_assets.py check (committed sm_86 set matches the sealed sm_120 PTX; no toolkit needed) # unit-driver cargo test -p leleka-cuda-driver --features cuda-driver,sm86 --lib (non-ignored) -# unit-runtime same for leleka-runtime --features sm86 +# unit-runtime same for leleka-engine-qwen35-cuda --features sm86 # build-binaries release build of leleka-inference/leleka-daemon/leleka-cli with --features sm86 # smoke: the 18 model-free run_gpu_smokes.sh groups (SMOKE_SM86=1, --release) # probe-arena original_arena_probe (PROBE_CAPACITY, PROBE_BUDGET_GIB) @@ -134,7 +134,7 @@ nvidia-smi --query-gpu=name,compute_cap,memory.total,memory.used --format=csv,no # ------------------------------------------------------------------ items item companions python3 -B scripts/gpu-bringup/sm86_assets.py check item unit-driver cargo test --locked --release -p leleka-cuda-driver --features cuda-driver,sm86 --lib -item unit-runtime cargo test --locked --release -p leleka-runtime --features sm86 --lib +item unit-runtime cargo test --locked --release -p leleka-engine-qwen35-cuda --features sm86 --lib item build-binaries cargo build --locked --release -p strata-desktop-core --features sm86 --bins # smoke groups: one run of the repo's runner (it orders groups by dependency), reported per group diff --git a/scripts/gpu-bringup/remote_sync.sh b/scripts/gpu-bringup/remote_sync.sh index ff0608e1..e10eef42 100755 --- a/scripts/gpu-bringup/remote_sync.sh +++ b/scripts/gpu-bringup/remote_sync.sh @@ -129,8 +129,8 @@ echo "== release build: leleka-cli leleka-daemon leleka-inference" ${nice}cargo build --release --locked $jf -p strata-desktop-core --bin leleka-cli --bin leleka-daemon --bin leleka-inference echo "== test binaries (not run): cuda-driver with --features cuda-driver" ${nice}cargo test --no-run --locked $jf $test_profile -p leleka-cuda-driver --features cuda-driver -echo "== test binaries (not run): leleka-runtime" -${nice}cargo test --no-run --locked $jf $test_profile -p leleka-runtime +echo "== test binaries (not run): leleka-engine-qwen35-cuda" +${nice}cargo test --no-run --locked $jf $test_profile -p leleka-engine-qwen35-cuda echo "== test binaries (not run): native-cpu-expert (build.rs has no C++ step; Rust only)" ${nice}cargo test --no-run --locked $jf $test_profile -p leleka-native-cpu-expert echo "== digests" diff --git a/scripts/gpu-bringup/run_gpu_smokes.sh b/scripts/gpu-bringup/run_gpu_smokes.sh index 4f899478..87b59ba0 100755 --- a/scripts/gpu-bringup/run_gpu_smokes.sh +++ b/scripts/gpu-bringup/run_gpu_smokes.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Run the #[ignore]d Root-only GPU smokes of leleka-cuda-driver / leleka-runtime on the RTX 5090 host. +# Run the #[ignore]d Root-only GPU smokes of leleka-cuda-driver / leleka-engine-qwen35-cuda on the RTX 5090 host. # # run_gpu_smokes.sh --list # table of every smoke, its group, env flags, needs # run_gpu_smokes.sh --plan [--groups a,b] # print the cargo commands, run nothing (works on macOS) @@ -23,7 +23,7 @@ # Environment: SMOKE_TIMEOUT (seconds per test, default 900), CARGO_PROFILE_FLAG (default empty = debug; use # --release only if remote_sync.sh built with it), RUN_DIR via --run-dir. # SMOKE_SM86=1 adds the `sm86` cargo feature (sm_86 companions of the sealed PTX, docs/sm86-assets.md) to the -# leleka-cuda-driver and leleka-runtime test builds: for an RTX 30-series card such as the laptop RTX 3080 (cc 8.6). +# leleka-cuda-driver and leleka-engine-qwen35-cuda test builds: for an RTX 30-series card such as the laptop RTX 3080 (cc 8.6). set -euo pipefail here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" @@ -45,7 +45,7 @@ sm86="${SMOKE_SM86:-0}" # features for a package: the inventory's, plus `sm86` for the packages that have it when SMOKE_SM86=1 features_for() { # pkg features -> features string, or "-" for none local pkg="$1" f="$2" - if [[ "$sm86" == 1 && ( "$pkg" == leleka-cuda-driver || "$pkg" == leleka-runtime ) ]]; then + if [[ "$sm86" == 1 && ( "$pkg" == leleka-cuda-driver || "$pkg" == leleka-engine-qwen35-cuda ) ]]; then if [[ "$f" == "-" ]]; then f="sm86"; else f="$f,sm86"; fi fi printf '%s' "$f" diff --git a/scripts/gpu-bringup/smoke-groups.json b/scripts/gpu-bringup/smoke-groups.json index b4a04b11..f08dec85 100644 --- a/scripts/gpu-bringup/smoke-groups.json +++ b/scripts/gpu-bringup/smoke-groups.json @@ -158,9 +158,9 @@ "depends_on": [ "gr" ], - "desc": "leleka-runtime GR proofs", + "desc": "leleka-engine-qwen35-cuda GR proofs", "match": [ - "leleka-runtime/src/qwen_forward/gr[a-z_]*\\.rs::" + "engine-qwen35-cuda/src/qwen_forward/gr[a-z_]*\\.rs::" ] }, { @@ -169,9 +169,9 @@ "depends_on": [ "gdn" ], - "desc": "leleka-runtime GDN proofs", + "desc": "leleka-engine-qwen35-cuda GDN proofs", "match": [ - "leleka-runtime/src/qwen_forward/gdn_[a-z_]*\\.rs::" + "engine-qwen35-cuda/src/qwen_forward/gdn_[a-z_]*\\.rs::" ] }, { @@ -180,11 +180,11 @@ "depends_on": [ "moe-mmq" ], - "desc": "leleka-runtime MoE/router/expert proofs", + "desc": "leleka-engine-qwen35-cuda MoE/router/expert proofs", "match": [ - "leleka-runtime/src/qwen_forward/moe_[a-z_]*\\.rs::", - "leleka-runtime/src/qwen_forward/router_scratch_gpu\\.rs::", - "leleka-runtime/src/qwen_forward/mtp_expert_[a-z_]*\\.rs::" + "engine-qwen35-cuda/src/qwen_forward/moe_[a-z_]*\\.rs::", + "engine-qwen35-cuda/src/qwen_forward/router_scratch_gpu\\.rs::", + "engine-qwen35-cuda/src/qwen_forward/mtp_expert_[a-z_]*\\.rs::" ] }, { @@ -193,9 +193,9 @@ "depends_on": [ "qsa" ], - "desc": "leleka-runtime QSA proofs", + "desc": "leleka-engine-qwen35-cuda QSA proofs", "match": [ - "leleka-runtime/src/qwen_forward/qsa_[a-z_]*\\.rs::" + "engine-qwen35-cuda/src/qwen_forward/qsa_[a-z_]*\\.rs::" ] }, { @@ -204,9 +204,9 @@ "depends_on": [ "ple" ], - "desc": "leleka-runtime PLE proofs", + "desc": "leleka-engine-qwen35-cuda PLE proofs", "match": [ - "leleka-runtime/src/qwen_forward/ple_[a-z_]*\\.rs::" + "engine-qwen35-cuda/src/qwen_forward/ple_[a-z_]*\\.rs::" ] }, { @@ -215,9 +215,9 @@ "depends_on": [ "mtp" ], - "desc": "leleka-runtime MTP proofs", + "desc": "leleka-engine-qwen35-cuda MTP proofs", "match": [ - "leleka-runtime/src/qwen_forward/mtp_[a-z_]*\\.rs::" + "engine-qwen35-cuda/src/qwen_forward/mtp_[a-z_]*\\.rs::" ] }, { diff --git a/scripts/gpu-bringup/smoke_inventory.py b/scripts/gpu-bringup/smoke_inventory.py index 29267f2f..21ed3747 100755 --- a/scripts/gpu-bringup/smoke_inventory.py +++ b/scripts/gpu-bringup/smoke_inventory.py @@ -30,7 +30,7 @@ GROUPS_FILE = HERE / "smoke-groups.json" TABLE_START = "" TABLE_END = "" -CRATE_PACKAGE = {"cuda-driver": "leleka-cuda-driver", "leleka-runtime": "leleka-runtime", "native-cpu-expert": "leleka-native-cpu-expert", +CRATE_PACKAGE = {"cuda-driver": "leleka-cuda-driver", "engine-qwen35-cuda": "leleka-engine-qwen35-cuda", "native-cpu-expert": "leleka-native-cpu-expert", "context": "leleka-context"} CRATE_FEATURES = {"cuda-driver": "cuda-driver"} diff --git a/scripts/gpu-bringup/tests/test_gpu_bringup.py b/scripts/gpu-bringup/tests/test_gpu_bringup.py index 9266ff02..d2101830 100644 --- a/scripts/gpu-bringup/tests/test_gpu_bringup.py +++ b/scripts/gpu-bringup/tests/test_gpu_bringup.py @@ -936,7 +936,7 @@ class RemoteSyncScript(unittest.TestCase): script = Path(str(self.log) + ".script").read_text() self.assertIn("cargo build --release --locked -j 4 -p strata-desktop-core --bin leleka-cli --bin leleka-daemon --bin leleka-inference", script) self.assertIn("cargo test --no-run --locked -j 4 -p leleka-cuda-driver --features cuda-driver", script) - self.assertIn("-p leleka-runtime", script) + self.assertIn("-p leleka-engine-qwen35-cuda", script) self.assertIn("nice -n 10", script) self.assertIn("cargo fetch --locked", script) self.assertNotIn("cargo run", script) diff --git a/scripts/laptop/port_bench.sh b/scripts/laptop/port_bench.sh index 88ad714a..54f98376 100644 --- a/scripts/laptop/port_bench.sh +++ b/scripts/laptop/port_bench.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Run the port's Original serve stack (laptop profile) on the same pre-tokenized prompts as original_bench.sh. # port_bench.sh LABEL -# Environment: TEST_BIN (the built leleka-runtime test executable, `cargo test --release -p leleka-runtime +# Environment: TEST_BIN (the built leleka-engine-qwen35-cuda test executable, `cargo test --release -p leleka-engine-qwen35-cuda # --features sm86 --lib --no-run`), MODEL_DIR (the two GGUF shards), KAR (read-only archive file) and # KAR_PROVENANCE, MTP (data/mtp-rt), MTP_STAGING (private 0700 dir), PROMPTS, OUT, CUBLAS12_LIB (dir with # libcublas.so.12). Every LELEKA_* switch of backend_original_serve_laptop.rs passes through (experts mapped or diff --git a/scripts/linux-tests/run.sh b/scripts/linux-tests/run.sh index 0b64552c..30ff1932 100755 --- a/scripts/linux-tests/run.sh +++ b/scripts/linux-tests/run.sh @@ -2,9 +2,9 @@ # Run the Linux x86_64-gated CPU tests of the Rust port inside Docker. # # scripts/linux-tests/run.sh # all three crates, one shard each -# scripts/linux-tests/run.sh -p leleka-runtime # selected crate(s) +# scripts/linux-tests/run.sh -p leleka-engine-qwen35-cuda # selected crate(s) # scripts/linux-tests/run.sh -- # e.g. -- conversation:: -# LELEKA_TEST_FILTER=conversation:: scripts/linux-tests/run.sh -p leleka-runtime +# LELEKA_TEST_FILTER=conversation:: scripts/linux-tests/run.sh -p leleka-engine-qwen35-cuda # scripts/linux-tests/run.sh --mocks # also run the CPU fake-libcuda #[ignore]d mock gates # LELEKA_TEST_CLEAN=1 ... # wipe the cached target volume first # @@ -36,7 +36,7 @@ while (( $# )); do *) echo "unknown argument: $1 (use -p and/or -- )" >&2; exit 2 ;; esac done -(( ${#packages[@]} )) || packages=(leleka-cuda-driver leleka-runtime leleka-native-cpu-expert) +(( ${#packages[@]} )) || packages=(leleka-cuda-driver leleka-engine-qwen35-cuda leleka-native-cpu-expert) if [[ -n "${LELEKA_TEST_FILTER:-}" ]]; then extra=("$LELEKA_TEST_FILTER" ${extra[@]+"${extra[@]}"}); fi command -v docker >/dev/null || { echo "docker not found" >&2; exit 2; } @@ -85,7 +85,7 @@ for pkg in "${packages[@]}"; do start=$SECONDS # --no-fail-fast: keep running every test binary even when one fails. features=() - case "$pkg" in leleka-cuda-driver|leleka-runtime|leleka-native-cpu-expert) features=(--features leleka-cuda-driver/cuda-driver) ;; esac + case "$pkg" in leleka-cuda-driver|leleka-engine-qwen35-cuda|leleka-native-cpu-expert) features=(--features leleka-cuda-driver/cuda-driver) ;; esac docker_run cargo test --locked --no-fail-fast ${features[@]+"${features[@]}"} -p "$pkg" -- ${extra[@]+"${extra[@]}"} 2>&1 | tee "$log" | awk -v v="${LELEKA_TEST_VERBOSE:-}" 'v { print; next } /^warning/ { skip=1 } /^$/ { skip=0 } !skip { print }' status=${PIPESTATUS[0]} elapsed=$((SECONDS - start)) diff --git a/scripts/profile/build_rt.sh b/scripts/profile/build_rt.sh index 2d64d875..a026fce8 100644 --- a/scripts/profile/build_rt.sh +++ b/scripts/profile/build_rt.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Build the leleka-runtime test binary of THIS worktree in WSL (never on the server) and print its path. +# Build the leleka-engine-qwen35-cuda test binary of THIS worktree in WSL (never on the server) and print its path. # scripts/profile/build_rt.sh TAG (run from Windows Git Bash in the worktree; needs WSL distro "Ubuntu") # Result: WSL ~/ledger-bin/rt-TAG. Copy to the server with: scp (see docs/ledger.md). set -euo pipefail @@ -15,8 +15,8 @@ export PATH=\$HOME/cuda-toolkits/13.2.2/bin:\$HOME/.cargo/bin:/usr/local/bin:/us rm -rf ~/ledger-src && mkdir -p ~/ledger-src ~/ledger-bin && tar -xf '$win' -C ~/ledger-src cd ~/ledger-src export CARGO_TARGET_DIR=\$HOME/ledger-target -nice -n 10 cargo test --no-run --locked --release -p leleka-runtime --lib 2>&1 | tee ~/ledger-build-$tag.log | grep -E 'Executable|^error|warning: unused' | tail -5 -exe=\$(grep -o 'target/release/deps/leleka_runtime-[0-9a-f]*' ~/ledger-build-$tag.log | tail -1) +nice -n 10 cargo test --no-run --locked --release -p leleka-engine-qwen35-cuda --lib 2>&1 | tee ~/ledger-build-$tag.log | grep -E 'Executable|^error|warning: unused' | tail -5 +exe=\$(grep -o 'target/release/deps/leleka_engine_qwen35_cuda-[0-9a-f]*' ~/ledger-build-$tag.log | tail -1) cp \$CARGO_TARGET_DIR/\${exe#target/} ~/ledger-bin/rt-$tag ls -la ~/ledger-bin/rt-$tag " diff --git a/scripts/soak/identity-job.sh b/scripts/soak/identity-job.sh index 76b0d295..85d573fb 100755 --- a/scripts/soak/identity-job.sh +++ b/scripts/soak/identity-job.sh @@ -2,7 +2,7 @@ # unattended identity gate (bitwise): the fast cold load changes how the expert bank is read from shard 0 (large O_DIRECT blocks on 32 threads instead of a # sequential read loop). The bank must hold the same bytes, so the teacher-forced replay of the 256k-class capture night5-long-256k must give identical top-16 # logprob rows and an identical draft trace. Adapted from scripts/e2e/decode/draftround-id.sh (same shape, same capture, same tools); ONE test binary for both processes -# (a `cargo test --release --no-run -p leleka-runtime --lib` build of this branch), process 1 with LELEKA_LOAD_READ=legacy (the old loop), process 2 with the default +# (a `cargo test --release --no-run -p leleka-engine-qwen35-cuda --lib` build of this branch; `-p leleka-runtime` before STRA-338 S22), process 1 with LELEKA_LOAD_READ=legacy (the old loop), process 2 with the default # (direct), two identical arms in each (the A/A floor). HOLDER JOB. ~25 GPU-min. # ID_BIN test binary path relative to /data/leleka-e2e/decode/dt (default ../../unattended/bin-rt/rt-unattended) # ID_OUT output directory (default /data/leleka-e2e/unattended/id-)