You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,8 @@ cmake -B build -DGGML_METAL=ON
47
47
cmake --build build --config Release -j $(nproc)
48
48
```
49
49
50
+
**Important Note**: While all backends can be built as long as the correct requirements for that backend are installed, you will not be able to run them without the correct hardware. The only backend that can be run for testing and validation is the CPU backend.
**Expected failures**: 2-3 tests may fail if network access is unavailable (they download models)
78
80
**Test time**: ~30 seconds for passing tests
79
81
82
+
### Server Unit Tests
83
+
Run server-specific unit tests after building the server:
84
+
```bash
85
+
# Build the server first
86
+
cmake --build build --target llama-server
87
+
88
+
# Navigate to server tests and run
89
+
cd tools/server/tests
90
+
source ../../../.venv/bin/activate
91
+
pip install -r requirements.txt
92
+
./tests.sh
93
+
```
94
+
95
+
**Server test dependencies**: The `.venv` environment includes the required dependencies for server unit tests (pytest, aiohttp, etc.). Tests can be run individually or with various options as documented in `tools/server/tests/README.md`.
96
+
80
97
### Test Categories
81
98
- Tokenizer tests: Various model tokenizers (BERT, GPT-2, LLaMA, etc.)
0 commit comments