You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'To'
' modify'
' below'
' `'
'HTML'
'`'
' to'
' `'
'{{'
thread '<unnamed>' panicked at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/vec/mod.rs:2207:36:
slice index starts at 18446744073709551615 but ends at 1
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::slice::index::slice_index_order_fail
3: tokenizers::decoders::PyDecodeStream::__pymethod_step__
4: pyo3::impl_::trampoline::trampoline
5: tokenizers::decoders::<impl pyo3::impl_::pyclass::PyMethods<tokenizers::decoders::PyDecodeStream> for pyo3::impl_::pyclass::PyClassImplCollector<tokenizers::decoders::PyDecodeStream>>::py_methods::ITEMS::trampoline
6: method_vectorcall_VARARGS_KEYWORDS
at /usr/local/src/conda/python-3.10.16/Objects/descrobject.c:344:14
7: _PyObject_VectorcallTstate
at /usr/local/src/conda/python-3.10.16/Include/cpython/abstract.h:114:11
8: PyObject_Vectorcall
at /usr/local/src/conda/python-3.10.16/Include/cpython/abstract.h:123:12
9: call_function
at /usr/local/src/conda/python-3.10.16/Python/ceval.c:5893:13
10: _PyEval_EvalFrameDefault
at /usr/local/src/conda/python-3.10.16/Python/ceval.c:4198:23
11: _PyEval_EvalFrame
at /usr/local/src/conda/python-3.10.16/Include/internal/pycore_ceval.h:46:12
12: _PyEval_Vector
at /usr/local/src/conda/python-3.10.16/Python/ceval.c:5067:24
13: PyEval_EvalCode
at /usr/local/src/conda/python-3.10.16/Python/ceval.c:1134:12
14: run_eval_code_obj
at /usr/local/src/conda/python-3.10.16/Python/pythonrun.c:1291:9
15: run_mod
at /usr/local/src/conda/python-3.10.16/Python/pythonrun.c:1312:19
16: PyRun_InteractiveOneObjectEx
at /usr/local/src/conda/python-3.10.16/Python/pythonrun.c:277
17: _PyRun_InteractiveLoopObject
at /usr/local/src/conda/python-3.10.16/Python/pythonrun.c:148
18: _PyRun_AnyFileObject
at /usr/local/src/conda/python-3.10.16/Python/pythonrun.c:84:15
19: PyRun_AnyFileExFlags
at /usr/local/src/conda/python-3.10.16/Python/pythonrun.c:116
20: pymain_run_stdin
at /usr/local/src/conda/python-3.10.16/Modules/main.c:506:15
21: pymain_run_python
at /usr/local/src/conda/python-3.10.16/Modules/main.c:598:21
22: Py_RunMain
at /usr/local/src/conda/python-3.10.16/Modules/main.c:674:5
23: Py_BytesMain
at /usr/local/src/conda/python-3.10.16/Modules/main.c:1094:12
24: <unknown>
25: __libc_start_main
26: <unknown>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
pyo3_runtime.PanicException: slice index starts at 18446744073709551615 but ends at 1
And I have another question. The token_ids above is for input. If I want to get the token in the generation phase, how should I do it?
Should I use a for loop and stream instance to iterate over input_ids or Is there a better way to achieve this?
The text was updated successfully, but these errors were encountered:
Hi, I was trying use the
DecodeStream
api but an error occured.Below is the reproduce code and error trace.
I test #1699 and the error seems fixed.
And I have another question. The token_ids above is for input. If I want to get the token in the generation phase, how should I do it?
Should I use a for loop and stream instance to iterate over input_ids or Is there a better way to achieve this?
The text was updated successfully, but these errors were encountered: