From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yH7VC7sijmYrBQEAqHPOHw:P1 (envelope-from ) for ; Wed, 10 Jul 2024 05:57:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yH7VC7sijmYrBQEAqHPOHw (envelope-from ) for ; Wed, 10 Jul 2024 07:57:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="LR/14r12"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720591035; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=FDebB2o/5uYZ9es1clwpIqcPSKYV5+HptLM4DJhH3Eg=; b=RZcx3+F3ECb/T47WFEdoUpgd9AYB3YSEoHqhjRCqYcCAafITV6dgC4Nff3CPcbR6vM+mbl UmoHGVkNSTDaDeb177D2IpsnK6zHzOX+Hh71Q0nQyGGy/kuux2HVGEl0CuN3hrXfPuBPlP dCLkF0A3TtY+zJ55GfKppDcc9YUZscuEwQmpj7aKFiV8Rn4MAL5zIzZciNRsgXN/kv+ohL W5mDaUooikKitLB29juzHkV0CrbzOEfLt/NTDtkXww+abGC5iMccWtgTXQAAbMj4GgyeAy LcEV55t/POLDH9a28a8gG5m/wDQv+ASAfw+oHgx0duI9//AFjKG9ePvZ0BKpZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720591035; a=rsa-sha256; cv=none; b=YBjmGpGY/wtHv6AJ0bX6ST0t9pBZc0cY6pvADdSLAc+UwKGIqCKd8nFqBE/8U0fZwTBoXt bU+qZhEl4W9krz7PqtfnlyciuChcVIPN3Oyx3MGDVS0FXZoq86iylpJfVV1d/pYni2Gj24 VdkwVzKUlzVNN3sf5Sb6ZLpqxS8W7cU9UDX9xNrg7i34Egox8cM2Jb5SmDbk7PHwnqYqx/ cbSXN1z1u0HyB0mcGhrzxPEJLd6nBwN7I8M/1hCH1tv1oYfZKkHCYMseBM/+qcQdyCP8yi 8MT1qWjvwMHxnvx3XyZhcRSIBneXLZmX/0MWliaiQI50jn6rlbw16x53RfE56g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="LR/14r12"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4258567CDC for ; Wed, 10 Jul 2024 07:57:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRQK4-0004QM-Bx; Wed, 10 Jul 2024 01:57:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRQK0-0004Py-9u for guix-patches@gnu.org; Wed, 10 Jul 2024 01:56:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRQK0-00049e-1W for guix-patches@gnu.org; Wed, 10 Jul 2024 01:56:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRQK5-000715-V0 for guix-patches@gnu.org; Wed, 10 Jul 2024 01:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72027] [PATCH v2] gnu: Add whisper-cpp. References: <0c08fdb11c2641ece7d267340877c58f144df110.1720587166.git.atai@atai.org> In-Reply-To: <0c08fdb11c2641ece7d267340877c58f144df110.1720587166.git.atai@atai.org> Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Jul 2024 05:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72027 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72027@debbugs.gnu.org Cc: Andy Tai Received: via spool by 72027-submit@debbugs.gnu.org id=B72027.172059098026917 (code B ref 72027); Wed, 10 Jul 2024 05:57:01 +0000 Received: (at 72027) by debbugs.gnu.org; 10 Jul 2024 05:56:20 +0000 Received: from localhost ([127.0.0.1]:54710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRQJP-000704-Sy for submit@debbugs.gnu.org; Wed, 10 Jul 2024 01:56:20 -0400 Received: from mail-pf1-f171.google.com ([209.85.210.171]:54655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRQJN-0006zp-H2 for 72027@debbugs.gnu.org; Wed, 10 Jul 2024 01:56:18 -0400 Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-70b42250526so1667007b3a.1 for <72027@debbugs.gnu.org>; Tue, 09 Jul 2024 22:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720590905; x=1721195705; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=FDebB2o/5uYZ9es1clwpIqcPSKYV5+HptLM4DJhH3Eg=; b=LR/14r12XzVtMZwF5vDae/SEmTM7wuDKr+QIPhBFLtYDN6wiBx0tcGg9pDneUtMTgH YuWy6lc5FVgMRXJb7o8j7Arfj7uRpGjAH3KxPqw2JH6plLbdP76yBW2rb9ejoz3AA+/d HlFtUJEfVZbZ4Mie/ui6ra5ikM+Xvao5n7ROvtrWS0zH5uDjqtl5ROvOmQOu20WceTrZ +xYeCih/juHGJqxyGSVrcPBLPgp8JIDI3gvGxcTBNHLAQmPbrxY+bytnLGhiwTWHwKss 6/rlZV97LYzRBTrPQC1uWFDDEEzH+CUbrjgQgFoIXseOF2cZtkwYhumHr4zvU+mfn4sg O2cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720590905; x=1721195705; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FDebB2o/5uYZ9es1clwpIqcPSKYV5+HptLM4DJhH3Eg=; b=oIOfSIkoRoMqQUy8L5Z5biuCsTLfMPFfV8s9/spb/ctvrV5N1Jsog1F/ciyxOZmM03 +W3yLPkTYLOOZf0VK1WylDsWZ2t+FLKw/jkD3UDjzltjT44JS8tTrRy44OYq+VJODaJI swftyT/9qBrFTSismX/DoqkkvjXnQnXAiQWS8w43+ZyMMJkB9G5BsCOoOjhFo4JngxFG 4EWJdp/WgZvrrDU9uuVQvJV7DyQjw28XNLrtu0Xfg4F/7VUcuDuYlpcmpuzPeTyzWHq5 Q2+eiSG2Tpt08fSpiPXUUT1qFEvc0MMtuTM9YmnhUSz3R7xkgjeUwVu9WusUX+seJiGC i+WA== X-Gm-Message-State: AOJu0Yxe3nQEzaeJK1XgYRyZL1pBsPNgwCyfiUfIFBEWSCNmwKyE4/vR iGck77zQOXu1vnaKj117FXO9umH8q+ETTQlee0ZvAGMWaw+M7mO4LgpD3w== X-Google-Smtp-Source: AGHT+IG8bibaRLDPeZJFxx/R/r0II60QrJkEUZTVpWYsWPzmQcqSCtZ0BTUpOF7oxhLQmP1vjZEL+A== X-Received: by 2002:a05:6a00:1ca2:b0:70b:17df:cbc1 with SMTP id d2e1a72fcca58-70b4361b82amr5131625b3a.30.1720590905244; Tue, 09 Jul 2024 22:55:05 -0700 (PDT) Received: from DEskMiniX300.. (c-98-37-226-154.hsd1.ca.comcast.net. [98.37.226.154]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70b439ed0f6sm2829726b3a.218.2024.07.09.22.55.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jul 2024 22:55:04 -0700 (PDT) From: Andy Tai Date: Tue, 9 Jul 2024 22:55:00 -0700 Message-Id: <52d89f216951358977afca847ac5dc4fda8aab86.1720590865.git.atai@atai.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.40 X-Spam-Score: -1.40 X-Migadu-Queue-Id: 4258567CDC X-Migadu-Scanner: mx11.migadu.com X-TUID: ar/CSjGXE9ZI * gnu/packages/machine-learning.scm (whisper-cpp): New variable. Change-Id: If191f434a3f66b16afdc702069eaed1ca22e2427 --- gnu/packages/machine-learning.scm | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 8ca9a6376e..2af3c188c2 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2024 Timothee Mathieu ;;; Copyright © 2024 Spencer King ;;; Copyright © 2024 David Elsing +;;; Copyright © 2024 Andy Tai ;;; ;;; This file is part of GNU Guix. ;;; @@ -117,6 +118,7 @@ (define-module (gnu packages machine-learning) #:use-module (gnu packages rdf) #:use-module (gnu packages regex) #:use-module (gnu packages rpc) + #:use-module (gnu packages sdl) #:use-module (gnu packages serialization) #:use-module (gnu packages sphinx) #:use-module (gnu packages statistics) @@ -5982,6 +5984,37 @@ (define-public oneapi-dnnl-for-r-torch (sha256 (base32 "1zyw5rd8x346bb7gac9a7x3saviw3zvp6aqz2z1l9sv163vmjfz6")))))) +(define-public whisper-cpp + (package + (name "whisper-cpp") + (version "1.6.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ggerganov/whisper.cpp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01q4j602wkvsf9vw0nsazzgvjppf4fhpy90vqnm9affynyxhi0c4")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags #~'("-DWHISPER_STANDALONE=TRUE"))) + ;; "-DWHISPER_FFMPEG=TRUE" ; TO DO + + ;; (inputs (list ffmpeg openblas sdl2)) ;TO DO: + (native-inputs (list pkg-config)) + (properties '((tunable? . #t))) ;use AVX512, FMA, etc. when available + (home-page "https://github.com/ggerganov/whisper.cpp") + (synopsis "Port of OpenAI's Whisper model in C/C++") + (description + "This package is a high-performance inference of OpenAI's +Whisper automatic speech recognition (ASR) model, implemented in plain C/C++ +without dependencies") + (license license:expat))) + + (define-public python-gguf (package (name "python-gguf") base-commit: 71694363f6cc79e44955acbd9f7ca108e658caca -- 2.34.1