]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/log
pkg/ggml/sources/whisper.cpp
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)

2 years agocmake : add CMAKE_RUNTIME_OUTPUT_DIRECTORY
Georgi Gerganov [Thu, 5 Jan 2023 19:40:59 +0000 (21:40 +0200)]
cmake : add CMAKE_RUNTIME_OUTPUT_DIRECTORY

Currently needed by the wasm examples

2 years agoggml : add void to argument-less functions
Georgi Gerganov [Thu, 5 Jan 2023 19:40:38 +0000 (21:40 +0200)]
ggml : add void to argument-less functions

2 years agominor : close #370 + Makefile build info print change
Georgi Gerganov [Thu, 5 Jan 2023 19:35:04 +0000 (21:35 +0200)]
minor : close #370 + Makefile build info print change

2 years agocmake : update to 3.19 (#351)
Andy Maloney [Thu, 5 Jan 2023 19:22:48 +0000 (14:22 -0500)]
cmake : update to 3.19 (#351)

- update from 3.0 (from 2014) to 3.19 (from 2020)
- move some global setting onto the targets (through a cmake include)

2 years agowhisper : use ranged-based for loops for readability
Andy Maloney [Sat, 31 Dec 2022 22:58:30 +0000 (17:58 -0500)]
whisper : use ranged-based for loops for readability

2 years agoggml : define MIN / MAX only if not defined (minor)
Georgi Gerganov [Thu, 5 Jan 2023 19:07:50 +0000 (21:07 +0200)]
ggml : define MIN / MAX only if not defined (minor)

2 years agomake : print build information
Georgi Gerganov [Mon, 2 Jan 2023 11:35:26 +0000 (13:35 +0200)]
make : print build information

2 years agostream : fix data race on bool + avoid division-by-zero
Georgi Gerganov [Mon, 2 Jan 2023 08:20:50 +0000 (10:20 +0200)]
stream : fix data race on bool + avoid division-by-zero

2 years agomodels : fix HF model URL (close #356)
Georgi Gerganov [Mon, 2 Jan 2023 07:54:43 +0000 (09:54 +0200)]
models : fix HF model URL (close #356)

2 years agocommand : refactor to split command list & general transcription modes (#331)
Andy Maloney [Sat, 31 Dec 2022 12:08:57 +0000 (07:08 -0500)]
command : refactor to split command list & general transcription modes (#331)

This makes it easier to understand if you're looking for only one of the capabilities.

2 years agoggml : improve f16 acceleration for POWER9 ppc64le
Thomas Fitzsimmons [Fri, 30 Dec 2022 23:57:15 +0000 (18:57 -0500)]
ggml : improve f16 acceleration for POWER9 ppc64le

2 years agowhisper : add whisper_n_audio_ctx and check for invalid audio_ctx
Georgi Gerganov [Sat, 31 Dec 2022 07:55:33 +0000 (09:55 +0200)]
whisper : add whisper_n_audio_ctx and check for invalid audio_ctx

closes #344

2 years agomodels : fix typo in convert-h5-to-ggml.py
Ikko Ashimine [Fri, 30 Dec 2022 17:51:08 +0000 (02:51 +0900)]
models : fix typo in convert-h5-to-ggml.py

signficant -> significant

2 years agocmake : add runtime destination install (#345)
Avik Sengupta [Sat, 31 Dec 2022 07:48:00 +0000 (07:48 +0000)]
cmake : add runtime destination install (#345)

needed for mingw32 build to successfully install the dlls in the correct location

2 years agowhisper : avoid some memory allocations
Georgi Gerganov [Fri, 30 Dec 2022 11:42:35 +0000 (13:42 +0200)]
whisper : avoid some memory allocations

2 years agomain : add -ocsv, aka --output-csv to output a CSV file
Niels Mayer [Thu, 29 Dec 2022 12:04:00 +0000 (04:04 -0800)]
main : add -ocsv, aka --output-csv to output a CSV file

Adds -ocsv, aka --output-csv feature to examples/main, which outputs a CSV file containing lines formatted as follows <startTime-in-integer-milliseconds>, <endTime-in-integer-milliseconds>, "<transcript-line-including-commas>".

2 years agomake : add i686 arch (close #329)
Georgi Gerganov [Thu, 29 Dec 2022 11:58:27 +0000 (13:58 +0200)]
make : add i686 arch (close #329)

2 years agoggml : barrier refactor + static functions
Georgi Gerganov [Wed, 28 Dec 2022 16:47:30 +0000 (18:47 +0200)]
ggml : barrier refactor + static functions

2 years agoggml : simplify the SIMD code (#324)
Georgi Gerganov [Sat, 24 Dec 2022 08:22:28 +0000 (10:22 +0200)]
ggml : simplify the SIMD code (#324)

* ggml : simplify the SIMD code

* ggml : generic reduce for all register sizes + comments

2 years agoexamples : fix memory leak on failure to load gpt2 model (#323)
Andy Maloney [Fri, 23 Dec 2022 18:19:07 +0000 (13:19 -0500)]
examples : fix memory leak on failure to load gpt2 model (#323)

2 years agoexamples : small code cleanups (#322)
Andy Maloney [Fri, 23 Dec 2022 18:18:51 +0000 (13:18 -0500)]
examples : small code cleanups (#322)

- remove unnecessary initialization of string to ""
- use empty() instead of checking size()
- use emplace_back instead of push_back
- use nullptr instead of NULL
- remove unnecessary call to .data() on string
- use character overload of find_first_of() instead of passing a string

2 years agoggml : use vaddvq_f32 for slightly more efficient reduce
Georgi Gerganov [Fri, 23 Dec 2022 11:48:19 +0000 (13:48 +0200)]
ggml : use vaddvq_f32 for slightly more efficient reduce

2 years agoggml : add f16 acceleration for POWER9 ppc64le
Thomas Fitzsimmons [Fri, 23 Dec 2022 06:19:19 +0000 (01:19 -0500)]
ggml : add f16 acceleration for POWER9 ppc64le

2 years agomodels : fix support for spaces in path (close #315)
Georgi Gerganov [Fri, 23 Dec 2022 09:11:38 +0000 (11:11 +0200)]
models : fix support for spaces in path (close #315)

2 years agowhisper : use emplace_back in place of push_back (#319)
Andy Maloney [Fri, 23 Dec 2022 09:07:19 +0000 (04:07 -0500)]
whisper : use emplace_back in place of push_back (#319)

This avoids potential construction of temporaries.

2 years agowhisper : fix mem leak on failure to load model (#318)
Andy Maloney [Fri, 23 Dec 2022 09:06:17 +0000 (04:06 -0500)]
whisper : fix mem leak on failure to load model (#318)

2 years agoggml : make consts static (#317)
Andy Maloney [Fri, 23 Dec 2022 09:05:27 +0000 (04:05 -0500)]
ggml : make consts static (#317)

These shouldn't be able to be referenced outside the compilation unit.

2 years agoUpdate README.md
Georgi Gerganov [Fri, 23 Dec 2022 09:02:46 +0000 (11:02 +0200)]
Update README.md

Add SwiftUI example links

2 years agoexamples : add whisper.swiftui demo app (#308)
Digipom [Fri, 23 Dec 2022 08:56:18 +0000 (03:56 -0500)]
examples : add whisper.swiftui demo app (#308)

* Add SwiftUI demo project.

* Add -DGGML_USE_ACCELERATE

2 years agoUpdate README.md
Georgi Gerganov [Thu, 22 Dec 2022 16:22:58 +0000 (18:22 +0200)]
Update README.md

Add bindings links / discussions

2 years agominor : small code cleanups (#302)
Andy Maloney [Thu, 22 Dec 2022 15:06:19 +0000 (10:06 -0500)]
minor : small code cleanups (#302)

* Small code cleanups

- fix indentation
- remove extra semicolons
- remove extra break after returns in case statements
- remove unnecessary call to .data() on string
- use empty() instead of checking size()
- no need to check for nullptr before free
- remove unnecessary initialization of string to ""

* minor : switch case always break

Co-authored-by: Georgi Gerganov <redacted>
2 years agominor : flag "ARM FMA" -> "ARM_FMA"
Georgi Gerganov [Thu, 22 Dec 2022 14:43:57 +0000 (16:43 +0200)]
minor : flag "ARM FMA" -> "ARM_FMA"

2 years agoBuild a vfpv4 library for armeabi-v7a and do runtime detection to select the right...
Kevin Brothaler [Tue, 20 Dec 2022 20:15:59 +0000 (15:15 -0500)]
Build a vfpv4 library for armeabi-v7a and do runtime detection to select the right library

2 years agoCheck for both __ARM_NEON and __ARM_FEATURE_FMA so that the project can be compiled...
Kevin Brothaler [Tue, 20 Dec 2022 18:33:33 +0000 (13:33 -0500)]
Check for both __ARM_NEON and __ARM_FEATURE_FMA so that the project can be compiled for armv7a.

Android armeabi-v7a's NEON support doesn't support FMA unless configured with `-mfpu=neon-fp-armv8`, which would need runtime checks.
* Also removed ABI filter from Android project.

2 years agoBump NDK version
Kevin Brothaler [Tue, 20 Dec 2022 18:33:27 +0000 (13:33 -0500)]
Bump NDK version

2 years agowhisper : use nullptr (C++11) instead of NULL macro (#299)
Andy Maloney [Thu, 22 Dec 2022 14:35:18 +0000 (09:35 -0500)]
whisper : use nullptr (C++11) instead of NULL macro (#299)

2 years agocmake : add headers to target (#298)
Andy Maloney [Thu, 22 Dec 2022 14:34:47 +0000 (09:34 -0500)]
cmake : add headers to target (#298)

This will show the header files in IDEs.

2 years agogo : run `go mod tidy` before building examples + fix permissions (#296)
Mohit Agarwal [Thu, 22 Dec 2022 14:34:20 +0000 (20:04 +0530)]
go : run `go mod tidy` before building examples + fix permissions (#296)

* run `go mod tidy` before building examples

Running `make examples` after cloning the repository gives the following
error:

```
...
[100%] Built target whisper
gmake[3]: Leaving directory '/tmp/exp/whisper.cpp/bindings/go/build'
gmake[2]: Leaving directory '/tmp/exp/whisper.cpp/bindings/go/build'
gmake[1]: Leaving directory '/tmp/exp/whisper.cpp/bindings/go/build'
Build example go-model-download
Build example go-whisper
examples/go-whisper/process.go:11:2: missing go.sum entry for module providing package github.com/go-audio/wav (imported by github.com/ggerganov/whisper.cpp/bindings/go/examples/go-whisper); to add:
        go get github.com/ggerganov/whisper.cpp/bindings/go/examples/go-whisper
make: *** [Makefile:26: examples/go-whisper] Error 1
```

* remove executable bit from various files

2 years agobindings : initial import of golang bindings (#287)
David Thorpe [Tue, 20 Dec 2022 06:54:33 +0000 (07:54 +0100)]
bindings : initial import of golang bindings (#287)

* Initial import of golang bindings

* Updated makefile rules

* Updated bindings

* Makefile update to add in more tests

2 years agoUpdate README.md
Georgi Gerganov [Mon, 19 Dec 2022 20:09:21 +0000 (22:09 +0200)]
Update README.md

2 years agocmake : enable and fix -Wall -Wextra -Wpedantic C++ warnings
Georgi Gerganov [Mon, 19 Dec 2022 18:45:08 +0000 (20:45 +0200)]
cmake : enable and fix  -Wall -Wextra -Wpedantic C++ warnings

2 years agominor : resolves some of warnings when compiling with clang/clang++ (#294)
Matheus de Sousa [Mon, 19 Dec 2022 18:19:01 +0000 (15:19 -0300)]
minor : resolves some of warnings when compiling with clang/clang++ (#294)

* Resolves some of warnings when compiling with clang/clang++

Mostly nit stuff that clang catches when compiling with -Wall -Wextra
-pedantic.

- Fix comparison between sign/unsigned integers.
- Passes a constant reference (const&) instead of copying each time.

* minor : normalize coding style

* minor : fix warning

Co-authored-by: Georgi Gerganov <redacted>
2 years agorelease : v1.0.4
Georgi Gerganov [Sat, 17 Dec 2022 17:52:42 +0000 (19:52 +0200)]
release : v1.0.4

2 years agoAdd AVX,AVX2 support for ggml_vec_scale_f32
katsu560 [Fri, 16 Dec 2022 23:42:30 +0000 (08:42 +0900)]
Add AVX,AVX2 support for ggml_vec_scale_f32

2 years agomake : revert accidental change of optimization flags
Georgi Gerganov [Sat, 17 Dec 2022 16:57:42 +0000 (18:57 +0200)]
make : revert accidental change of optimization flags

2 years agowhisper : language auto-detect (#59)
Georgi Gerganov [Sat, 17 Dec 2022 15:58:08 +0000 (17:58 +0200)]
whisper : language auto-detect (#59)

2 years agoAdd Roadmap
Georgi Gerganov [Fri, 16 Dec 2022 21:41:57 +0000 (23:41 +0200)]
Add Roadmap

2 years agoggml : implement ggml_compute_forward_dup_f16() special cases
Georgi Gerganov [Fri, 16 Dec 2022 19:50:41 +0000 (21:50 +0200)]
ggml : implement ggml_compute_forward_dup_f16() special cases

2 years agomain : add option to print the progress (#276)
Georgi Gerganov [Fri, 16 Dec 2022 18:20:43 +0000 (20:20 +0200)]
main : add option to print the progress (#276)

2 years agomain : add "--prompt" command line argument (#90)
Georgi Gerganov [Fri, 16 Dec 2022 17:43:16 +0000 (19:43 +0200)]
main : add "--prompt" command line argument (#90)

This allows to provide an initial prompt to be used at the start of the
processing.

2 years agocommand : better indentation
Georgi Gerganov [Tue, 13 Dec 2022 19:46:42 +0000 (21:46 +0200)]
command : better indentation