feat: add llm_vllm_deepseek_ocr and llm_office_vllm_deepseek_ocr#205
feat: add llm_vllm_deepseek_ocr and llm_office_vllm_deepseek_ocr#205
Conversation
Signed-off-by: weedge <weege007@gmail.com>
Signed-off-by: weedge <weege007@gmail.com>
Signed-off-by: weedge <weege007@gmail.com>
Signed-off-by: weedge <weege007@gmail.com>
…coder) and DeepseekVLV2Processor) Signed-off-by: weedge <weege007@gmail.com>
Summary of ChangesHello @weedge, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the system's optical character recognition (OCR) capabilities by integrating Deepseek OCR models, leveraging vLLM for efficient inference. It introduces both a custom and an officially supported vLLM variant of Deepseek OCR, complete with robust vision encoding and image preprocessing pipelines. The changes also include a new testing task for the vision bot and updates to core interfaces to support asynchronous operations, ensuring a more performant and feature-rich multimodal experience. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds support for DeepSeek OCR models using vLLM, including both a custom implementation and the officially supported version. The changes are well-structured, primarily introducing new files for the model implementation and testing scripts. My review focuses on improving type safety and reducing code duplication for better maintainability. Overall, the changes look good and the new feature is a valuable addition.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…pi_webrtc_vision_bot_serve on modal Signed-off-by: weedge <weege007@gmail.com>
Signed-off-by: weedge <weege007@gmail.com>
Note
Gundam: base_size = 1024, image_size = 640, crop_mode = Truefeat:
daily_ocr_vllm_vision_bot.json
{ "chat_bot_name": "DailyOCRVisionBot", "handle_sigint": true, "is_background": false, "room_name": "chat-room", "room_url": "", "token": "", "services": {}, "config": { "vad": { "tag": "silero_vad_analyzer", "args": { "start_secs": 0.0, "stop_secs": 0.0, "confidence": 0.7, "min_volume": 0.6, "onnx": true } }, "asr": { "tag": "sense_voice_asr", "args": { "language": "zn", "model_name_or_path": "/root/.achatbot/models/FunAudioLLM/SenseVoiceSmall" } }, "vision_ocr": { "tag": "llm_vllm_deepseek_ocr", "args": { "serv_args": { "model": "/root/.achatbot/models/deepseek-ai/DeepSeek-OCR", "enforce_eager":false, "trust_remote_code":true, "max_model_len":8192, "tensor_parallel_size":1, "enable_prefix_caching":false, "gpu_memory_utilization": 0.75 } } }, "tts": { "tag": "tts_edge", "args": { "voice_name": "zh-CN-YunxiNeural", "language": "zh", "gender": "Male" } } }, "config_list": [] }reference
merge_by_field_config=Truewith tensor schema support vllm-project/vllm#27361