Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LMCache/LMCache
/ functions
Functions
13,371 in github.com/LMCache/LMCache
⨍
Functions
13,371
◇
Types & classes
2,044
↳
Endpoints
181
Function
test_bench_cdf_sycl
(benchmark, xops, ntokens)
tests/benchmarks/test_xpu_kernels_microbench.py:44
Function
test_bench_decode_sycl
(benchmark, xops, ntokens)
tests/benchmarks/test_xpu_kernels_microbench.py:126
Function
test_bench_encode_fallback
(benchmark, xops, ntokens)
tests/benchmarks/test_xpu_kernels_microbench.py:107
Function
test_bench_encode_sycl
(benchmark, xops, ntokens)
tests/benchmarks/test_xpu_kernels_microbench.py:91
Method
test_bench_engine_wiring
End-to-end orchestrator test with mocked OpenAI client.
tests/cli/commands/bench/test_bench_command.py:542
Method
test_bench_in_all_commands
(self)
tests/cli/commands/bench/test_bench_command.py:138
Function
test_bench_rope_sycl
(benchmark, xops, ntokens)
tests/benchmarks/test_xpu_kernels_microbench.py:155
Method
test_benchmark_setup_and_cleanup
Test benchmark setup and cleanup
tests/tools/test_controller_zmq_benchmark.py:442
Method
test_bfloat16_does_not_crash
(self)
tests/v1/multiprocess/test_compute_mp_checksums.py:116
Method
test_bfloat16_layout
bf16: 2 bytes/elem KV -> 1 byte/elem fp8. Buffer = 1.5 * numel.
tests/v1/distributed/serde/test_serde_e2e.py:501
Method
test_bigtable_config_defaults
Verify that Bigtable configuration defaults are consistent.
tests/v1/storage_backend/test_bigtable_connector.py:953
Function
test_blend_drop_instance_state_drops_rope_state
drop_instance_state pops the reaped instance's CB rope state. The GPU context is no longer mirrored in BlendV3Module (reaping the GPU entry f
tests/v1/multiprocess/test_worker_liveness.py:275
Method
test_blend_overrides_applied
blend_chunk_size/blend_probe_stride flags override the config.
tests/cli/commands/test_coordinator.py:76
Method
test_block_allocation_not_delivered_to_other_subscriber
Verify block allocation events are not delivered to unrelated subscribers.
tests/v1/mp_observability/test_event_bus.py:498
Function
test_block_allocation_record_list_serialization
Test encoding and decoding of a list of BlockAllocationRecord.
tests/v1/multiprocess/test_custom_types.py:262
Function
test_block_allocation_record_serialization
Test encoding and decoding of BlockAllocationRecord using msgspec.
tests/v1/multiprocess/test_custom_types.py:246
Method
test_block_id_ranges_in_response
Response includes compressed block_id_ranges.
tests/v1/multiprocess/test_http_server.py:216
Method
test_block_ids_basic
block_ids with explicit block_size + block-level chunk_size.
tests/v1/multiprocess/test_http_server.py:231
Method
test_block_ids_invalid_format
400 when block_ids cannot be parsed.
tests/v1/multiprocess/test_http_server.py:241
Function
test_block_transfer_roundtrip
D2H -> H2D roundtrip with different block IDs proves data flows through memory objects.
tests/v1/test_mp_mem_kernels.py:281
Function
test_block_transfer_skip_prefix
Verify skip_prefix_n_blocks=4 skips the first 4 blocks globally.
tests/v1/test_mp_mem_kernels.py:381
Method
test_bloom_filter_operations
(self)
tests/v1/lookup_client/test_chunk_statistics_lookup_client.py:98
Method
test_both_equal_zero
Edge case: brand new request, both are 0.
tests/v1/test_decode_save_and_preemption.py:186
Method
test_both_fds_closed
close() releases both read and write fds.
tests/v1/test_event_notifier.py:94
Method
test_both_inf_no_nan
When both LSEs are -inf, output should be zero (not NaN).
tests/v1/compute/attention/test_triton_kernels.py:245
Method
test_both_role_accepted
PDConfig accepts 'both' as a valid role.
tests/v1/storage_backend/test_pd_backend_bidirectional.py:34
Function
test_boundary_alloc
(alloc_cls)
tests/v1/test_memory_management.py:223
Method
test_breaker_differs_per_request
(self)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:375
Method
test_bucket_path_uses_prefix_and_encoding
(self)
tests/v1/distributed/test_hfbucket_l2_adapter.py:244
Method
test_buffer_backed_store_lookup_load
Store and load RDMA-preregistered objects backed by an explicit L1 buffer.
tests/v1/distributed/test_mooncake_store_l2_adapter.py:926
Method
test_buffer_only_multiple_keys
Multiple keys should all flow to L2 and be removed from L1.
tests/v1/distributed/test_store_controller.py:693
Function
test_buffer_size_unaligned_to_aligned
Test that PD buffer size is rounded down to the nearest chunk multiple. Args: mock_allocator_cls: Mocked paged allocator class injec
tests/v1/storage_backend/test_pd_backend_buffer_alignment.py:32
Method
test_buffers_non_overlapping
Every (batch, kernel_group) buffer occupies disjoint memory.
tests/v1/platform/test_gpu_cache_context.py:255
Function
test_build_argv_accepts_http_config_alias
``MPRuntimePluginLauncher`` passes the http config under the key ``http_config`` (see ``http_server.py``). Ensure we accept both ``http_config
tests/lmcache_frontend/lmcache_mp_plugin/test_lmcache_mp_frontend_plugin.py:90
Function
test_build_argv_prefers_socket_path_when_set
()
tests/lmcache_frontend/lmcache_mp_plugin/test_lmcache_mp_frontend_plugin.py:75
Function
test_build_argv_rewrites_wildcard_host
()
tests/lmcache_frontend/lmcache_mp_plugin/test_lmcache_mp_frontend_plugin.py:62
Function
test_build_argv_with_empty_config_has_defaults
()
tests/lmcache_frontend/lmcache_mp_plugin/test_lmcache_mp_frontend_plugin.py:107
Function
test_build_argv_with_tcp_http_config
()
tests/lmcache_frontend/lmcache_mp_plugin/test_lmcache_mp_frontend_plugin.py:28
Method
test_build_different_dtypes
(self)
tests/v1/test_kv_layer_groups_manager.py:148
Method
test_build_different_shapes
(self)
tests/v1/test_kv_layer_groups_manager.py:134
Method
test_build_empty
(self)
tests/v1/test_kv_layer_groups_manager.py:55
Function
test_build_global_segments_are_retrievable_cbmatchresults
Coordinator object_key hex round-trips to the hash the retrieve path resolves via ipc_key_to_object_keys; positions span one chunk.
tests/v1/multiprocess/test_blend_v3_load_store_opts.py:369
Method
test_build_messages_no_history
(self)
tests/cli/commands/bench/engine_bench/workloads/test_multi_round_chat.py:154
Method
test_build_messages_with_exchanges
(self)
tests/cli/commands/bench/engine_bench/workloads/test_multi_round_chat.py:180
Method
test_build_messages_with_history
(self)
tests/cli/commands/bench/engine_bench/workloads/test_multi_round_chat.py:165
Method
test_build_mixed_differences
(self)
tests/v1/test_kv_layer_groups_manager.py:162
Method
test_build_multiple_layers_same_shape
(self)
tests/v1/test_kv_layer_groups_manager.py:75
Method
test_build_operation_distribution
Test operation distribution building
tests/tools/test_controller_zmq_benchmark.py:382
Method
test_build_rejects_bad_engine_group_infos
(self)
tests/v1/test_kv_layer_groups_manager.py:108
Method
test_build_rejects_coarse_engine_group_infos
(self)
tests/v1/test_kv_layer_groups_manager.py:119
Method
test_build_single_layer
(self)
tests/v1/test_kv_layer_groups_manager.py:59
Method
test_build_splits_same_shape_by_engine_group_idx
(self)
tests/v1/test_kv_layer_groups_manager.py:88
Function
test_builder
(autorelease_v1)
tests/v1/test_cache_engine.py:1352
Function
test_builder_destroy
Test the destroy method of LMCacheEngineBuilder
tests/v1/test_cache_engine.py:1457
Function
test_builder_destroy_multiple_instances
Test destroying one instance doesn't affect others
tests/v1/test_cache_engine.py:1509
Method
test_bus_stop_closes_recorder
``EventBus.stop()`` alone must flush, fsync, and close the recorder — without an explicit ``close()`` call. Regression guard for the
tests/v1/mp_observability/trace/test_recorder.py:272
Method
test_byte_array_dangling_after_free
byte_array memoryview sees new allocation's data after slot reuse.
tests/v1/test_staging_buffer.py:22
Method
test_bytes_buffer_memory_obj_set_used_size_is_noop
``BytesBufferMemoryObj`` does not distinguish "used" from "allocated"; ``set_used_size`` is the base-class no-op so the size stays the
tests/v1/test_memory_management.py:1114
Method
test_bytes_by_cache_salt_default_empty
(self)
tests/v1/distributed/test_l2_adapter_base.py:93
Method
test_bytes_by_cache_salt_populated_from_cache_salt
End-to-end: storing keys with different ``cache_salt`` values should drive the byte buckets in ``AdapterUsage`` — proves the salt actu
tests/v1/distributed/test_mock_l2_adapter.py:741
Method
test_cache_clear_adapter_attribute_error
Test cache clear when adapter doesn't have lmcache_engine attribute.
tests/v1/internal_api_server/test_cache_clear.py:121
Method
test_cache_clear_engine_exception
Test cache clear when engine raises an exception.
tests/v1/internal_api_server/test_cache_clear.py:89
Method
test_cache_clear_negative_return_value
Test cache clear when engine returns negative value (edge case).
tests/v1/internal_api_server/test_cache_clear.py:105
Method
test_cache_clear_success
Test successful cache clear operation.
tests/v1/internal_api_server/test_cache_clear.py:38
Method
test_cache_clear_with_locations
Test cache clear with specific locations.
tests/v1/internal_api_server/test_cache_clear.py:61
Function
test_cache_contexts_returns_none_in_engine_driven_mode
()
tests/v1/multiprocess/test_engine_passthroughs.py:41
Function
test_cache_contexts_unwraps_entries_from_gpu_transfer_module
()
tests/v1/multiprocess/test_engine_passthroughs.py:28
Method
test_cache_hit
When the helper finds the key in the presence cache, return True.
tests/v1/test_nixl_batched_contains.py:130
Method
test_cache_query_request_serialization
CacheQueryRequest can be serialized and deserialized.
tests/v1/storage_backend/test_pd_backend_bidirectional.py:131
Method
test_cache_query_response_serialization
CacheQueryResponse can be serialized and deserialized.
tests/v1/storage_backend/test_pd_backend_bidirectional.py:142
Method
test_cache_query_returns_cached_keys
_cache_query_loop returns correct cached keys and indexes.
tests/v1/storage_backend/test_pd_backend_bidirectional.py:398
Method
test_cache_salt_appended
(self)
tests/v1/distributed/test_hfbucket_l2_adapter.py:228
Method
test_cache_salt_appended
A non-empty cache_salt must be included in the S3 object name so two users with the same model/rank/chunk map to distinct objects.
tests/v1/distributed/test_s3_l2_adapter.py:423
Method
test_cache_salt_bucket_dropped_when_zero
Per-``cache_salt`` bookkeeping should not retain stale ``0`` entries — it keeps the snapshot compact and avoids memory growth across m
tests/v1/distributed/test_l2_adapter_base.py:152
Method
test_cache_salt_isolates_chunk_identity
Same chunk_hash under different cache_salts = different keys.
tests/v1/mp_observability/subscribers/metrics/test_sm_lifecycle.py:254
Method
test_cache_salt_isolates_counter
Per-salt counter: t-x accesses don't bump t-y's gap.
tests/v1/mp_observability/subscribers/metrics/test_sm_lifecycle.py:230
Method
test_cache_size_per_token
(self)
tests/v1/platform/test_gpu_cache_context.py:398
Method
test_cache_size_per_token_compressed
Compression halves per-physical-slot bytes, so the per-logical-token size of a 2x-compressed group is half its uncompressed counterpart.
tests/v1/platform/test_gpu_cache_context.py:412
Function
test_cachegen_decoder
(chunk_size)
tests/test_serde.py:89
Function
test_cachegen_decoder_bench
(benchmark, chunk_size)
tests/benchmarks/test_cachegen.py:79
Function
test_cachegen_encoder
(chunk_size)
tests/test_serde.py:49
Function
test_cachegen_encoder_bench
(benchmark, chunk_size)
tests/benchmarks/test_cachegen.py:62
Function
test_cachegen_unmatched_size
()
tests/test_serde.py:115
Method
test_calculate_draft_layers_deepseek_mtp
Test returns correct layers for deepseek_mtp method.
tests/v1/test_manager.py:390
Method
test_calculate_draft_layers_no_speculative_config
Test returns 0 when no speculative_config.
tests/v1/test_manager.py:380
Method
test_calculate_num_blocks_compressed
(self)
tests/v1/test_kv_layer_groups_manager.py:536
Method
test_calculate_num_blocks_matches_manager
(self)
tests/v1/platform/test_gpu_cache_context.py:481
Method
test_calculate_num_blocks_uncompressed
(self)
tests/v1/test_kv_layer_groups_manager.py:501
Method
test_calculate_num_blocks_uncompressed
(self)
tests/v1/platform/test_gpu_cache_context.py:476
Method
test_callback_invoked_on_failure
(self, temp_pkg: Tuple[str, Path])
tests/v1/test_subclass_discovery.py:250
Method
test_callback_invokes_func
The OTel callback delegates to the user-provided func.
tests/v1/mp_observability/test_register_gauge.py:49
Method
test_callbacks_called_on_failure
(self, mock_openai_cls)
tests/cli/commands/bench/engine_bench/test_request_sender.py:371
Method
test_callbacks_called_on_success
(self, mock_openai_cls)
tests/cli/commands/bench/engine_bench/test_request_sender.py:337
Function
test_calls_storage_manager_without_timeout_and_without_accepted_response
()
tests/v1/multiprocess/http_apis/test_reconfigure_api.py:81
Method
test_can_exit_freeze
Test freeze exit check.
tests/v1/cache_controller/test_full_sync.py:167
Method
test_can_unsafe_read_after_transition
Test that unsafe_read works on the transitioned key.
tests/v1/distributed/test_l1_manager.py:1169
Method
test_capacity_one
(self)
tests/tools/test_cache_simulator.py:59
Method
test_capped_at_requested
(self)
tests/cli/commands/bench/engine_bench/workloads/test_long_doc_permutator.py:195
Method
test_capture_filter
(self)
tests/v1/mp_observability/trace/test_decorator.py:105
Method
test_carries_model_name_and_cache_salt
(self, subscriber)
tests/v1/mp_observability/subscribers/metrics/test_engine.py:131
← previous
next →
9,201–9,300 of 13,371, ranked by callers