Update TypeBasedDispatcher and balance CI tests (#3001)
This commit is contained in:
2
.github/workflows/pr-test.yml
vendored
2
.github/workflows/pr-test.yml
vendored
@@ -52,7 +52,7 @@ jobs:
|
||||
runs-on: 1-gpu-runner
|
||||
strategy:
|
||||
matrix:
|
||||
range: [0-6, 6-15, 15-22, 22-32, 32-37, 37-100]
|
||||
range: [0-6, 6-15, 15-22, 22-32, 32-40, 40-100]
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
@@ -226,9 +226,10 @@ class TokenizerManager:
|
||||
|
||||
self._result_dispatcher = TypeBasedDispatcher(
|
||||
[
|
||||
(BatchStrOut, self._handle_batch_output),
|
||||
(BatchEmbeddingOut, self._handle_batch_output),
|
||||
(BatchTokenIDOut, self._handle_batch_output),
|
||||
(
|
||||
(BatchStrOut, BatchEmbeddingOut, BatchTokenIDOut),
|
||||
self._handle_batch_output,
|
||||
),
|
||||
(OpenSessionReqOutput, self._handle_open_session_req_output),
|
||||
(
|
||||
UpdateWeightFromDiskReqOutput,
|
||||
|
||||
Reference in New Issue
Block a user