Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,18 @@ test-cuda-mixed-batch: tests/test_cuda_mixed_batch
DS4_TEST_MODEL="$(DS4_TEST_MODEL)" ./tests/test_cuda_mixed_batch
endif

tests/attention_multi_smoke.o: tests/attention_multi_smoke.c ds4_gpu.h
$(CC) $(CFLAGS) -I. -c -o $@ tests/attention_multi_smoke.c

tests/attention_multi_smoke: tests/attention_multi_smoke.o ds4_cuda.o
$(NVCC) $(NVCCFLAGS) -o $@ $^ $(CUDA_LDLIBS)

tests/rope_multi_bench.o: tests/rope_multi_bench.c ds4_gpu.h
$(CC) $(CFLAGS) -I. -c -o $@ tests/rope_multi_bench.c

tests/rope_multi_bench: tests/rope_multi_bench.o ds4_cuda.o
$(NVCC) $(NVCCFLAGS) -o $@ $^ $(CUDA_LDLIBS)

ds4_test: ds4_test.o ds4_help.o ds4_kvstore.o rax.o $(CORE_OBJS)
ifeq ($(UNAME_S),Darwin)
$(CC) $(CFLAGS) -o $@ ds4_test.o ds4_help.o ds4_kvstore.o rax.o $(CORE_OBJS) $(METAL_LDLIBS)
Expand Down
965 changes: 957 additions & 8 deletions ds4.c

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions ds4.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ typedef struct {
int placement_ctx_hint;
/* Server batch mode serializes execution and can share prefill scratch. */
bool share_session_prefill_workspace;
/* Number of resident sessions the batched server will create after the
* engine opens; used to keep that much VRAM out of the lazy weight
* caches so session creation cannot fail. 0 = single-session server. */
int resident_sessions;
bool first_token_test;
bool metal_graph_test;
bool load_slice;
Expand Down
Loading