Skip to content

Commit a785474

Browse files
authored
un-ignore build-info.cmake and build-info.sh (#7996)
* un-ignore `build-info.cmake` and `build-info.sh` I am assuming that ignoring them was unintentional. If they are ignored, some tools, like cargo, will consider the files inexistent, even if they're comitted, for the purpose of publishing. This leads to the build failing in such cases. * un-ignore `build-info.cpp.in` For the same reason as the previous two files. * Reorganize `.gitignore` * Add exceptions for files mentioned by @slaren I did leave .clang-tidy since it was explicitly ignored before. * Add comments for organization * Sort some lines for pretty * Test with `make` and `cmake` builds to ensure no build artifacts might be comitted * Remove `.clang-tidy` from `.gitignore` Per comment by @ggerganov * Remove `IDEWorkspaceChecks.plist` from root-level `.gitignore`
1 parent 9c77ec1 commit a785474

File tree

1 file changed

+71
-38
lines changed

1 file changed

+71
-38
lines changed

.gitignore

Lines changed: 71 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,123 @@
1-
*.o
1+
# Extensions
2+
23
*.a
3-
*.so
4-
*.gguf
5-
*.gguf.json
4+
*.bat
65
*.bin
7-
*.exe
86
*.dll
9-
*.log
10-
*.gcov
11-
*.gcno
12-
*.gcda
137
*.dot
14-
*.bat
15-
*.tmp
16-
*.metallib
178
*.etag
9+
*.exe
10+
*.gcda
11+
*.gcno
12+
*.gcov
13+
*.gguf
14+
*.gguf.json
1815
*.lastModified
19-
.DS_Store
20-
.build/
16+
*.log
17+
*.metallib
18+
*.o
19+
*.so
20+
*.tmp
21+
22+
# IDE / OS
23+
2124
.cache/
2225
.ccls-cache/
2326
.direnv/
27+
.DS_Store
2428
.envrc
29+
.idea/
2530
.swiftpm
26-
.venv
27-
.clang-tidy
2831
.vs/
2932
.vscode/
30-
.idea/
33+
nppBackup
3134

32-
ggml-metal-embed.metal
3335

34-
lcov-report/
36+
# Coverage
37+
3538
gcovr-report/
39+
lcov-report/
40+
41+
# Build Artifacts
3642

3743
tags
44+
.build/
3845
build*
46+
!build-info.cmake
47+
!build-info.cpp.in
48+
!build-info.sh
3949
!build.zig
40-
cmake-build-*
50+
/libllama.so
51+
/llama-*
4152
android-ndk-*
53+
arm_neon.h
54+
cmake-build-*
55+
CMakeSettings.json
56+
compile_commands.json
57+
ggml-metal-embed.metal
58+
llama-batched-swift
4259
out/
4360
tmp/
4461

62+
# CI
63+
64+
!.github/workflows/*.yml
65+
66+
# Models
67+
4568
models/*
4669
models-mnt
70+
!models/.editorconfig
71+
!models/ggml-vocab-*.gguf*
4772

48-
/Pipfile
49-
/libllama.so
50-
/llama-*
51-
llama-batched-swift
52-
/common/build-info.cpp
53-
arm_neon.h
54-
compile_commands.json
55-
CMakeSettings.json
56-
57-
__pycache__
58-
dist
73+
# Zig
5974

6075
zig-out/
6176
zig-cache/
6277

78+
# Logs
79+
6380
ppl-*.txt
6481
qnt-*.txt
6582
perf-*.txt
6683

84+
# Examples
85+
6786
examples/jeopardy/results.txt
87+
examples/server/*.css.hpp
6888
examples/server/*.html.hpp
6989
examples/server/*.js.hpp
7090
examples/server/*.mjs.hpp
71-
examples/server/*.css.hpp
91+
!build_64.sh
92+
!examples/*.bat
93+
!examples/*/*.kts
94+
!examples/*/*/*.kts
95+
!examples/sycl/*.bat
96+
!examples/sycl/*.sh
7297

98+
# Python
99+
100+
__pycache__
101+
.venv
102+
/Pipfile
103+
dist
73104
poetry.lock
74105
poetry.toml
75-
nppBackup
76106

77107
# Test binaries
78-
/tests/test-grammar-parser
79-
/tests/test-llama-grammar
108+
/tests/test-backend-ops
80109
/tests/test-double-float
81110
/tests/test-grad0
111+
/tests/test-grammar-parser
112+
/tests/test-llama-grammar
82113
/tests/test-opt
83114
/tests/test-quantize-fns
84115
/tests/test-quantize-perf
116+
/tests/test-rope
85117
/tests/test-sampling
86118
/tests/test-tokenizer-0
87-
/tests/test-tokenizer-1-spm
88119
/tests/test-tokenizer-1-bpe
89-
/tests/test-rope
90-
/tests/test-backend-ops
120+
/tests/test-tokenizer-1-spm
121+
122+
# Scripts
123+
!/scripts/install-oneapi.bat

0 commit comments

Comments
 (0)