File size: 1,933 Bytes
653d525
 
 
 
 
 
 
83ad7fd
653d525
 
 
 
 
 
 
 
 
 
83ad7fd
 
 
653d525
 
 
83ad7fd
 
653d525
 
 
83ad7fd
 
653d525
 
 
83ad7fd
 
653d525
 
 
83ad7fd
653d525
83ad7fd
 
 
653d525
83ad7fd
 
 
 
 
653d525
da59f73
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
library_name: transformers
tags: []
---

# Model Card for Model ID

This model is a quantized version of openai/whisper-large-v3, optimized for more efficient use while maintaining performance.


## Model Details

### Model Description

<!-- Provide a longer summary of what this model is. -->

This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.

- **Developed by:** alicekyting (based on OpenAI's Whisper model)
- **Model type:** Speech recognition model
- **Language(s) (NLP):** Multilingual

## Uses

This model can be used for automatic speech recognition (ASR) tasks, including transcription and translation. 
It's particularly useful in scenarios where computational efficiency is important, as it has been quantized to 4-bit precision.

## Bias, Risks, and Limitations

This model inherits any biases, risks, and limitations present in the original openai/whisper-large-v3 model. 
Additionally, the quantization process may introduce slight degradation in accuracy compared to the original model.

### Recommendations

Users should be aware of the trade-off between efficiency and potential minor accuracy loss due to quantization. 
It's recommended to evaluate the model's performance on your specific use case before deployment.

## How to Get Started with the Model

Use the following code to load and use the model:

```python
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor
import torch

model = AutoModelForSpeechSeq2Seq.from_pretrained(
    "alicekyting/whisper-large-v3-4bit-model",
    device_map="auto",
    torch_dtype=torch.float16,
)

processor = AutoProcessor.from_pretrained("alicekyting/whisper-large-v3-4bit-model")

pipe = pipeline(
    "automatic-speech-recognition",
    model=model,
    tokenizer=processor.tokenizer,
    feature_extractor=processor.feature_extractor,
    torch_dtype=torch_dtype,
)