opea-project / GenAIComps

GenAI components at micro-service level; GenAI service composer to create mega-service
Apache License 2.0
47 stars 101 forks source link

[ASR Microservice] Incompatible parameters with LLM service for ASR Microservice #340

Closed zhlsunshine closed 1 month ago

zhlsunshine commented 1 month ago

This bug was found when validating the example of AudioQnA, the mega service orchestrates ASR and LLM microservices in this example in the pipeline. The example is okay for mega service pipeline in docker because mega service handle the pipeline data transformation, however, these microservices can not work well in Kubernetes due to the incompatible parameters between ASR and LLM microservices. Suggest that the microservices should follow the unification API definition in LLMParamsDoc in Mega service if they want to work with LLM service together.

Spycsh commented 1 month ago

Hi @zhlsunshine , https://github.com/opea-project/GenAIComps/pull/341 is already merged and you can use it directly on k8s :)

zhlsunshine commented 1 month ago

Hi @Spycsh, thanks so much, we would validate it, then close this issue if it's okay!

zhlsunshine commented 1 month ago

Hi @Spycsh and @lkk12014402, I updated the code from main branch of GenAIComps, then I deployed the AudioQnA example in my K8s cluster, however, I still get below error information:

Error pods: image

Error for whisper service: image

Error for speecht5 service: image

Not sure about that there may be necessary sync with OneClick team, @yongfengdu and @lianhao

lianhao commented 1 month ago

@zhlsunshine PR #406 change the in-container user from root to user with uid=1000. This could cause a file permission issue between old and new model data cache. Please go into your model data cache directory in your host, and do a chmod 777 to all the files under your model data cache dir.

zhlsunshine commented 1 month ago

Hi @lianhao, thanks for your replying, go for the help offline.

zhlsunshine commented 1 month ago

It's okay now, let me close this issue.