Package Details: whisper-git 2024.09.30.r6.g90db0de1-2

Git Clone URL: https://aur.archlinux.org/whisper-git.git (read-only, click to copy)
Package Base: whisper-git
Description: General-purpose speech-recognition model by OpenAI
Upstream URL: https://github.com/openai/whisper
Licenses: MIT
Conflicts: whisper
Provides: whisper
Submitter: blinry
Maintainer: blinry (xiota)
Last Packager: xiota
Votes: 13
Popularity: 0.21
First Submitted: 2022-09-22 17:49 (UTC)
Last Updated: 2024-12-24 07:08 (UTC)

Pinned Comments

xiota commented on 2024-12-25 02:38 (UTC) (edited on 2024-12-25 02:38 (UTC) by xiota)

Stable package is available at extra/python-openai-whisper.

I've created aur/python-openai-whisper-git. Planning to retire this package "soon".

Latest Comments

1 2 3 4 5 Next › Last »

xiota commented on 2024-12-25 02:38 (UTC) (edited on 2024-12-25 02:38 (UTC) by xiota)

Stable package is available at extra/python-openai-whisper.

I've created aur/python-openai-whisper-git. Planning to retire this package "soon".

evorster commented on 2024-12-22 19:49 (UTC) (edited on 2024-12-22 19:50 (UTC) by evorster)

Hi there!

Just tried building whisper-git, and it fails with a error that is new to me:

==> Starting build()...
* Getting build dependencies for wheel...
<string>:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
    main()
    ~~~~^^
  File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
    return hook(config_settings)
  File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=[])
           ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
    self.run_setup()
    ~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 516, in run_setup
    super().run_setup(setup_script=setup_script)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 318, in run_setup
    exec(code, locals())
    ~~~~^^^^^^^^^^^^^^^^
  File "<string>", line 21, in <module>
  File "<string>", line 11, in read_version
KeyError: '__version__'

ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: whisper-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
whisper-git - exit status 4

xiota commented on 2024-05-02 14:47 (UTC)

Related issue: extra/python-pytorch/14

Alpha97 commented on 2024-05-02 13:04 (UTC)

Below error is encountered for normal execution, and it works again after rollback the python-pytorch-opt-cuda (2.3.0-2 => 2.3.0-1)

I am not sure if it's the problem of whisper, just leave this workaround for your reference.

Traceback (most recent call last): File "/usr/bin/whisper", line 5, in <module> from whisper.transcribe import cli File "/usr/lib/python3.12/site-packages/whisper/init.py", line 8, in <module> import torch File "/usr/lib/python3.12/site-packages/torch/init.py", line 237, in <module> from torch._C import * # noqa: F403 ^^^^^^^^^^^^^^^^^^^^^^ ImportError: /usr/lib/libtorch_cpu.so: undefined symbol: cblas_gemm_f16f16f32

xiota commented on 2024-02-11 05:09 (UTC)

@schaefer I would search for potentially related open and closed issues at github/pytorch. This issue might be worth watching: HIP error: shared object initialization failed

schaefer commented on 2024-02-10 07:38 (UTC)

@xiota Here is complete output: https://0x0.st/HdA8.cmd

xiota commented on 2024-02-08 21:33 (UTC)

@schaefer Would depend on the cause of the problem. Could you put a full log in a pastebin?

schaefer commented on 2024-02-08 13:43 (UTC) (edited on 2024-02-08 13:44 (UTC) by schaefer)

@xiota true, thank you, just verified working status with python-pytorch-opt. It does not work anymore with python-pytorch-opt-rocm though, which means no GPU for me. Can you point me to where I should look for/open an issue?

xiota commented on 2024-02-07 23:08 (UTC)

@schaefer This package is working with python-pytorch. There may be some problem with another package. Something may need to be rebuilt or an issue reported somewhere.

schaefer commented on 2024-02-07 10:16 (UTC) (edited on 2024-02-07 10:19 (UTC) by schaefer)

Stopped working with the latest arch update to rocm 6.0.0

Traceback (most recent call last):
  File "/usr/bin/whisper", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/usr/lib/python3.11/site-packages/whisper/transcribe.py", line 577, in cli
    model = load_model(model_name, device=device, download_root=model_dir)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/whisper/__init__.py", line 151, in load_model
    model.load_state_dict(checkpoint["model_state_dict"])
  File "/usr/lib/python3.11/site-packages/torch/nn/modules/module.py", line 2153, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for Whisper:
        While copying the parameter named "encoder.blocks.0.attn.query.weight", whose dimensions in the model are torch.Size([768, 768]) and whose dimensions in the checkpoint are torch.Size([768, 768]), an exception occurred : ('HIP error: shared object initialization failed\nHIP kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.\nFor debugging consider passing HIP_LAUNCH_BLOCKING=1.\nCompile with `TORCH_USE_HIP_DSA` to enable device-side assertions.\n',).


(... many more)