Spaces:
Running
Running
whisper : minor fixes (#1154)
Browse files- README.md +1 -1
- whisper.cpp +2 -2
- whisper.h +1 -1
README.md
CHANGED
|
@@ -61,7 +61,7 @@ Or you can even run it straight in the browser: [talk.wasm](examples/talk.wasm)
|
|
| 61 |
- Various other examples are available in the [examples](examples) folder
|
| 62 |
|
| 63 |
The tensor operators are optimized heavily for Apple silicon CPUs. Depending on the computation size, Arm Neon SIMD
|
| 64 |
-
|
| 65 |
the Accelerate framework utilizes the special-purpose AMX coprocessor available in modern Apple products.
|
| 66 |
|
| 67 |
## Quick start
|
|
|
|
| 61 |
- Various other examples are available in the [examples](examples) folder
|
| 62 |
|
| 63 |
The tensor operators are optimized heavily for Apple silicon CPUs. Depending on the computation size, Arm Neon SIMD
|
| 64 |
+
intrinsics or CBLAS Accelerate framework routines are used. The latter are especially effective for bigger sizes since
|
| 65 |
the Accelerate framework utilizes the special-purpose AMX coprocessor available in modern Apple products.
|
| 66 |
|
| 67 |
## Quick start
|
whisper.cpp
CHANGED
|
@@ -82,7 +82,7 @@ static void byteswap_tensor(ggml_tensor * tensor) {
|
|
| 82 |
} while (0)
|
| 83 |
#define BYTESWAP_TENSOR(t) \
|
| 84 |
do { \
|
| 85 |
-
byteswap_tensor(
|
| 86 |
} while (0)
|
| 87 |
#else
|
| 88 |
#define BYTESWAP_VALUE(d) do {} while (0)
|
|
@@ -589,7 +589,7 @@ struct whisper_model {
|
|
| 589 |
struct whisper_sequence {
|
| 590 |
std::vector<whisper_token_data> tokens;
|
| 591 |
|
| 592 |
-
// the accumulated transcription in the current
|
| 593 |
int result_len;
|
| 594 |
|
| 595 |
double sum_logprobs_all; // the sum of the log probabilities of the tokens
|
|
|
|
| 82 |
} while (0)
|
| 83 |
#define BYTESWAP_TENSOR(t) \
|
| 84 |
do { \
|
| 85 |
+
byteswap_tensor(t); \
|
| 86 |
} while (0)
|
| 87 |
#else
|
| 88 |
#define BYTESWAP_VALUE(d) do {} while (0)
|
|
|
|
| 589 |
struct whisper_sequence {
|
| 590 |
std::vector<whisper_token_data> tokens;
|
| 591 |
|
| 592 |
+
// the accumulated transcription in the current iteration (used to truncate the tokens array)
|
| 593 |
int result_len;
|
| 594 |
|
| 595 |
double sum_logprobs_all; // the sum of the log probabilities of the tokens
|
whisper.h
CHANGED
|
@@ -346,7 +346,7 @@ extern "C" {
|
|
| 346 |
void * user_data);
|
| 347 |
|
| 348 |
// Parameters for the whisper_full() function
|
| 349 |
-
// If you
|
| 350 |
// whisper_full_default_params()
|
| 351 |
struct whisper_full_params {
|
| 352 |
enum whisper_sampling_strategy strategy;
|
|
|
|
| 346 |
void * user_data);
|
| 347 |
|
| 348 |
// Parameters for the whisper_full() function
|
| 349 |
+
// If you change the order or add new parameters, make sure to update the default values in whisper.cpp:
|
| 350 |
// whisper_full_default_params()
|
| 351 |
struct whisper_full_params {
|
| 352 |
enum whisper_sampling_strategy strategy;
|