From e5d47c1406c373a2ad4040cf43406862c929d437 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 29 Jan 2024 13:25:01 +0200 Subject: [PATCH] ci : fix yolo URLs + fix metal capture ggml-ci --- ci/run.sh | 4 ++-- src/ggml-metal.m | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/run.sh b/ci/run.sh index 299da671b..e5b86bcee 100644 --- a/ci/run.sh +++ b/ci/run.sh @@ -287,8 +287,8 @@ function gg_sum_sam { function gg_run_yolo { cd ${SRC} - gg_wget models-mnt/yolo/ https://pjreddie.com/media/files/yolov3-tiny.weights - gg_wget models-mnt/yolo/ https://raw.githubusercontent.com/pjreddie/darknet/master/data/dog.jpg + gg_wget models-mnt/yolo/ https://huggingface.co/ggml-org/models/resolve/main/yolo/yolov3-tiny.weights + gg_wget models-mnt/yolo/ https://huggingface.co/ggml-org/models/resolve/main/yolo/dog.jpg cd build-ci-release cp -r ../examples/yolo/data . diff --git a/src/ggml-metal.m b/src/ggml-metal.m index e5fa14029..af1654010 100644 --- a/src/ggml-metal.m +++ b/src/ggml-metal.m @@ -353,6 +353,8 @@ static void ggml_metal_log(enum ggml_log_level level, const char * format, ...){ GGML_METAL_LOG_INFO("%s: simdgroup matrix mul. support = %s\n", __func__, ctx->support_simdgroup_mm ? "true" : "false"); GGML_METAL_LOG_INFO("%s: hasUnifiedMemory = %s\n", __func__, ctx->device.hasUnifiedMemory ? "true" : "false"); + ctx->should_capture_next_compute = false; + #if TARGET_OS_OSX || (TARGET_OS_IOS && __clang_major__ >= 15) if (@available(macOS 10.12, iOS 16.0, *)) { GGML_METAL_LOG_INFO("%s: recommendedMaxWorkingSetSize = %8.2f MB\n", __func__, ctx->device.recommendedMaxWorkingSetSize / 1e6);