|
1 | | -# Compass - Makefile |
| 1 | +# NeuralNav - Makefile |
2 | 2 | # |
3 | | -# This Makefile provides common development tasks for Compass. |
| 3 | +# This Makefile provides common development tasks for NeuralNav. |
4 | 4 | # Supports macOS and Linux. |
5 | 5 |
|
6 | 6 | .PHONY: help |
@@ -40,13 +40,13 @@ CONTAINER_TOOL ?= $(shell \ |
40 | 40 |
|
41 | 41 | # Configuration |
42 | 42 | REGISTRY ?= quay.io |
43 | | -REGISTRY_ORG ?= vllm-assistant |
| 43 | +REGISTRY_ORG ?= neuralnav |
44 | 44 | SIMULATOR_IMAGE ?= vllm-simulator |
45 | 45 | SIMULATOR_TAG ?= latest |
46 | 46 | SIMULATOR_FULL_IMAGE := $(REGISTRY)/$(REGISTRY_ORG)/$(SIMULATOR_IMAGE):$(SIMULATOR_TAG) |
47 | 47 |
|
48 | 48 | OLLAMA_MODEL ?= qwen2.5:7b |
49 | | -KIND_CLUSTER_NAME ?= compass-poc |
| 49 | +KIND_CLUSTER_NAME ?= neuralnav |
50 | 50 |
|
51 | 51 | PGDUMP_INPUT ?= data/integ-oct-29.sql |
52 | 52 | PGDUMP_OUTPUT ?= data/benchmarks_GuideLLM.json |
@@ -213,15 +213,15 @@ stop: ## Stop all services |
213 | 213 | kill $$(cat $(BACKEND_PID)) 2>/dev/null || true; \ |
214 | 214 | rm -f $(BACKEND_PID); \ |
215 | 215 | fi |
216 | | - @# Kill any remaining Compass processes by pattern matching |
| 216 | + @# Kill any remaining NeuralNav processes by pattern matching |
217 | 217 | @pkill -f "streamlit run ui/app.py" 2>/dev/null || true |
218 | 218 | @pkill -f "uvicorn src.api.routes:app" 2>/dev/null || true |
219 | 219 | @# Give processes time to exit gracefully |
220 | 220 | @sleep 1 |
221 | 221 | @# Force kill if still running |
222 | 222 | @pkill -9 -f "streamlit run ui/app.py" 2>/dev/null || true |
223 | 223 | @pkill -9 -f "uvicorn src.api.routes:app" 2>/dev/null || true |
224 | | - @printf "$(GREEN)✓ All Compass services stopped$(NC)\n" |
| 224 | + @printf "$(GREEN)✓ All NeuralNav services stopped$(NC)\n" |
225 | 225 | @# Don't stop Ollama as it might be used by other apps |
226 | 226 | @printf "$(YELLOW)Note: Ollama left running (use 'pkill ollama' to stop manually)$(NC)\n" |
227 | 227 |
|
@@ -255,7 +255,7 @@ open-backend: ## Open backend API docs in browser |
255 | 255 |
|
256 | 256 | build-simulator: ## Build vLLM simulator Docker image |
257 | 257 | @printf "$(BLUE)Building simulator image...$(NC)\n" |
258 | | - cd $(SIMULATOR_DIR) && $(CONTAINER_TOOL) build -t vllm-simulator:latest -t $(SIMULATOR_FULL_IMAGE) . |
| 258 | + $(CONTAINER_TOOL) build -f $(SIMULATOR_DIR)/Dockerfile -t vllm-simulator:latest -t $(SIMULATOR_FULL_IMAGE) . |
259 | 259 | @printf "$(GREEN)✓ Simulator image built:$(NC)\n" |
260 | 260 | @printf " - vllm-simulator:latest\n" |
261 | 261 | @printf " - $(SIMULATOR_FULL_IMAGE)\n" |
@@ -347,7 +347,7 @@ docker-shell-ui: ## Open shell in UI container |
347 | 347 | @docker-compose exec ui /bin/bash |
348 | 348 |
|
349 | 349 | docker-shell-postgres: ## Open PostgreSQL shell in container |
350 | | - @docker-compose exec postgres psql -U compass -d compass |
| 350 | + @docker-compose exec postgres psql -U neuralnav -d neuralnav |
351 | 351 |
|
352 | 352 | ##@ Kubernetes Cluster |
353 | 353 |
|
@@ -383,38 +383,38 @@ clean-deployments: ## Delete all InferenceServices from cluster |
383 | 383 |
|
384 | 384 | db-start: ## Start PostgreSQL container for benchmark data |
385 | 385 | @printf "$(BLUE)Starting PostgreSQL...$(NC)\n" |
386 | | - @if $(CONTAINER_TOOL) ps -a --format '{{.Names}}' | grep -q '^compass-postgres$$'; then \ |
387 | | - if $(CONTAINER_TOOL) ps --format '{{.Names}}' | grep -q '^compass-postgres$$'; then \ |
| 386 | + @if $(CONTAINER_TOOL) ps -a --format '{{.Names}}' | grep -q '^neuralnav-postgres$$'; then \ |
| 387 | + if $(CONTAINER_TOOL) ps --format '{{.Names}}' | grep -q '^neuralnav-postgres$$'; then \ |
388 | 388 | printf "$(YELLOW)PostgreSQL already running$(NC)\n"; \ |
389 | 389 | else \ |
390 | | - $(CONTAINER_TOOL) start compass-postgres; \ |
| 390 | + $(CONTAINER_TOOL) start neuralnav-postgres; \ |
391 | 391 | printf "$(GREEN)✓ PostgreSQL started$(NC)\n"; \ |
392 | 392 | fi \ |
393 | 393 | else \ |
394 | | - $(CONTAINER_TOOL) run --name compass-postgres -d \ |
395 | | - -e POSTGRES_PASSWORD=compass \ |
396 | | - -e POSTGRES_DB=compass \ |
| 394 | + $(CONTAINER_TOOL) run --name neuralnav-postgres -d \ |
| 395 | + -e POSTGRES_PASSWORD=neuralnav \ |
| 396 | + -e POSTGRES_DB=neuralnav \ |
397 | 397 | -p 5432:5432 \ |
398 | 398 | postgres:16; \ |
399 | 399 | sleep 3; \ |
400 | 400 | printf "$(GREEN)✓ PostgreSQL started on port 5432$(NC)\n"; \ |
401 | 401 | fi |
402 | | - @printf "$(BLUE)Database URL:$(NC) postgresql://postgres:compass@localhost:5432/compass\n" |
| 402 | + @printf "$(BLUE)Database URL:$(NC) postgresql://postgres:neuralnav@localhost:5432/neuralnav\n" |
403 | 403 |
|
404 | 404 | db-stop: ## Stop PostgreSQL container |
405 | 405 | @printf "$(BLUE)Stopping PostgreSQL...$(NC)\n" |
406 | | - @$(CONTAINER_TOOL) stop compass-postgres 2>/dev/null || true |
| 406 | + @$(CONTAINER_TOOL) stop neuralnav-postgres 2>/dev/null || true |
407 | 407 | @printf "$(GREEN)✓ PostgreSQL stopped$(NC)\n" |
408 | 408 |
|
409 | 409 | db-remove: db-stop ## Stop and remove PostgreSQL container |
410 | 410 | @printf "$(BLUE)Removing PostgreSQL container...$(NC)\n" |
411 | | - @$(CONTAINER_TOOL) rm compass-postgres 2>/dev/null || true |
| 411 | + @$(CONTAINER_TOOL) rm neuralnav-postgres 2>/dev/null || true |
412 | 412 | @printf "$(GREEN)✓ PostgreSQL container removed$(NC)\n" |
413 | 413 |
|
414 | 414 | db-init: db-start ## Initialize PostgreSQL schema |
415 | 415 | @printf "$(BLUE)Initializing PostgreSQL schema...$(NC)\n" |
416 | 416 | @sleep 2 |
417 | | - @$(CONTAINER_TOOL) exec -i compass-postgres psql -U postgres -d compass < scripts/schema.sql |
| 417 | + @$(CONTAINER_TOOL) exec -i neuralnav-postgres psql -U postgres -d neuralnav < scripts/schema.sql |
418 | 418 | @printf "$(GREEN)✓ Schema initialized$(NC)\n" |
419 | 419 |
|
420 | 420 | db-load-synthetic: db-start ## Load synthetic benchmark data (appends) |
@@ -457,19 +457,19 @@ db-convert-pgdump: db-start ## Convert PostgreSQL dump to JSON format |
457 | 457 | @printf "$(GREEN)✓ Created $(PGDUMP_OUTPUT)$(NC)\n" |
458 | 458 |
|
459 | 459 | db-shell: ## Open PostgreSQL shell |
460 | | - @$(CONTAINER_TOOL) exec -it compass-postgres psql -U postgres -d compass |
| 460 | + @$(CONTAINER_TOOL) exec -it neuralnav-postgres psql -U postgres -d neuralnav |
461 | 461 |
|
462 | 462 | db-query-traffic: ## Query unique traffic patterns from database |
463 | 463 | @printf "$(BLUE)Querying unique traffic patterns...$(NC)\n" |
464 | | - @$(CONTAINER_TOOL) exec -i compass-postgres psql -U postgres -d compass -c \ |
| 464 | + @$(CONTAINER_TOOL) exec -i neuralnav-postgres psql -U postgres -d neuralnav -c \ |
465 | 465 | "SELECT DISTINCT mean_input_tokens, mean_output_tokens, COUNT(*) as num_benchmarks \ |
466 | 466 | FROM exported_summaries \ |
467 | 467 | GROUP BY prompt_tokens, output_tokens \ |
468 | 468 | ORDER BY prompt_tokens, output_tokens;" |
469 | 469 |
|
470 | 470 | db-query-models: ## Query available models in database |
471 | 471 | @printf "$(BLUE)Querying available models...$(NC)\n" |
472 | | - @$(CONTAINER_TOOL) exec -i compass-postgres psql -U postgres -d compass -c \ |
| 472 | + @$(CONTAINER_TOOL) exec -i neuralnav-postgres psql -U postgres -d neuralnav -c \ |
473 | 473 | "SELECT DISTINCT model_hf_repo, hardware, hardware_count, COUNT(*) as num_benchmarks \ |
474 | 474 | FROM exported_summaries \ |
475 | 475 | GROUP BY model_hf_repo, hardware, hardware_count \ |
|
0 commit comments