From: Georgi Gerganov Date: Mon, 29 Jan 2024 11:29:46 +0000 (+0200) Subject: ci : fix yolo URLs + fix metal capture (#712) X-Git-Tag: upstream/0.0.1642~1024 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=fde307255b9a81a6c1934377a362a20755975d78;p=pkg%2Fggml%2Fsources%2Fggml ci : fix yolo URLs + fix metal capture (#712) --- diff --git a/ci/run.sh b/ci/run.sh index 299da671..e5b86bce 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 e5fa1402..af165401 100644 --- a/src/ggml-metal.m +++ b/src/ggml-metal.m @@ -353,6 +353,8 @@ static struct ggml_metal_context * ggml_metal_init(int n_cb) { 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);