[doc] update docs/model_cookbook.md #2623
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes:
--max-decode-steps=128. Withoutmax-decode-stepsspecified, the command failed with the following error:Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/home/asuslov/projects/shark-ai/sharktank/sharktank/examples/paged_llm_v1.py", line 136, in <module> main() File "/home/asuslov/projects/shark-ai/sharktank/sharktank/examples/paged_llm_v1.py", line 130, in main results = decoder.greedy_decode(token_ids, args.max_decode_steps) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/asuslov/projects/shark-ai/sharktank/sharktank/utils/llm_utils.py", line 575, in greedy_decode page_ids = [ ^ File "/home/asuslov/projects/shark-ai/sharktank/sharktank/utils/llm_utils.py", line 576, in <listcomp> self._runner.allocate(token_count=len(req) + steps) for req in requests ~~~~~~~~~^~~~~~~ TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'--add-start-tokencli argument. mistral-7b-v0.1 requires start token, without it, the model cyclically returns the promt.:: Result: ['.\n\nWrite a story about a llama.\n\nWrite a story about a llama.\n\nWrite a story about a llama.\n\nWrite a story about a llama.\n\nWrite a story about a llama.\n\nWrite a story about a llama.\n\nWrite a story about a llama.\n\nWrite a story about a llama.\n\nWrite a story about a llama.\n\nWrite a story about a llama.\n\nWrite a story about a llama.\n\nWrite a story about a llama.\n\nWrite a story about a']