From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 yEytGi7DkGbqjQAAe85BDQ:P1 (envelope-from ) for ; Fri, 12 Jul 2024 05:46:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id yEytGi7DkGbqjQAAe85BDQ (envelope-from ) for ; Fri, 12 Jul 2024 07:46:22 +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=L2UyFFLC; 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=1720763182; 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=ODh+EbygDBj5/Rsilsd87kf0KZIZ4adBinanPS9X5uQ=; b=p9hrI6Yew4uK60nGsXmlw2Hx6cZ5igNQq4e4b+rq4SFE0I3gh4sySdPTvjlKNhygeVA2x9 +JY1wyamlyG67Y0TcSZyOzTPZaO93Y2Dt7/NDq94v8MroZBSb1ds8YhIFKWsFPlzDoH7K+ i6Yq4A54O58vbW+HaNunKkNdt/nA57FcRpgdFMItVdQEsedIseA0bd+mfnWvEWaj6vFmQI v4CKy/UgDUbDOVPOcodup6T3/eoCootv1i0RXvZRqKncby5dYz8mNYmey7G3hFI0H6kNJe lLbZozqxduvYZTu1tsiWitu4Nf/5W9n+3mNYjvUytkH/msdAz/W5REr9ptulag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720763182; a=rsa-sha256; cv=none; b=Jq6A8xp0QeNbchaKmYfQasT+faYXbsO7Tkq1aKvILSbcTufs61M0O5UQDuAheh15cYFlU+ yfuLzsB+afAnByUAb4Plqh50KLsT8ZxemLtAmRoRsocuRFKtWdDAiLqah125SpYV6UT0sW 3GLnWtD4AQLgAUuYwbKr6RzaJ7dNOVWXv895snosF4348vIEK0HJ3MZxHWTJXyEhjGVcrU aA/uKfHd0rZ/EfEQAXLIZSzsprvG3C9+Ie2AMvNk6f5HIElhthWEY+iZDywmFUN/TC2ADq GHb4Ie425J81HhDNEPG5Eg5SWUV3v0L+FaHI/VVK1/RMVjHRaoAAQ33Em7UH1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=L2UyFFLC; 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 C2358744D9 for ; Fri, 12 Jul 2024 07:46:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sS96d-0005Ek-1v; Fri, 12 Jul 2024 01:46:07 -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 1sS96Y-0005EI-R0 for guix-patches@gnu.org; Fri, 12 Jul 2024 01:46:02 -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 1sS96Y-0007pK-H0 for guix-patches@gnu.org; Fri, 12 Jul 2024 01:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sS96Y-0000Cd-Bs for guix-patches@gnu.org; Fri, 12 Jul 2024 01:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72027] [PATCH v5] 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: Fri, 12 Jul 2024 05:46: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.1720763148758 (code B ref 72027); Fri, 12 Jul 2024 05:46:02 +0000 Received: (at 72027) by debbugs.gnu.org; 12 Jul 2024 05:45:48 +0000 Received: from localhost ([127.0.0.1]:52993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sS96J-0000CA-Jm for submit@debbugs.gnu.org; Fri, 12 Jul 2024 01:45:48 -0400 Received: from mail-pf1-f174.google.com ([209.85.210.174]:43467) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sS96G-0000Bv-JQ for 72027@debbugs.gnu.org; Fri, 12 Jul 2024 01:45:45 -0400 Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-70b31272a04so1795704b3a.1 for <72027@debbugs.gnu.org>; Thu, 11 Jul 2024 22:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720763078; x=1721367878; 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=ODh+EbygDBj5/Rsilsd87kf0KZIZ4adBinanPS9X5uQ=; b=L2UyFFLCRhBztgnR5c3NfxWYeqay1JG1TqXU6TrNohy8rbqkHglz3CUX5QNDtErois 4vmWmUkEmC5TC62hyyMYUfhryxtt9QazZ9fhTW2KrdeRme0uo2umlvIpCS18C/umd5DE gZd0yMyb4YiE37GurVfCi8++F+LAkldbxeewo+jkw+G7taaz6I3/aizGj3/mbSs7m/yl na1uP2hbZPZB3BF8jHec8nOo8KQdI3EJ18Zs7XNdH11V8yUAj8yvdrSO5+jfLAuyBZNQ A6ot1aIiljkROmMH8OHUmYMCBtcO8Za/ODMb5tGfi9APXrClWIgAELPS/lH+GvVrX51N wyGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720763078; x=1721367878; 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=ODh+EbygDBj5/Rsilsd87kf0KZIZ4adBinanPS9X5uQ=; b=BS2/BGvsB5n672ysX9HljQgqtAktMJ8ch/lUDNHKhYl+ATzY5prjottm3nVXVBe/f6 WFE3A2cBllu+I26l8mprGthdKok19y3rSFWnnPSLpbJ+Y7SOGYkF1hLiP/I2bI11YnY1 3hNICapLIWvL5F8hFkpKCYrk9stgfp7OLP2qsK02ImcZjOQBMvjQla0omKi6D5WmXsU5 DEGFV1Ckc/5FInF3vdVh3+rxga//MBYVv4O3k+YjWt87QAds+U/JcCuPCvrhIsmXxHjR 9OsGo3Pyu8I8GXKthHaeja1R5FIfMmQ7cyvW8UFpHKyQJmIGGn2X3kVwGt892rPnXDBT MV2A== X-Gm-Message-State: AOJu0YyqFXnJQIomxPPPoFgS4sACkpF0loLEllyqd84hkS4+7Mwy40iu 4zTW3/EzfqSAliAHLD2IeN93Rp1ssOS9VSp5ELcanqyLP1WstT+0NvhuAw== X-Google-Smtp-Source: AGHT+IEdenOfn9yavYlLu1g4PNEXnC7Q0kxqw+mF5c1PqTE36k5yz5BC59yXllCkAE1Ayqa3GGbzqw== X-Received: by 2002:a05:6a21:e90:b0:1c2:8c90:8e8a with SMTP id adf61e73a8af0-1c3bed34c9fmr1997133637.26.1720763077914; Thu, 11 Jul 2024 22:44:37 -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-70b439b30b9sm6824424b3a.178.2024.07.11.22.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jul 2024 22:44:37 -0700 (PDT) From: Andy Tai Date: Thu, 11 Jul 2024 22:44:33 -0700 Message-Id: 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: C2358744D9 X-Migadu-Scanner: mx11.migadu.com X-TUID: e0TERAIZYGLc * gnu/packages/machine-learning.scm (whisper-cpp): New variable. Change-Id: If191f434a3f66b16afdc702069eaed1ca22e2427 --- gnu/packages/machine-learning.scm | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 3680cab044..0471db8d46 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) @@ -5990,6 +5992,47 @@ (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" ; TO DO + #: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 ;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: 2d6a3799fcda5c017f653c6e96b91964b07a7ee0 -- 2.34.1