Skip to content

Question: Diarization seems excessively slow #326

Description

@logiclove

Adding diarization change the performance from 70x to 26.3x realtime. Is this normal ?

  • Logs
crispasr      | crispasr-server: transcribed 2888.2s audio in 109.93s (26.3x realtime), format=verbose_json
  • Settings used:
CRISPASR_MODEL: ${CRISPASR_MODEL:-/models/cohere-transcribe.gguf}
CRISPASR_BACKEND: ${CRISPASR_BACKEND:-cohere}
CRISPASR_LANGUAGE: ${CRISPASR_LANGUAGE:-auto}
CRISPASR_EXTRA_ARGS: ${CRISPASR_EXTRA_ARGS:---vad --frequency-penalty 0.85 
  -t 12
  --lcs-dedup on --lcs-min-length 4 --split-on-punct  --lid-backend silero 
  --diarize --diarize-method pyannote --sherpa-segment-model auto 
  --diarize-embedder auto --diarize-cluster-threshold 0.5 --diarize-max-speakers 4 }
  • Hardware
    lscpu
Architecture:                x86_64
  CPU op-mode(s):            32-bit, 64-bit
  Address sizes:             48 bits physical, 48 bits virtual
  Byte Order:                Little Endian
CPU(s):                      24
  On-line CPU(s) list:       0-23
Vendor ID:                   AuthenticAMD
  Model name:                AMD Ryzen 9 9900X 12-Core Processor
    CPU family:              26
    Model:                   68
    Thread(s) per core:      2
    Core(s) per socket:      12
    Socket(s):               1
    Stepping:                0
    Frequency boost:         enabled
    CPU(s) scaling MHz:      32%
    CPU max MHz:             5662.0161
    CPU min MHz:             613.9540
    BogoMIPS:                8782.91
    Flags:                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good amd_lbr_v2 nopl xtopology nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm e
                             xtapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpuid_fault cpb cat_l3 cdp_l3 hw_pstate ssbd mba perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clw
                             b avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local user_shstk avx_vnni avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512
                             vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid bus_lock_detect movdiri movdir64b overflow_recov succor smca fsrm avx512_vp2intersect flush_l1d amd_lbr_pmc_freeze

amd-smi

+------------------------------------------------------------------------------+
| AMD-SMI            26.5.0+2b22ab01                                           |
| amdgpu Version:    6.19.14.31400000                                          |
| ROCm Version:      7.14.0                                                    |
| VBIOS Version:     00131149                                                  |
| Platform:          Linux Baremetal                                           |
|-------------------------------------+----------------------------------------|
| BDF                        GPU-Name | Mem-Uti   Temp   UEC       Power-Usage |
| GPU  HIP-ID  OAM-ID  Partition-Mode | GFX-Uti    Fan               Mem-Usage |
|=====================================+========================================|
| 0000:03:00.0  AMD Radeon RX 9070 XT | 0 %      36 °C   0            37/317 W |
|   0       0     N/A             N/A | 7 %      0.0 %             57/16304 MB |
|-------------------------------------+----------------------------------------|

Compile cli:

RUN git clone https://github.com/CrispStrobe/CrispASR . && git checkout v0.8.24
RUN git submodule update --init --recursive
RUN cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_VULKAN=1 -DCRISPASR_BUILD_TESTS=OFF -DCRISPASR_FFMPEG=ON
RUN cmake --build build -j"$(nproc)" --target crispasr-cli

Am I missing some critical flags?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions