]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/log
pkg/ggml/sources/whisper.cpp
2 years agogo : NewContext now returns a clean context (#537)
polarmoon [Sun, 5 Mar 2023 18:50:25 +0000 (10:50 -0800)]
go : NewContext now returns a clean context (#537)

Co-authored-by: Ming <redacted>
2 years agomain : add csv header (#552)
HY. Kelvin Lee [Thu, 2 Mar 2023 16:32:16 +0000 (11:32 -0500)]
main : add csv header (#552)

2 years agomake : add -DNDEBUG compile flag
Georgi Gerganov [Tue, 28 Feb 2023 21:27:54 +0000 (23:27 +0200)]
make : add -DNDEBUG compile flag

2 years agorelease : v1.2.1
Georgi Gerganov [Tue, 28 Feb 2023 20:29:12 +0000 (22:29 +0200)]
release : v1.2.1

2 years agomake : add "-mcpu=native" when building for aarch64 (#532)
FlippFuzz [Mon, 27 Feb 2023 19:04:16 +0000 (03:04 +0800)]
make : add "-mcpu=native" when building for aarch64 (#532)

2 years agoreadme : add pybind11 bindings (#538)
Aaron Pham [Mon, 27 Feb 2023 19:02:11 +0000 (11:02 -0800)]
readme : add pybind11 bindings (#538)

2 years agoreadme : add cython bindings (#9)
Georgi Gerganov [Fri, 24 Feb 2023 06:46:06 +0000 (08:46 +0200)]
readme : add cython bindings (#9)

2 years agowhisper : zero-initialize some more context variables
Georgi Gerganov [Tue, 21 Feb 2023 17:00:42 +0000 (19:00 +0200)]
whisper : zero-initialize some more context variables

Just in case

2 years agowhisper : fix uninitialized exp_n_audio_ctx
Finn Voorhees [Tue, 21 Feb 2023 11:42:10 +0000 (11:42 +0000)]
whisper : fix uninitialized exp_n_audio_ctx

2 years agowhisper : add API for applying custom logits filters during decoding
Georgi Gerganov [Sun, 19 Feb 2023 16:35:01 +0000 (18:35 +0200)]
whisper : add API for applying custom logits filters during decoding

2 years agoyt-wsp.sh : print help on empty args
Georgi Gerganov [Sat, 18 Feb 2023 07:42:31 +0000 (09:42 +0200)]
yt-wsp.sh : print help on empty args

2 years agowhisper : by default disable non-speech tokens suppression (#473)
Georgi Gerganov [Wed, 15 Feb 2023 19:48:49 +0000 (21:48 +0200)]
whisper : by default disable non-speech tokens suppression (#473)

This seems to be causing hallucinations in the end of the audio, e.g.:

"Thank you for listening"
"Amen"
..

2 years agoreadme : add Ruby discussion + update .NET discussion
Georgi Gerganov [Wed, 15 Feb 2023 17:51:54 +0000 (19:51 +0200)]
readme : add Ruby discussion + update .NET discussion

2 years agobindings : add Ruby (#500)
Todd [Wed, 15 Feb 2023 17:46:55 +0000 (12:46 -0500)]
bindings : add Ruby (#500)

* adding ruby bindings

* avoid adding these they are copied in via extconf.rb

* ignore these files here

* add definitions for boolean params

* initial transcribe for ruby

* use en model and transcribe jfk with assertion

* possibly this works for building ruby binding

* ci : try to add ruby workflow

---------

Co-authored-by: Georgi Gerganov <redacted>
2 years agomain : fix std in input (#503)
conradg [Wed, 15 Feb 2023 17:31:16 +0000 (17:31 +0000)]
main : fix std in input (#503)

if we don't add this as an explicit check, then we get an "error: unknown argument: -" later on

2 years agoexamples : refactor in order to reuse code and reduce duplication (#482)
Georgi Gerganov [Wed, 15 Feb 2023 17:28:10 +0000 (19:28 +0200)]
examples : refactor in order to reuse code and reduce duplication (#482)

* examples : refactor common code into a library

* examples : refactor common SDL code into a library

* make : update Makefile to use common libs

* common : fix MSVC M_PI ..

* addon.node : link common lib

2 years agowhisper : fix signedness compiler warning (#506)
shikokuchuo [Wed, 15 Feb 2023 17:08:25 +0000 (17:08 +0000)]
whisper : fix signedness compiler warning (#506)

2 years agoyt-wsp.sh : add unique filename generation (#495)
genevera (she/her) [Tue, 14 Feb 2023 18:12:51 +0000 (13:12 -0500)]
yt-wsp.sh : add unique filename generation (#495)

Co-authored-by: genevera <redacted>
2 years agoreadme : add another .NET repo (#303)
Georgi Gerganov [Tue, 14 Feb 2023 18:04:03 +0000 (20:04 +0200)]
readme : add another .NET repo (#303)

2 years agoreadme : add .NET repo (#303)
Georgi Gerganov [Sat, 11 Feb 2023 15:35:33 +0000 (17:35 +0200)]
readme : add .NET repo (#303)

2 years agocmake : install whisper.h header (#485)
Avik Sengupta [Sat, 11 Feb 2023 07:13:32 +0000 (07:13 +0000)]
cmake : install whisper.h header (#485)

Including the header file in the install bundle helps projects that ship binaries.

2 years agowhisper : suppress non-speech-related token outputs (#473)
shibukazu [Wed, 8 Feb 2023 07:05:34 +0000 (16:05 +0900)]
whisper : suppress non-speech-related token outputs (#473)

* add non-speech-token suppression

* add suppress non-speech_tokens param

2 years agowhisper : fixed Beam Search Strategy and exposed whisper_pcm_to_mel_phase_vocoder...
sandrohanea [Wed, 8 Feb 2023 07:01:47 +0000 (08:01 +0100)]
whisper : fixed Beam Search Strategy and exposed whisper_pcm_to_mel_phase_vocoder (#474)

Co-authored-by: Sandro Hanea <redacted>
2 years agowhisper : only trim if split_on_word is true (#476)
boolemancer [Wed, 8 Feb 2023 06:43:23 +0000 (22:43 -0800)]
whisper : only trim if split_on_word is true (#476)

2 years agoci : add node addon test and optimize compilation configuration (#468)
Qianhe Chen [Sun, 5 Feb 2023 13:02:08 +0000 (21:02 +0800)]
ci : add node addon test and optimize compilation configuration (#468)

* addon: implement node addon call whisper through cpp

* addon: modify the license to MIT

* addon: remove iostream

* addon: rename dir

* addon: fix typo

* addon: configure cmake to build when cmake-js is used

* ci: add addon.node test ci

* addon: remove build WHISPER_BUILD_TESTS

* addon: update build command

* addon: add test

* addon: add test file

* addon: adapt to compile on Windows

* addon: fix typo

* addon: reuse jfk.wav

Co-authored-by: Georgi Gerganov <redacted>
* addon: reuse jfk.wav

---------

Co-authored-by: Georgi Gerganov <redacted>
2 years agowhisper : add whisper_full_lang_id() for getting the context lang (#461)
kamranjon [Sun, 5 Feb 2023 12:46:26 +0000 (04:46 -0800)]
whisper : add whisper_full_lang_id() for getting the context lang (#461)

2 years agowhisper : add "split_on_word" flag when using using "max_len" option (#455)
Matija Pevec [Sun, 5 Feb 2023 12:44:23 +0000 (13:44 +0100)]
whisper : add "split_on_word" flag when using using "max_len" option (#455)

* Update whisper.cpp

* fix: trim function

* feat: added flag to split on word

* fix: arguments for main

2 years agorelease : v1.2.0
Georgi Gerganov [Sat, 4 Feb 2023 07:49:49 +0000 (09:49 +0200)]
release : v1.2.0

2 years agowhisper : reduce memory usage during inference (#431)
Georgi Gerganov [Sat, 4 Feb 2023 07:45:52 +0000 (09:45 +0200)]
whisper : reduce memory usage during inference (#431)

* ggml : add "scratch" buffer support

* ggml : support for scratch ring-buffer

* ggml : bug fix in ggml_repeat()

* ggml : error on scratch buffer overflow

* whisper : use scratch buffers during inference (base model only)

* whisper : update memory usage for all models

* whisper : fix encoder memory usage

* whisper : use whisper_context functions instead of macros

* whisper : fix FF + remove it from README

* ggml : reuse ggml_new_i32

* ggml : refactor the scratch buffer storage

* whisper : reorder scratch buffers in the decoder

* main : add option to disable temp fallback

* Update README.md

2 years agoaddon.node : using whisper as a Node.js addon (#443)
Qianhe Chen [Sat, 4 Feb 2023 07:10:25 +0000 (15:10 +0800)]
addon.node : using whisper as a Node.js addon (#443)

* addon: implement node addon call whisper through cpp

* addon: modify the license to MIT

* addon: remove iostream

* addon: rename dir

* addon: fix typo

* addon: configure cmake to build when cmake-js is used

2 years agogo : support "auto" as an option when set language (#462)
polarmoon [Sat, 4 Feb 2023 07:09:27 +0000 (23:09 -0800)]
go : support "auto" as an option when set language (#462)

Co-authored-by: Ming <redacted>
2 years agowhisper : suppress task tokens (#442)
Georgi Gerganov [Sat, 4 Feb 2023 07:03:14 +0000 (09:03 +0200)]
whisper : suppress task tokens (#442)

2 years agowasm : fix typo in helper.js (#459)
Taisei Mima [Sat, 4 Feb 2023 06:49:15 +0000 (15:49 +0900)]
wasm : fix typo in helper.js (#459)

2 years agomain : CSV format export trimmed spaces fix (#444)
Alex Bacart [Sat, 4 Feb 2023 06:48:35 +0000 (09:48 +0300)]
main : CSV format export trimmed spaces fix (#444)

* Update main.cpp

Removed string trimming

* Update main.cpp

* Update main.cpp

* Revert "Update main.cpp"

This reverts commit d8924fdcfe8a2980db0af47d42ec206fc1a3e9d0.

* Revert "Update main.cpp"

This reverts commit 252e508d8597231c61380ebea42b3707714345cc.

2 years agogo : add wrapper for system info (#456)
Lukas Rist [Sat, 28 Jan 2023 16:44:56 +0000 (17:44 +0100)]
go : add wrapper for system info (#456)

2 years agogo : add WhisperLangAutoDetect method to go binding (#451)
Robin [Thu, 26 Jan 2023 23:14:20 +0000 (15:14 -0800)]
go : add WhisperLangAutoDetect method to go binding (#451)

2 years agolivestream.sh : run main with model arg instead of default (#453)
Eric Tendian [Thu, 26 Jan 2023 23:13:31 +0000 (17:13 -0600)]
livestream.sh : run main with model arg instead of default (#453)

Actually utilizes the $model var when calling ./main.

2 years agowhisper : do not provide past prompt when n_max_text_ctx == 0
Georgi Gerganov [Wed, 25 Jan 2023 17:59:57 +0000 (19:59 +0200)]
whisper : do not provide past prompt when n_max_text_ctx == 0

2 years agowasm : check if navigator.storage.estimate() is available
Georgi Gerganov [Wed, 25 Jan 2023 17:59:15 +0000 (19:59 +0200)]
wasm : check if navigator.storage.estimate() is available

Safari does not support it

2 years agogo : added wrappers to reset and print timings (#436)
Lukas Rist [Wed, 25 Jan 2023 16:57:30 +0000 (17:57 +0100)]
go : added wrappers to reset and print timings (#436)

2 years agoci : run workflows on pull requests + bindings depend on .h (#446)
Georgi Gerganov [Wed, 25 Jan 2023 16:50:50 +0000 (18:50 +0200)]
ci : run workflows on pull requests + bindings depend on .h (#446)

2 years agowhisper.wasm : add labels for easier radio selection (#435)
Ondrej Kokes [Mon, 23 Jan 2023 18:49:00 +0000 (19:49 +0100)]
whisper.wasm : add labels for easier radio selection (#435)

2 years agowhisper : condition timestamps to be monotonically increasing (#425)
Georgi Gerganov [Mon, 23 Jan 2023 18:48:26 +0000 (20:48 +0200)]
whisper : condition timestamps to be monotonically increasing (#425)

2 years agowhisper : PPC64 big-endian support (#398)
fitzsim [Mon, 23 Jan 2023 18:48:10 +0000 (18:48 +0000)]
whisper : PPC64 big-endian support (#398)

* ggml : set cache line size to 128 on POWER9

* whisper : add PPC64 big endian support

2 years agorelease : v1.1.1
Georgi Gerganov [Mon, 23 Jan 2023 18:23:44 +0000 (20:23 +0200)]
release : v1.1.1

2 years ago.gitignore : add arm_neon.h
Georgi Gerganov [Mon, 23 Jan 2023 18:19:04 +0000 (20:19 +0200)]
.gitignore : add arm_neon.h

2 years agowhisper : fix condition for providing past prompt (critical)
Georgi Gerganov [Sun, 22 Jan 2023 08:47:01 +0000 (10:47 +0200)]
whisper : fix condition for providing past prompt (critical)

This bug has been present since v1.1.0.

Effectively, the past transcribed text wasn't being used for following
transcriptions, which likely significantly reduces the transcription
quality.

Likely related to #419

2 years agowhisper : extend information in whisper_print_timings()
Georgi Gerganov [Thu, 19 Jan 2023 16:50:33 +0000 (18:50 +0200)]
whisper : extend information in whisper_print_timings()

2 years agowhisper : perform entropy check only when we have at least 32 tokens (#412)
Georgi Gerganov [Wed, 18 Jan 2023 20:52:18 +0000 (22:52 +0200)]
whisper : perform entropy check only when we have at least 32 tokens (#412)

2 years agomain : we had accidentally disabled the temperature fallback .. (#291)
Georgi Gerganov [Wed, 18 Jan 2023 20:51:41 +0000 (22:51 +0200)]
main : we had accidentally disabled the temperature fallback .. (#291)

2 years agowhisper.wasm : add small and small.en models
Georgi Gerganov [Wed, 18 Jan 2023 19:58:55 +0000 (21:58 +0200)]
whisper.wasm : add small and small.en models

2 years agobench : minor fixes
Georgi Gerganov [Wed, 18 Jan 2023 19:39:32 +0000 (21:39 +0200)]
bench : minor fixes

2 years agomain : add an option to accept optional output filenames (#424)
Chia-Hsiang Cheng [Wed, 18 Jan 2023 19:26:31 +0000 (03:26 +0800)]
main : add an option to accept optional output filenames (#424)

* Add an option to accept optional output filenames

* Format the file

Co-authored-by: Chia-Hsiang Cheng <redacted>
2 years agostream : fix handling of --step == --length (#416)
Georgi Gerganov [Wed, 18 Jan 2023 19:22:52 +0000 (21:22 +0200)]
stream : fix handling of --step == --length (#416)

2 years agobench : fix Windows linkage by moving ggml benches in whisper lib ..
Georgi Gerganov [Wed, 18 Jan 2023 19:00:41 +0000 (21:00 +0200)]
bench : fix Windows linkage by moving ggml benches in whisper lib ..

2 years agobench : add memcpy and ggml_mul_mat benchmarks
Georgi Gerganov [Wed, 18 Jan 2023 18:31:46 +0000 (20:31 +0200)]
bench : add memcpy and ggml_mul_mat benchmarks

2 years agowhisper.android : add support for loading directly from asset in C (#415)
Digipom [Mon, 16 Jan 2023 19:57:35 +0000 (14:57 -0500)]
whisper.android : add support for loading directly from asset in C (#415)

2 years agowhisper : fix possible uninitialized variables (#291)
Georgi Gerganov [Mon, 16 Jan 2023 19:44:40 +0000 (21:44 +0200)]
whisper : fix possible uninitialized variables (#291)

2 years agostream : fix --keep_context argument to be used correctly (#354)
Georgi Gerganov [Mon, 16 Jan 2023 17:37:06 +0000 (19:37 +0200)]
stream : fix --keep_context argument to be used correctly (#354)

2 years agogo : remove sample_best and sample_timestamp bindings (#409)
Damian Czaja [Mon, 16 Jan 2023 17:18:10 +0000 (18:18 +0100)]
go : remove sample_best and sample_timestamp bindings (#409)

2 years agoUpdate README.md
Georgi Gerganov [Mon, 16 Jan 2023 16:47:31 +0000 (18:47 +0200)]
Update README.md

2 years agocmake : bump version to 1.1.0
Georgi Gerganov [Sun, 15 Jan 2023 12:22:25 +0000 (14:22 +0200)]
cmake : bump version to 1.1.0

2 years agoUpdate README.md
Georgi Gerganov [Sun, 15 Jan 2023 12:08:12 +0000 (14:08 +0200)]
Update README.md

2 years agowhisper : account speed_up flag for short audio (close #405)
Georgi Gerganov [Sun, 15 Jan 2023 10:41:42 +0000 (12:41 +0200)]
whisper : account speed_up flag for short audio (close #405)

2 years agoUpdate README.md
Georgi Gerganov [Sun, 15 Jan 2023 09:36:20 +0000 (11:36 +0200)]
Update README.md

2 years agobench.wasm : print system info
Georgi Gerganov [Sun, 15 Jan 2023 09:34:03 +0000 (11:34 +0200)]
bench.wasm : print system info

2 years agoImprove decoding (#291)
Georgi Gerganov [Sun, 15 Jan 2023 09:29:57 +0000 (11:29 +0200)]
Improve decoding (#291)

* whisper : prepare infra for new decoding strategies

* whisper : apply logit filters and compute logprobs

* whisper : add whisper_get_logits()

* whisper : separate self and cross attention memory

Initial step needed for supporting parallel decoders

* whisper : move probs_id buffer to whisper_context

* whisper : refactor kv cache into separate struct

* whisper : move self-attention kv cache to whisper_decoder

* whisper : wip decoding parameters + strategies

* whisper : wip decoding parameters + strategies (part 2)

* whisper : wip decoding parameters + strategies (part 3)

* whisper : wip decoding parameters + strategies (part 4)

* whisper : fix prompt_past update to not include prompt_init

* whisper : temperature + best_of support

* whisper : support for compression_ration_threshold

We actually use entropy, but it is similar

* command : fix example to use logits instead of obsolete probs

* whisper : handle empty sequence ranking

* whisper : add WHISPER_DEBUG + diagnostic prints + new main args

* whisper : minor fixes

* whisper : add beam-search support

* whisper : bug fix when there no previous context

* whisper : add comments

* stream : disable temperature fallback

For real-time processing, we always want a single decoder running at T=0

* whisper.swiftui : update example - fix paths + add empty folders

2 years agostream : fix a bug that inserted a lot of empty audio at the start
Georgi Gerganov [Sat, 14 Jan 2023 17:20:47 +0000 (19:20 +0200)]
stream : fix a bug that inserted a lot of empty audio at the start

The quality was terrible due to this

2 years agoggml : remove obsolete zeroing + comment fixes (#390)
Georgi Gerganov [Sun, 8 Jan 2023 10:35:56 +0000 (12:35 +0200)]
ggml : remove obsolete zeroing + comment fixes (#390)

2 years agoreadme : clarify main and stream usage (#391)
Ian Bicking [Sun, 8 Jan 2023 18:18:41 +0000 (12:18 -0600)]
readme : clarify main and stream usage (#391)

Give an example of ./main that uses a sample file that's already there, and make the stream example clarify you need `make stream`

2 years agoggml : correct behaviour of ggml_vec_sum_f32 (#390)
Abitofevrything [Sun, 8 Jan 2023 18:06:09 +0000 (19:06 +0100)]
ggml : correct behaviour of ggml_vec_sum_f32 (#390)

2 years agowhisper : fix sample_to_timestamp calculation with 64 bit precision to avoid overflow...
boolemancer [Sun, 8 Jan 2023 13:08:45 +0000 (05:08 -0800)]
whisper : fix sample_to_timestamp calculation with 64 bit precision to avoid overflow (#388)

* Do calculation with 64 bit precision to avoid overflow

* Update whisper.cpp

Co-authored-by: Georgi Gerganov <redacted>
Co-authored-by: Georgi Gerganov <redacted>
2 years agowhisper : add loader class to allow loading from buffer and others (#353)
Syahmi Azhar [Sun, 8 Jan 2023 11:03:33 +0000 (19:03 +0800)]
whisper : add loader class to allow loading from buffer and others (#353)

* whisper : add loader to allow loading from other than file

* whisper : rename whisper_init to whisper_init_from_file

* whisper : add whisper_init_from_buffer

* android : Delete local.properties

* android : load models directly from assets

* whisper : adding <stddef.h> needed for size_t + code style

Co-authored-by: Georgi Gerganov <redacted>
2 years agoggml : improve vec_dot_f16 unrolling in flash_attn_f16
Georgi Gerganov [Sun, 8 Jan 2023 09:41:18 +0000 (11:41 +0200)]
ggml : improve vec_dot_f16 unrolling in flash_attn_f16

2 years agocommand : clean-up / refactoring / formatting (#383)
Georgi Gerganov [Sat, 7 Jan 2023 19:43:24 +0000 (21:43 +0200)]
command : clean-up / refactoring / formatting (#383)

2 years agocommand : always-prompt mode (#383)
David [Sat, 7 Jan 2023 19:41:11 +0000 (20:41 +0100)]
command : always-prompt mode (#383)

2 years agogo : adding features to the go-whisper example, go ci, etc (#384)
David Thorpe [Sat, 7 Jan 2023 19:21:43 +0000 (19:21 +0000)]
go : adding features to the go-whisper example, go ci, etc (#384)

* Updated bindings so they can be used in third pary packages.

* Updated makefiles to set FMA flag on optionally, for xeon E5 on Darwin

* Added test script

* Changes for examples

* Reverted

* Made the NewContext method private

2 years agoggml : fix bug in new soft max computation
Georgi Gerganov [Sat, 7 Jan 2023 19:00:07 +0000 (21:00 +0200)]
ggml : fix bug in new soft max computation

2 years agocmake : add -Wno-unused-function + update whisper.js
Georgi Gerganov [Sat, 7 Jan 2023 18:18:34 +0000 (20:18 +0200)]
cmake : add -Wno-unused-function + update whisper.js

2 years agoggml : when using BLAS start only 1 CPU thread
Georgi Gerganov [Sat, 7 Jan 2023 17:48:56 +0000 (19:48 +0200)]
ggml : when using BLAS start only 1 CPU thread

2 years agoggml : fix running tasks with variable number of threads
Georgi Gerganov [Sat, 7 Jan 2023 17:20:18 +0000 (19:20 +0200)]
ggml : fix running tasks with variable number of threads

2 years agoggml : unroll ggml_vec_dot_f16 in ggml_compute_forward_flash_attn_f16
Georgi Gerganov [Sat, 7 Jan 2023 15:32:23 +0000 (17:32 +0200)]
ggml : unroll ggml_vec_dot_f16 in ggml_compute_forward_flash_attn_f16

2 years agowhisper : revert accidental MB change
Georgi Gerganov [Sat, 7 Jan 2023 14:18:21 +0000 (16:18 +0200)]
whisper : revert accidental MB change

2 years agoggml : speed-up soft max via Accelerate + unroll
Georgi Gerganov [Sat, 7 Jan 2023 14:11:41 +0000 (16:11 +0200)]
ggml : speed-up soft max via Accelerate + unroll

2 years agoggml : use vDSP_sve and vDSP_maxv from Accelerate
Georgi Gerganov [Sat, 7 Jan 2023 14:10:16 +0000 (16:10 +0200)]
ggml : use vDSP_sve and vDSP_maxv from Accelerate

2 years agoggml : make gcc happy (minor)
Georgi Gerganov [Sat, 7 Jan 2023 07:34:39 +0000 (09:34 +0200)]
ggml : make gcc happy (minor)

2 years agotalk.wasm : bump memory usage + update whisper.js
Georgi Gerganov [Fri, 6 Jan 2023 19:12:51 +0000 (21:12 +0200)]
talk.wasm : bump memory usage + update whisper.js

2 years agocmake : support AVX2 in Windows better (#381)
m.bell [Fri, 6 Jan 2023 17:36:33 +0000 (12:36 -0500)]
cmake : support AVX2 in Windows better (#381)

2 years agoRevert "tmp"
Georgi Gerganov [Fri, 6 Jan 2023 17:32:53 +0000 (19:32 +0200)]
Revert "tmp"

This reverts commit 1652965529a467213b588491d7849292df7808d9.

2 years agogo : bindings updated so they can be used in third party packages. (#379)
David Thorpe [Fri, 6 Jan 2023 17:32:28 +0000 (17:32 +0000)]
go : bindings updated so they can be used in third party packages. (#379)

* Updated bindings so they can be used in third pary packages.

* Updated makefiles to set FMA flag on optionally, for xeon E5 on Darwin

2 years agotmp
Georgi Gerganov [Fri, 6 Jan 2023 17:32:12 +0000 (19:32 +0200)]
tmp

2 years agocmake : change min required version to 3.0 (#351)
Georgi Gerganov [Fri, 6 Jan 2023 17:23:56 +0000 (19:23 +0200)]
cmake : change min required version to 3.0 (#351)

We increase the min version only when want to use particular
functionality that is available in the newer version

2 years agocommand : add "guided-mode" video demo in the README.md
Georgi Gerganov [Fri, 6 Jan 2023 16:59:26 +0000 (18:59 +0200)]
command : add "guided-mode" video demo in the README.md

2 years agoggml : add SSE3 and fp16 conversion lookup table (#368)
Abitofevrything [Fri, 6 Jan 2023 16:45:59 +0000 (17:45 +0100)]
ggml : add SSE3 and fp16 conversion lookup table (#368)

* Improves WASM performance:
  On MacBook M1 Pro, I observe 25% faster using Firefox and 35% faster using Chrome

* Add support for SSE3 SIMD

* Add SSE3 to system information

* Add Imath support for fp16-fp32 conversions

* Add Imath to system information

* Wrap Imath calls to avoid static function warnings

* Drop Imath; Add lookup table for f16 -> f32 conversions

* Remove TODO comments

* Update SSE3 to new macro arguments

* Correct updated macro definitions

* Prefer static inline where possible

* ggml : static inlines + add public f16 <-> f32 conversions

Co-authored-by: Georgi Gerganov <redacted>
2 years agowhisper : document POWER VSX support
Thomas Fitzsimmons [Thu, 5 Jan 2023 04:00:30 +0000 (23:00 -0500)]
whisper : document POWER VSX support

2 years agoggml : reorganize POWER9 ppc64le SIMD code
Thomas Fitzsimmons [Tue, 3 Jan 2023 05:45:43 +0000 (00:45 -0500)]
ggml : reorganize POWER9 ppc64le SIMD code

2 years agoggml : change f16 load and store macro arguments
Thomas Fitzsimmons [Tue, 3 Jan 2023 05:43:17 +0000 (00:43 -0500)]
ggml : change f16 load and store macro arguments

2 years agowhisper : do not use F16 tensors when in F32 mode (#369)
Georgi Gerganov [Thu, 5 Jan 2023 20:56:25 +0000 (22:56 +0200)]
whisper : do not use F16 tensors when in F32 mode (#369)

2 years agoci : add emscripten build
Georgi Gerganov [Thu, 5 Jan 2023 20:02:58 +0000 (22:02 +0200)]
ci : add emscripten build

2 years agomain : make whisper_print_segment_callback() more readable (close #371)
Georgi Gerganov [Thu, 5 Jan 2023 19:45:05 +0000 (21:45 +0200)]
main : make whisper_print_segment_callback() more readable (close #371)