-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathlaunch.json
More file actions
74 lines (74 loc) · 2.75 KB
/
launch.json
File metadata and controls
74 lines (74 loc) · 2.75 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"version": "0.2.0",
"configurations": [
{
"name": "Transcribe: Telugu using Whisper Medium",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/run_transcribe.py",
"args": [
"--audio", "${workspaceFolder}/whisper/assets/adityateluguthursday.m4a",
"--model", "${workspaceFolder}/mlx_models/whisper-medium-mlx",
],
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Train: Whisper Medium on Telugu using LoRA",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/lora/lora.py",
"args": [
"--model", "${workspaceFolder}/mlx_models/whisper-medium-mlx",
"--train",
"--adapter-file", "${workspaceFolder}/lora_adapters_whisper_with_telugu.npz",
"--hf-dataset", "mozilla-foundation/common_voice_16_1",
"--hf-dataset-lang", "te",
"--batch-size", "2",
"--lora-layers", "2"
],
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Fuse & Save: Whisper Medium on Telugu using LoRA",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/lora/fuse.py",
"args": [
"--model", "${workspaceFolder}/mlx_models/whisper-medium-mlx",
"--adapter-file", "${workspaceFolder}/lora_adapters_whisper_with_telugu.npz",
"--save-path", "${workspaceFolder}/lora_fused_model_whisper_with_telugu"
],
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Transcribe: Telugu using Whisper Medium LoRA-Telugu",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/run_transcribe.py",
"args": [
"--audio", "${workspaceFolder}/whisper/assets/adityateluguthursday.m4a",
"--model", "${workspaceFolder}/lora_fused_model_whisper_with_telugu",
],
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Python: Attach using Process Id",
"type": "python",
"request": "attach",
"processId": "${command:pickProcess}",
"justMyCode": true
},
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true
}
]
}