andrewbawitlung commited on
Commit
3029277
·
verified ·
1 Parent(s): 6519cd3

Add CER, hyperparameters, and training logs to README

Browse files
Files changed (1) hide show
  1. README.md +34 -10
README.md CHANGED
@@ -46,6 +46,40 @@ It achieves the following results on the evaluation set:
46
  - Cer: 4.2170
47
  - Real Time Factor: 0.0697
48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  ## Model description
50
 
51
  ### Experiment Configurations
@@ -65,16 +99,6 @@ This repository is part of a series of experiments. The different configurations
65
  | **E4 (SpecAug)** | [andrewbawitlung/qwen3-asr-0.6b-mizonal3-E4-lus-v2026.06](https://huggingface.co/andrewbawitlung/qwen3-asr-0.6b-mizonal3-E4-lus-v2026.06) |
66
  | **E5 (Combined)** | [andrewbawitlung/qwen3-asr-0.6b-mizonal3-E5-lus-v2026.06](https://huggingface.co/andrewbawitlung/qwen3-asr-0.6b-mizonal3-E5-lus-v2026.06) |
67
 
68
- ## Intended uses & limitations
69
-
70
- More information needed
71
-
72
- ## Training and evaluation data
73
-
74
- More information needed
75
-
76
- ## Training procedure
77
-
78
  ### Training hyperparameters
79
 
80
  The following hyperparameters were used during training:
 
46
  - Cer: 4.2170
47
  - Real Time Factor: 0.0697
48
 
49
+ ## Quick Inference
50
+
51
+
52
+ ```python
53
+ import torch
54
+ import librosa
55
+ from transformers import AutoProcessor, Qwen2AudioForConditionalGeneration
56
+
57
+ device = "cuda" if torch.cuda.is_available() else "cpu"
58
+
59
+ processor = AutoProcessor.from_pretrained("andrewbawitlung/qwen3-asr-0.6b-mizonal3-E3-lus-v2026.06")
60
+ model = Qwen2AudioForConditionalGeneration.from_pretrained("andrewbawitlung/qwen3-asr-0.6b-mizonal3-E3-lus-v2026.06").to(device)
61
+
62
+ audio, sr = librosa.load("your_audio.wav", sr=16000)
63
+
64
+ conversation = [
65
+ {"role": "user", "content": [
66
+ {"type": "audio", "audio_url": "your_audio.wav"},
67
+ {"type": "text", "text": "Transcribe the audio:"}
68
+ ]}
69
+ ]
70
+ text = processor.apply_chat_template(conversation, add_generation_prompt=True, tokenize=False)
71
+ inputs = processor(text=text, audios=[audio], return_tensors="pt", padding=True)
72
+ inputs.input_ids = inputs.input_ids.to(device)
73
+
74
+ with torch.no_grad():
75
+ generate_ids = model.generate(**inputs, max_length=256)
76
+
77
+ generate_ids = generate_ids[:, inputs.input_ids.size(1):]
78
+ transcription = processor.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
79
+ print(transcription)
80
+ ```
81
+
82
+
83
  ## Model description
84
 
85
  ### Experiment Configurations
 
99
  | **E4 (SpecAug)** | [andrewbawitlung/qwen3-asr-0.6b-mizonal3-E4-lus-v2026.06](https://huggingface.co/andrewbawitlung/qwen3-asr-0.6b-mizonal3-E4-lus-v2026.06) |
100
  | **E5 (Combined)** | [andrewbawitlung/qwen3-asr-0.6b-mizonal3-E5-lus-v2026.06](https://huggingface.co/andrewbawitlung/qwen3-asr-0.6b-mizonal3-E5-lus-v2026.06) |
101
 
 
 
 
 
 
 
 
 
 
 
102
  ### Training hyperparameters
103
 
104
  The following hyperparameters were used during training: