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 sLLpMNaEFWckcgEAqHPOHw:P1 (envelope-from ) for ; Sun, 20 Oct 2024 22:31:50 +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 sLLpMNaEFWckcgEAqHPOHw (envelope-from ) for ; Mon, 21 Oct 2024 00:31:50 +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=KwlbM8fR; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=abEP1v36; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729463510; 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=+EW7y6muqWLPv4FwiE6ZG3SGehieobf21MGPMmBAj5s=; b=EeE/1lR6DqLh/d6Q+vqUfzELwnUINYoNj24jnnwj0Ly6O2PgZdv1HZ2BAaT7K60RwqZqIM xk78GPMUJUfRjEHnkgdvi94Wu9tjIRRy7A+yg0NPnfQcYTE7nJC1k4JSajynoBXkaIgX4T D3nXhuwlcAwZ1ypwf3R69OYOGbea3bayWBdiv0K55kGHSFTBKySw98mCKpA/gqLO31cfl6 3aukXf/PU6LhN9XoitqskVZtebYI80TE6e8oJ38KwG5D3PMkl6NFFxVB2Wcyso5UDFXSUC g+dOgy2tGbevygyQ21w4Q67SnIzH0sAlLtJkfn0L/IYRt2ICLcFCOLXVuF125g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729463510; a=rsa-sha256; cv=none; b=WFlBh/xPKuP3aTm+/HP7d38xfaxtuoV58rrxpMPzEfsv6J5/vCNw/CAgsDYl2yJRHtgWqI kfm/scVpJREO7oFa6KloeR3Gjww+zKiCOyk1i8FiPGBrmJqGeVuk9ca6GIxLwxaY5MLWKK HgbLSzkdi/pZ+YwRnXilqsntoOiev0Lm3pY9axpOI6TA3irUTabEUUERT+KOumSVKMp3dP 5x+ZrUXruXR4pF7Fn701+HZZAzUdJhGw0GwdDW4FG2OTICDHy+50jpp82w9EUoCpufm5pM 97HhnuxscmkhF7FxVg46ygUYbMZ3kDmOtbqsdzbpOUYV/DyweSGE000f5xskvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=KwlbM8fR; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=abEP1v36; 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"; dmarc=none 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 380297AC64 for ; Mon, 21 Oct 2024 00:31:50 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2eSY-0000AB-Iq; Sun, 20 Oct 2024 18:31:38 -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 1t2eSX-0000A1-2f for guix-patches@gnu.org; Sun, 20 Oct 2024 18:31:37 -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 1t2eSW-0008J9-QU for guix-patches@gnu.org; Sun, 20 Oct 2024 18:31:36 -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=+EW7y6muqWLPv4FwiE6ZG3SGehieobf21MGPMmBAj5s=; b=KwlbM8fRB+DQcgsi94mRWyjeg1arhD5Iv+jYJSF+Sd+a/NDYbulHsxZix7sKvoXpJoPJ0SGCcl0baUu2rJ+jS5DGMlxzNp7rjYJ0H8ox82Uxv7ObRvI8siR+lCcMMVgGI3iyWcIK9Mmr9HyxebdQ5vHlyzxUFvQhcloZBGy/tIYSUX3oU0S2HBUqgEALtG5duKBX2ZaNvIFFOAR1vZ76wl8z7Sf2SPtQ3aNq7EVl2RrozbBpvbSa2nwmMB7yYEn3t06qMmBXkSaKkl7/TMiTK7KnMPXcuE511oqTLNcJXZnwW1Vf93JhQN1xF4ncgiHGLuW38MF2VFNohk3lelHwlw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2eSw-0000yO-De for guix-patches@gnu.org; Sun, 20 Oct 2024 18:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72027] [PATCH v9] 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: Sun, 20 Oct 2024 22:32: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.17294634733662 (code B ref 72027); Sun, 20 Oct 2024 22:32:02 +0000 Received: (at 72027) by debbugs.gnu.org; 20 Oct 2024 22:31:13 +0000 Received: from localhost ([127.0.0.1]:49171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2eS8-0000wz-HY for submit@debbugs.gnu.org; Sun, 20 Oct 2024 18:31:12 -0400 Received: from mail-pj1-f51.google.com ([209.85.216.51]:43029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2eS7-0000wo-Ca for 72027@debbugs.gnu.org; Sun, 20 Oct 2024 18:31:11 -0400 Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-2e2e050b1c3so3413973a91.0 for <72027@debbugs.gnu.org>; Sun, 20 Oct 2024 15:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729463380; x=1730068180; 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=+EW7y6muqWLPv4FwiE6ZG3SGehieobf21MGPMmBAj5s=; b=abEP1v36gXYwe4OzOqpg1uA5xfr2Xs13bIlQuuJnBpQFze1jZaScl3cAXaUYJmVRnM gElZMSXgzKW5+8KhT79y8oQ7h4VZBjsnJdq2Jm0EixwWgyTrBsghasm3vSblNAQn1MVH s/yX1EKIJd2cmuz9sN1AmgQh2cSbxHh9awscog7B21UELA2Q+qGhZuG3o8exau94eKzy lqY9Lw98kyUXKwcRM2a3yRNBJ3CaWHpeSvYAmkBcAKM2p9DDBzNK0wc9kPB1FwUaPIhY RQuV2TTi4GKuf6/um6sLQDm/G4iAd29SKbesFkp4nQ0V4VxBe9t0K9o0Ct8Mp7+mr8AR 6rCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729463380; x=1730068180; 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=+EW7y6muqWLPv4FwiE6ZG3SGehieobf21MGPMmBAj5s=; b=R+S3KLIsOnRYAC1gKy/xXb62z6TuN61y11ohDgdZyFQ8LC+L1zaWBxaVgW/ig9pdpW kR6/tMWIF06WFI5Bkhix+hhoeaMKescCaOO1SHhwNIe+wkI8YNVSd3HAZ/9SnSbOJ0cY RHHY3OWGddQAMqz7eq0hjsV3Rdd8iFrDXbZgeKcIrqXJ2bPK21HFzN0JdRGJg4zlesjD DErbfP0cdCs8O+Irb7C1zV1ro+J4SG9zccWfPg3il77E4ZOUcgznhA6blXGdvNrpA3Hx Ryq5Wg4cviEP7VRYu+Wx/uc915/ET1IZPfORhqHVwbomHbnp2f2jGhsWHsae29T8wMxZ bfkQ== X-Gm-Message-State: AOJu0YxNmrynYX25f/ONbUMr9fPAMYE7N5q5QLWoRSwNMqGUxcnMVh7Z 8eBLNRWUyHLllmIhYjwBaZhE534cjZae5zwxoeCBg/FmGA2CeV4cPWajxA== X-Google-Smtp-Source: AGHT+IFKb3rjuTh+lkPKf0b0pXxb6Z0dBxbJil5wRfpAPSpDLLh48O80ezt2tXqxr51g9BiNauj1+Q== X-Received: by 2002:a17:90b:1e0b:b0:2d8:b510:170f with SMTP id 98e67ed59e1d1-2e3dc5d6a54mr17257803a91.20.1729463379614; Sun, 20 Oct 2024 15:29:39 -0700 (PDT) Received: from DEskMiniX300.. ([38.84.157.61]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e5ad517450sm2046097a91.51.2024.10.20.15.29.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2024 15:29:39 -0700 (PDT) From: Andy Tai Date: Sun, 20 Oct 2024 15:29:36 -0700 Message-Id: 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.53 X-Spam-Score: -3.53 X-Migadu-Queue-Id: 380297AC64 X-Migadu-Scanner: mx13.migadu.com X-TUID: e8cMmx86UFp6 * 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 988fac3b63..7e2b9b1b55 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: 92910f5413fd9112c0502138eed5fff758c5de65 -- 2.34.1