]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ci : fix yolo URLs + fix metal capture (#712)
authorGeorgi Gerganov <redacted>
Mon, 29 Jan 2024 11:29:46 +0000 (13:29 +0200)
committerGitHub <redacted>
Mon, 29 Jan 2024 11:29:46 +0000 (13:29 +0200)
ci/run.sh
src/ggml-metal.m

index 299da671be30f0705412c4faad382e5a900e0318..e5b86bceee29d1ba0e3af071628dd755da44175d 100644 (file)
--- 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 .
index e5fa14029ce50189d7125b6db416dcf9924eb7e1..af165401019da6ca730c031c6bec262e6034b4e1 100644 (file)
@@ -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);