Skip to content

Commit d950e28

Browse files
committed
simplify repo and docs
1 parent 0712fc0 commit d950e28

File tree

10 files changed

+481
-381
lines changed

10 files changed

+481
-381
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ inherits = "release"
1111
debug = true
1212

1313
[features]
14+
# used by flamegraphs & instruments
1415
profiling = []
1516

1617
[dependencies]

Makefile

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,33 @@ ifneq (,$(wildcard ./.env))
55
endif
66

77
###############################################################################
8-
.PHONY: launch # | Run with INFO log-level in release mode
8+
.PHONY: launch # | Run with INFO logs in release mode
99
launch:
10-
RUST_LOG=warn,dkn_compute=info cargo run --release
10+
RUST_LOG=none,dkn_compute=info cargo run --release
1111

12-
.PHONY: run # | Run with INFO log-level
12+
.PHONY: run # | Run with INFO logs
1313
run:
1414
RUST_LOG=none,dkn_compute=info cargo run
1515

16-
.PHONY: debug # | Run with DEBUG log-level with INFO log-level workflows
16+
.PHONY: debug # | Run with DEBUG logs with INFO log-level workflows
1717
debug:
1818
RUST_LOG=warn,dkn_compute=debug,ollama_workflows=info cargo run
1919

20-
.PHONY: trace # | Run with crate-level TRACE logging
20+
.PHONY: trace # | Run with TRACE logs
2121
trace:
22-
RUST_LOG=none,dkn_compute=trace,libp2p=debug cargo run
22+
RUST_LOG=warn,dkn_compute=trace,libp2p=debug cargo run
2323

2424
.PHONY: build # | Build
2525
build:
2626
cargo build
2727

28-
.PHONY: profile-cpu # | Profile CPU usage with flamegraph
28+
.PHONY: profile-cpu # | Profile CPU usage with flamegraph
2929
profile-cpu:
3030
cargo flamegraph --root --profile=profiling --features=profiling
3131

32-
.PHONY: profile-mem # | Profile memory usage with instruments
32+
.PHONY: profile-mem # | Profile memory usage with instruments
3333
profile-mem:
34-
cargo instruments --profile=profiling --features=profiling -t Leaks
34+
cargo instruments --profile=profiling --features=profiling -t Allocations
3535

3636
.PHONY: version # | Print version
3737
version:
@@ -42,17 +42,12 @@ version:
4242
test:
4343
cargo test
4444

45-
###############################################################################
46-
.PHONY: prompt # | Run a single prompt on a model
47-
prompt:
48-
cargo run --example prompt
49-
5045
###############################################################################
51-
.PHONY: lint # | Run clippy
46+
.PHONY: lint # | Run linter (clippy)
5247
lint:
5348
cargo clippy
5449

55-
.PHONY: format # | Run formatter
50+
.PHONY: format # | Run formatter (cargo fmt)
5651
format:
5752
cargo fmt -v
5853

0 commit comments

Comments
 (0)