Commit 5a45132
authored
[llm] Fix llama/README.md (#11543)
This PR simplifies README.md's cmake command by using preset.
This pull request simplifies the build process for the Llama model and
its runner by introducing a preset configuration and removing redundant
build flags. Additionally, it updates the `CMakeLists.txt` file to
enable specific features for tokenizers.
### Build process simplification:
*
[`examples/models/llama/README.md`](diffhunk://#diff-535f376de1f099ede770ee4d5b3c3193b5784c6a0342e292e667fe4ff9d1633eL272-L298):
Replaced the detailed `cmake` commands with a preset configuration
(`--preset llm`) for building executorch and removed redundant flags for
the Llama runner build process. This streamlines the instructions and
reduces complexity.
### Tokenizer configuration updates:
*
[`extension/llm/runner/CMakeLists.txt`](diffhunk://#diff-ab47c38904702e3d66a37419ca35a07815f7d4735f7e94330d17643b9f77ad2bR47-R48):
Added `SUPPORT_REGEX_LOOKAHEAD` and `PCRE2_STATIC_PIC` settings to
enable regex lookahead support and ensure position-independent code for
tokenizers.1 parent 6a4df94 commit 5a45132
File tree
3 files changed
+11
-23
lines changed- .ci/scripts
- examples/models/llama
- extension/llm/runner
3 files changed
+11
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
| 159 | + | |
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 272 | + | |
284 | 273 | | |
285 | 274 | | |
286 | 275 | | |
287 | 276 | | |
288 | 277 | | |
289 | 278 | | |
290 | 279 | | |
291 | | - | |
292 | | - | |
| 280 | + | |
| 281 | + | |
293 | 282 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | 283 | | |
300 | 284 | | |
301 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
57 | | - | |
58 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
0 commit comments