From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sOopCXB482ZGrAAAqHPOHw:P1 (envelope-from ) for ; Wed, 25 Sep 2024 02:41:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sOopCXB482ZGrAAAqHPOHw (envelope-from ) for ; Wed, 25 Sep 2024 04:41:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=EvNrkbZj; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=HcOmIwoR; 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=1727232112; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=+Lt8QLHd62fcJgU4D/JDZ3fe2fGlhu7EP3FU8Z/pvg8=; b=VHQnQt3Hr7X+pWuUQGTWSBVnKdHPALME4ncm3LR5C5hJVt0j1sgOwKpEPJJ1NS1MH3ABVe jPyS9vcK6pNnaWIvYICJF00GKQv/MwDpV8SlufecYe2+lHLl1kFhysQJ7DbGtURSHwpKMU UPEjqSiu8ngjww1fWonkL6GnV2y3LmsxUBHE7DCKe6ISjfwfVqSuWRrOL2SC0AQYuiiuUA dpR+Nl4+HcIWqwU+DlZEnULxJHN4nY7HxjvzUkCaTz6A35ieE3eCb6RwEikrrjKCNZ9MaH gzR1Y2GZJkY72VDrBrK9zMGom/edRK3mJeEe7bxd76YkhQEKiakrSh1WWES84g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727232112; a=rsa-sha256; cv=none; b=fX9cD8GJz6M5Su7igO5JUt9RbyKQToodVqigqY5E6anGRPzyB1RHLQYIHzorJSx/rGILQF aMTuysgPV80u6z+HWbaRXkEfGmhLe6DQIMrc6axrJ5WJ5R0axnueD720VW3JrrPbG3VUc8 kjvGNpl2PtB7No/QK9rCd4UsEquCeoj5LUs2l1Zy4GQRGA9UxOoNnxewvKkIMp9kxTTN23 23mVE5DBx4/H1py1fIQm5YIi9f9o0aYPpp9Hd24aVpxBKQFhzuDP/UbZv7Rt8Hw+pqlTEH QCqbWMm8Ms4AFDtuGvX6kqEApXylaKBjXhs+N4Ji2khtiHp+flkhhdoV3kKaiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=EvNrkbZj; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=HcOmIwoR; 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 CA41F15710 for ; Wed, 25 Sep 2024 04:41:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stHyM-0005Wg-69; Tue, 24 Sep 2024 22:41:46 -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 1stHyK-0005WT-Lo for guix-patches@gnu.org; Tue, 24 Sep 2024 22:41:44 -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 1stHyD-0002CL-BL for guix-patches@gnu.org; Tue, 24 Sep 2024 22:41:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=+Lt8QLHd62fcJgU4D/JDZ3fe2fGlhu7EP3FU8Z/pvg8=; b=EvNrkbZj0GD8cBnnSnPGdT+MHgr3MyFe5eS6Uwbqh7P6tmkC/R49z4SQuUT3XA3yoqhz8tsi8TIT3OCGSOjsjkTCVqOrd6WdMKrI21kE6lz7J+J8J2pV5WyrOm3RwrNK8GSbwDkORblBOgfyzK/H2I14cOFrqj0a++BHPIblmj9pA1EympLycTYxRN9lMFUA8RTr87eyTjGojVWiX1zIq/wINdf46uGHBoG8LDoEe8PeB6xsuCimv/pupPJ4HEtRogXTMHgK3CwmpMOeEsI9LF85XvyVaAJZNDabIoWoSiuWtuSHEAPR+cUK+eHjLCOrZLbBIJBDFNxq5OpuTYYZ4Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stHyc-0007OP-FC for guix-patches@gnu.org; Tue, 24 Sep 2024 22:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72027] [PATCH v8] 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, 25 Sep 2024 02:42:02 +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.172723209128313 (code B ref 72027); Wed, 25 Sep 2024 02:42:02 +0000 Received: (at 72027) by debbugs.gnu.org; 25 Sep 2024 02:41:31 +0000 Received: from localhost ([127.0.0.1]:33944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stHy6-0007Ma-UD for submit@debbugs.gnu.org; Tue, 24 Sep 2024 22:41:31 -0400 Received: from mail-pl1-f174.google.com ([209.85.214.174]:47429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stHy5-0007MD-7v for 72027@debbugs.gnu.org; Tue, 24 Sep 2024 22:41:29 -0400 Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2053a0bd0a6so62445425ad.3 for <72027@debbugs.gnu.org>; Tue, 24 Sep 2024 19:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727231998; x=1727836798; 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=+Lt8QLHd62fcJgU4D/JDZ3fe2fGlhu7EP3FU8Z/pvg8=; b=HcOmIwoRjW5i5CxPGGFJqYvRgw30DJ7te0PYyFFD+WsHTWkzUf2ntqF29kBBjbsB4q wnOI5znMg9IgJuGjBCMR5a83IcMQ6Uf5bvky0fa4SlMsYp/MhoCxt/yv5zqzJ7msF+T0 DedcLOqG8jlGkgduU+NjAWtz6bwJmHIJ5dM3WpnO5oH4eC6FuesaNmAaRMTrIn4ZuOfc LSiQFdELfWjykS1krvbL946jbLNO4WWNL+5AMRnmDvWidPY0/fEbgQ+BoIdSbD8JGB3D TtmUdjvHAZndIezqXetwVTgwml905LJT9ZtJ09/Ft189rkciw5/+pOLD2FMr7xacXXGl wUAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727231998; x=1727836798; 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=+Lt8QLHd62fcJgU4D/JDZ3fe2fGlhu7EP3FU8Z/pvg8=; b=TqtVPtG6QF4LhgViskibcNjPMwFHpmB62q5GoIzz5mZOBHkh+PpM5OITQiDMfMFWsP sBTlAQGxoPDpUBiSzfTG2jr9gYg+v64bXepsZJgw0/MauZOpZZMATHqOnu80Nuwi009i sP2nencXQtZ48wNVJsx/FVNtLGIpwng46Kfu40UzsNA0ycZotf1ExGG5G+EVT52iq77j mScCwmjhUUJi25TZQp9Z4UqyEU+OFe1aZaN/FT3nCQ7VyClpPfz0yk9stxeGYpwqnsT+ 9G7UYUiHmajbxpjwclflFZnU6JyWkCpCR7i6pIyc0sgEQYog/43K1jjUwtrNSOGMDymd CeVw== X-Gm-Message-State: AOJu0Yyo7SILvbjeEoOVnIa2zJgyaSrDdwJGVWu/NYgesGKuNwZ90tAv hhD1hDyOCixX5JygbOI/st8i3n1GGkZha6qt0wg6fQ89Dh4jxfL2bIU3Yg== X-Google-Smtp-Source: AGHT+IHDTSFxVBilett2abZ0jZFxHuyalj+OP5ZeJmxXybEzO3efhd7wQOwZy3m7p3Ge/tts792W5w== X-Received: by 2002:a17:902:e742:b0:1fc:6a13:a394 with SMTP id d9443c01a7336-20afc468f9cmr16434205ad.23.1727231997828; Tue, 24 Sep 2024 19:39:57 -0700 (PDT) Received: from DEskMiniX300.. ([38.84.157.61]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20af17e1ab8sm15728485ad.121.2024.09.24.19.39.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2024 19:39:57 -0700 (PDT) From: Andy Tai Date: Tue, 24 Sep 2024 19:39:54 -0700 Message-Id: <5e060d6337c96c9cd1b8255fc85e424680fcc119.1727231962.git.atai@atai.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.61 X-Spam-Score: -4.61 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Queue-Id: CA41F15710 X-TUID: IQ6K8kJyvCip * gnu/packages/machine-learning.scm (whisper-cpp): New variable. Change-Id: I8db67dc543c0a1280e2cc5e8c03945b9ccdb9975 --- gnu/packages/machine-learning.scm | 52 +++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 5d34283947..013d740673 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -118,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) @@ -6067,6 +6068,57 @@ (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_SDL2=TRUE") + ;; "-DWHISPER_FFMPEG=TRUE" ; TODO + #:phases #~(modify-phases %standard-phases + #$@(if (not (target-64bit?)) + '((add-after 'unpack 'skip-failing-tests + (lambda _ + ;; 32-bit system + ;; large model does not fit in RAM in 32-bit system, + ;; disable large model test + (substitute* "tests/CMakeLists.txt" + (("LABELS \"large\"") + "DISABLED true"))))) + '())))) + (inputs (list sdl2)) ;ffmpeg openblas ;TODO: + (native-inputs (list pkg-config)) + (properties '((tunable? . #t))) ;use AVX512, FMA, etc. when available + (home-page "https://github.com/ggerganov/whisper.cpp") + (synopsis "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, with +@itemize +@item AVX intrinsics support for x86 architectures +@item VSX intrinsics support for POWER architectures +@item Mixed F16 / F32 precision +@item 4-bit and 5-bit integer quantization support +@item Zero memory allocations at runtime +@item Support for CPU-only inference +@item Efficient GPU support for NVIDIA +@item OpenVINO Support +@item C-style API +@end itemize") + (license license:expat))) + (define-public python-gguf (package (name "python-gguf") base-commit: 3ac69c1a757430d6dfdd37eb948ba1d6967967cc -- 2.34.1