jnnnnn
a4e303ef3f
cfg_if
2023-05-29 19:17:48 +12:00
0/0
192e37c53f
Merge pull request #62 from jocelyn-stericker/fpic
...
Use position independent code (-fPIC)
2023-05-29 02:14:13 +00:00
Jocelyn Stericker
0a8a791fad
Use position independent code (-fPIC)
...
This allows whipser-rs-sys to work when building a cdylib on x86 Linux
in certain conditions.
Without this change, linking can fail with:
```
= note: /usr/bin/ld: /.../target/debug/deps/libwhisper_rs_sys-d9be91f496c91a32.rlib(whisper.cpp.o): warning: relocation against `_ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE@@GLIBCXX_3.4.21' in read-only section `.text.unlikely'
/usr/bin/ld: /.../target/debug/deps/libwhisper_rs_sys-d9be91f496c91a32.rlib(whisper.cpp.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
```
Note that this is one solution. I believe another would be to use the [cmake crate](https://github.com/rust-lang/cmake-rs ), which builds with `-fPIC` by default on Linux.
2023-05-28 11:04:25 -04:00
jnnnnn
ffa9655a06
fmt
2023-05-25 15:05:05 +12:00
Jonathan Newnham
435a736af1
Fix windows cuda build
...
* add ggml-cuda.cu
* sort out linker paths using CUDA_PATH
2023-05-25 14:26:14 +12:00
0/0
93f8d92d56
Merge pull request #59 from edef1c/include-ggml-opencl
...
include ggml-opencl in the crate
2023-05-20 15:22:18 +00:00
edef
31845bbe94
include ggml-opencl in the crate
...
The opencl feature can't possibly work without including the actual
code.
2023-05-19 22:14:23 +00:00
0/0
805dfcf36a
Merge pull request #57 from girlbossceo/patch-1
...
make sure the user has CMake installed
2023-05-14 21:04:11 +00:00
r3g_5z
e475c85234
make sure the user has CMake installed
...
Signed-off-by: r3g_5z <june@girlboss.ceo>
2023-05-14 16:58:37 -04:00
Zero
c557529e5b
update CHANGELOG.md
2023-05-14 14:37:29 -06:00
Zero
1acffbac45
update whisper-rs to 0.8.0
2023-05-14 14:34:53 -06:00
Zero
548934b91f
update whisper-rs-sys to v0.6.0
2023-05-14 14:30:14 -06:00
0/0
61124601d6
Merge pull request #51 from tazz4843/cuda-and-opencl-support
...
Add CUDA and OpenCL support
2023-05-14 20:28:49 +00:00
Zero
3c1db4023c
update whisper.cpp to v1.4.2
2023-05-14 14:27:37 -06:00
Zero
e207b9fce8
old change that was forgotten in bindings.rs
2023-05-14 14:26:51 -06:00
Zero
a089bb71f9
fix broken things from update
2023-05-14 14:01:38 -06:00
Zero
816c17ad80
Merge branch 'master' into cuda-and-opencl-support
...
# Conflicts:
# sys/build.rs
2023-05-14 13:59:49 -06:00
Zero
343a3029fb
Merge remote-tracking branch 'origin/master'
2023-05-10 16:31:34 -06:00
Zero
7251519c61
update whisper-rs to v0.7.0
2023-05-10 14:07:22 -06:00
Zero
060b9b5697
update whisper-rs-sys to v0.5.0
2023-05-10 14:07:11 -06:00
Zero
fc062e7541
fix incorrect doc comments
2023-05-10 14:03:16 -06:00
0/0
ee7ab3c401
Merge pull request #52 from jcsoo/get-logits
...
Change get_logits to return a single slice
2023-05-10 19:53:51 +00:00
0/0
0deb88a347
Merge pull request #54 from jcsoo/coreml-allow-fallback
2023-05-09 15:59:18 +00:00
0/0
b2cd88432f
Merge pull request #53 from jcsoo/sampling-strategy-derives
2023-05-09 15:58:38 +00:00
Jonathan Soo
5c0d6ce957
Allow fallback to GGML when CoreML model not available.
2023-05-08 10:31:03 -04:00
Jonathan Soo
47f53af20d
Make SamplingStrategy Debug + Clone
2023-05-08 09:35:09 -04:00
Jonathan Soo
3811a77dce
Change get_logits to return a single slice
2023-05-08 09:31:54 -04:00
Zero
26c5974b44
Merge branch 'master' into cuda-and-opencl-support
2023-05-05 22:51:32 -06:00
Zero
0859b41191
cargo fmt
2023-05-05 22:48:20 -06:00
Zero
6e4c66db0a
add timer for how long transcription takes
2023-05-05 22:48:12 -06:00
Zero
e00568e801
reword error message in example and remove is_file check
2023-05-05 22:47:46 -06:00
Zero
9dd66a3b4b
add libraries to CUDA search path
2023-05-05 22:45:08 -06:00
Zero
e2f39c9c25
fix OpenCL build
2023-05-05 22:38:30 -06:00
Zero
997bc936e4
Merge branch 'master' into cuda-and-opencl-support
2023-05-05 21:58:29 -06:00
Zero
3c216269e3
move rustfmt into its own job as well
2023-05-05 21:57:03 -06:00
Zero
56866a461b
split build and clippy into their own jobs
2023-05-05 21:55:30 -06:00
Zero
49ae135e3f
do a build alongside clippy linting during CI
2023-05-05 21:54:17 -06:00
Zero
6d2b6251ff
update to v1.4.1
2023-05-05 21:52:06 -06:00
Zero
9b3bebf4b5
Initial support for CUDA and OpenCL
2023-05-05 21:17:59 -06:00
0/0
330024a8af
Update README.md
...
Removes things that were added in #10 and adds note on Linux builds
2023-05-05 16:59:43 +00:00
0/0
d77108fca6
Change token_to_str to return &str instead of String
2023-05-05 01:33:06 +00:00
0/0
a7caf1b96a
Merge pull request #48 from jcsoo/token_to_cstr
...
Add token_to_cstr
2023-05-05 01:30:37 +00:00
0/0
3fce9cbbde
Merge pull request #47 from jcsoo/tokenize_with_cstring
...
Tokenize with cstring
2023-05-05 01:26:47 +00:00
Jonathan Soo
c2372dbae9
Add token_to_cstr
2023-05-04 19:35:37 -04:00
Jonathan Soo
44e34ba301
Add test using tiny.en model behind a feature flag
2023-05-04 19:18:51 -04:00
Jonathan Soo
908e96f9da
Convert text to CString
2023-05-04 19:17:29 -04:00
0/0
b5072d486d
Merge pull request #43 from yuniruyuni/feat/call-method-via-state-object
...
migrate state method into state object
2023-05-01 20:14:01 +00:00
Yuniru Yuni
ef4b9f0630
migrate state method into state object
2023-04-30 09:09:29 +09:00
0/0
0fe0a87a09
Merge pull request #42 from yuniruyuni/feat/update-sample-in-readme-by-using-state-object
...
docs: change sample in readme by using state object
2023-04-26 17:51:09 +00:00
yuniruyuni
20c57dc887
fix: full_usage sample build error
2023-04-26 14:48:21 +09:00