THUDM / GLM-4-Voice

GLM-4-Voice | 端到端中英语音对话模型
Apache License 2.0
2.22k stars 178 forks source link

error: with prompt: 介绍下大熊猫 #39

Closed wonderisland closed 2 weeks ago

wonderisland commented 2 weeks ago

Generating with prompt: <|system|> User will provide you with a text instruction. Do it step by step. First, think about the instruction and respond in a interleaved manner, with 13 text token followed by 26 audio tokens.<|user|> 介绍下大熊猫<|assistant|>streaming_transcription

thread '' panicked at 'index out of bounds: the len is 187 but the index is 187', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-1.8.1/src/dfa.rs:1415:45 stack backtrace: 0: rust_begin_unwind at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:579:5 1: core::panicking::panic_fmt at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/panicking.rs:64:14 2: core::panicking::panic_bounds_check at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/panicking.rs:159:5 3: regex::re_unicode::Regex::find_at 4: fancy_regex::Regex::find_from_pos_with_option_flags 5: fancy_regex::Regex::find_from_pos 6: _tiktoken::CoreBPE::_encode_native 7: pyo3::marker::Python::allow_threads 8: _tiktoken::CoreBPE::encode 9: std::panicking::try 10: tiktoken::::::pymethod_encode 11: 12: _PyEval_EvalFrameDefault 13: _PyFunction_Vectorcall 14: _PyEval_EvalFrameDefault 15: _PyFunction_Vectorcall 16: _PyEval_EvalFrameDefault 17: 18: _PyEval_EvalFrameDefault 19: _PyFunction_Vectorcall 20: _PyEval_EvalFrameDefault 21: 22: PyObject_Call 23: _PyEval_EvalFrameDefault 24: 25: PyObject_Call 26: _PyEval_EvalFrameDefault 27: 28: PyObject_Call 29: _PyEval_EvalFrameDefault 30: _PyFunction_Vectorcall 31: _PyObject_FastCallDictTstate 32: _PyObject_Call_Prepend 33: 34: _PyObject_MakeTpCall 35: _PyEval_EvalFrameDefault 36: 37: 38: 39: _PyEval_EvalFrameDefault 40: 41: _PyEval_EvalFrameDefault 42: 43: 44: _PyEval_EvalFrameDefault 45: _PyFunction_Vectorcall 46: 47: 48: 49: _PyEval_EvalFrameDefault 50: _PyFunction_Vectorcall 51: _PyEval_EvalFrameDefault 52: _PyFunction_Vectorcall 53: _PyEval_EvalFrameDefault 54: 55: 56: 57: 58: clone note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace. ERROR: Exception in ASGI application Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 259, in call__ await wrap(partial(self.listen_for_disconnect, receive)) File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 255, in wrap await func() File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 232, in listen_for_disconnect message = await receive() File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/h11_impl.py", line 534, in receive await self.message_event.wait() File "/usr/lib/python3.10/asyncio/locks.py", line 214, in wait await fut asyncio.exceptions.CancelledError: Cancelled by cancel scope 7f5b146d2320

During handling of the above exception, another exception occurred:

wonderisland commented 2 weeks ago

tiktoken package version is too old, update it