mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-06-27 23:50:20 -05:00
ci : add [no release] keyword + fix sanitizer builds (#23728)
* ci : skip release workflow on master when commit message contains [no release] Assisted-by: llama.cpp:local pi * ci : restrict sanitizer builds to x86_64 + fix build type the spark is apparently too slow for some reason * tests : fix undefined warning [no ci]
This commit is contained in:
parent
5190c2ea8d
commit
35a74c8fb9
5
.github/workflows/build-sanitize.yml
vendored
5
.github/workflows/build-sanitize.yml
vendored
@ -28,7 +28,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ctest:
|
ctest:
|
||||||
runs-on: [self-hosted, CPU, Linux]
|
runs-on: [self-hosted, X64, CPU, Linux]
|
||||||
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
@ -60,6 +60,7 @@ jobs:
|
|||||||
if: ${{ matrix.sanitizer == 'UNDEFINED' }}
|
if: ${{ matrix.sanitizer == 'UNDEFINED' }}
|
||||||
run: |
|
run: |
|
||||||
cmake -B build \
|
cmake -B build \
|
||||||
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DLLAMA_FATAL_WARNINGS=ON \
|
-DLLAMA_FATAL_WARNINGS=ON \
|
||||||
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
|
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
|
||||||
-DGGML_SANITIZE_${{ matrix.sanitizer }}=ON
|
-DGGML_SANITIZE_${{ matrix.sanitizer }}=ON
|
||||||
@ -71,6 +72,7 @@ jobs:
|
|||||||
if: ${{ matrix.sanitizer != 'THREAD' }}
|
if: ${{ matrix.sanitizer != 'THREAD' }}
|
||||||
run: |
|
run: |
|
||||||
cmake -B build \
|
cmake -B build \
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
|
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
|
||||||
-DGGML_SANITIZE_${{ matrix.sanitizer }}=ON
|
-DGGML_SANITIZE_${{ matrix.sanitizer }}=ON
|
||||||
|
|
||||||
@ -81,6 +83,7 @@ jobs:
|
|||||||
if: ${{ matrix.sanitizer == 'THREAD' }}
|
if: ${{ matrix.sanitizer == 'THREAD' }}
|
||||||
run: |
|
run: |
|
||||||
cmake -B build \
|
cmake -B build \
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
|
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
|
||||||
-DGGML_SANITIZE_${{ matrix.sanitizer }}=ON \
|
-DGGML_SANITIZE_${{ matrix.sanitizer }}=ON \
|
||||||
-DGGML_OPENMP=OFF
|
-DGGML_OPENMP=OFF
|
||||||
|
|||||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -1,5 +1,11 @@
|
|||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
|
# Skip this workflow on push to master if the commit message contains [no release]
|
||||||
|
if: |
|
||||||
|
github.event_name != 'push' ||
|
||||||
|
github.ref != 'refs/heads/master' ||
|
||||||
|
!contains(github.event.head_commit.message, '[no release]')
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # allows manual triggering
|
workflow_dispatch: # allows manual triggering
|
||||||
inputs:
|
inputs:
|
||||||
|
|||||||
@ -63,6 +63,7 @@ After submitting your PR:
|
|||||||
- Optionally pick a `<module>` from here: https://github.com/ggml-org/llama.cpp/wiki/Modules
|
- Optionally pick a `<module>` from here: https://github.com/ggml-org/llama.cpp/wiki/Modules
|
||||||
- Let other maintainers merge their own PRs
|
- Let other maintainers merge their own PRs
|
||||||
- When merging a PR, make sure you have a good understanding of the changes
|
- When merging a PR, make sure you have a good understanding of the changes
|
||||||
|
- If a PR does not warrant a new release, add `[no release]` in the squashed commit to spare CI resources
|
||||||
- Be mindful of maintenance: most of the work going into a feature happens after the PR is merged. If the PR author is not committed to contribute long-term, someone else needs to take responsibility (you)
|
- Be mindful of maintenance: most of the work going into a feature happens after the PR is merged. If the PR author is not committed to contribute long-term, someone else needs to take responsibility (you)
|
||||||
|
|
||||||
Maintainers reserve the right to decline review or close pull requests for any reason, without any questions, particularly under any of the following conditions:
|
Maintainers reserve the right to decline review or close pull requests for any reason, without any questions, particularly under any of the following conditions:
|
||||||
|
|||||||
@ -705,10 +705,11 @@ gguf_context_ptr gguf_fetch_gguf_ctx(
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 2; i <= model.n_split; i++) {
|
for (int i = 2; i <= model.n_split; i++) {
|
||||||
char num_buf[6], total_buf[6];
|
char buf_num[32];
|
||||||
snprintf(num_buf, sizeof(num_buf), "%05d", i);
|
char buf_tot[32];
|
||||||
snprintf(total_buf, sizeof(total_buf), "%05d", (int)model.n_split);
|
snprintf(buf_num, sizeof(buf_num), "%05d", i);
|
||||||
std::string shard_name = split_prefix + "-" + num_buf + "-of-" + total_buf + ".gguf";
|
snprintf(buf_tot, sizeof(buf_tot), "%05d", (int)model.n_split);
|
||||||
|
std::string shard_name = split_prefix + "-" + buf_num + "-of-" + buf_tot + ".gguf";
|
||||||
|
|
||||||
auto shard = fetch_or_cached(repo, shard_name, cdir, repo_part, verbose);
|
auto shard = fetch_or_cached(repo, shard_name, cdir, repo_part, verbose);
|
||||||
if (!shard.has_value()) {
|
if (!shard.has_value()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user