# Extensions

*.a
*.bat
*.bin
*.d
*.dll
*.dot
*.etag
*.exe
*.gcda
*.gcno
*.gcov
*.gguf
*.gguf.json
*.lastModified
*.log
*.metallib
*.o
*.so
*.swp
*.tmp
*.DS_Store

# IDE / OS

/.cache/
/.ccls-cache/
/.direnv/
/.envrc
/.idea/
/.swiftpm
/.vs/
/.vscode/
/nppBackup

# Coverage

/gcovr-report/
/lcov-report/

# Build Artifacts

/tags
/.build/
/build*
/release
/debug
/libllama.so
/llama-*
/vulkan-shaders-gen
/rpc-server
/out/
/tmp/
/autogen-*.md
/common/build-info.cpp

# Deprecated

/main
/server

# CI

!/.github/workflows/*.yml

# Models

/models/*
/models-mnt
!/models/.editorconfig
!/models/ggml-vocab-*.gguf*
!/models/templates

# Zig

/zig-out/
/zig-cache/

# Examples

/examples/jeopardy/results.txt
/tools/server/*.css.hpp
/tools/server/*.html.hpp
/tools/server/*.js.hpp
/tools/server/*.mjs.hpp
/tools/server/*.gz.hpp
!/build_64.sh
!/examples/*.bat
!/examples/*/*.kts
!/examples/*/*/*.kts
!/examples/sycl/*.bat
!/examples/sycl/*.sh

# Server Web UI temporary files (+ legacy directory)

/tools/server/webui/node_modules
/tools/server/webui/dist
/tools/ui/node_modules
/tools/ui/dist

# Python

/.venv
__pycache__/
*/poetry.lock
poetry.toml
poetry.lock
uv.lock

# Nix

flake.lock
/result

# Test binaries

/tests/test-backend-ops
/tests/test-double-float
/tests/test-grad0
/tests/test-grammar-parser
/tests/test-llama-grammar
/tests/test-opt
/tests/test-quantize-fns
/tests/test-quantize-perf
/tests/test-rope
/tests/test-sampling
/tests/test-tokenizer-0
/tests/test-tokenizer-1-bpe
/tests/test-tokenizer-1-spm

# Scripts

!/scripts/install-oneapi.bat

# Generated by scripts
/hellaswag_val_full.txt
/winogrande-debiased-eval.csv
/wikitext-2-raw/

# Test models for lora adapters

/lora-tests

# Local scripts

/run-vim.sh
/run-chat.sh
/run-spec.sh
/.ccache/

# IDE

/*.code-workspace
/.windsurf/
# emscripten
a.out.*

# AGENTS

AGENTS.local.md
.pi/SYSTEM.md
