mlboydaisuke commited on
Commit
7080fe1
·
verified ·
1 Parent(s): fe88109

Card: a conversation stops after a message that does not fit in the context window

Browse files
Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -145,6 +145,8 @@ Sample app (Android): [`android/`](https://huggingface.co/mlboydaisuke/Confucius
145
 
146
  From the second turn of a conversation on, LiteRT-LM puts the previous answer's stop token into the KV cache with a zero embedding, because this file holds the embedding table in its own section and the decoder takes embeddings, so later answers in a conversation can differ from the answer the model gives to the same messages in one prompt (read in the source of LiteRT-LM 0.16.0 to 0.18.1; measured with 0.18.1 on WeVisOne-VL-2B and Qwen2.5-Coder-1.5B-Instruct, not on this file). One question per conversation avoids it, as does a new conversation that starts with the earlier messages and the new question.
147
 
 
 
148
  ## License
149
 
150
  This file is a quantized Derivative Work of Confucius4-R2T2 and is distributed under the **NetEase Youdao Model Use License Agreement**. The agreement is included in this repository in English (`MODEL_LICENSE`) and Chinese (`MODEL_LICENSE_zh`); clause 9 makes the Chinese version prevail.
 
145
 
146
  From the second turn of a conversation on, LiteRT-LM puts the previous answer's stop token into the KV cache with a zero embedding, because this file holds the embedding table in its own section and the decoder takes embeddings, so later answers in a conversation can differ from the answer the model gives to the same messages in one prompt (read in the source of LiteRT-LM 0.16.0 to 0.18.1; measured with 0.18.1 on WeVisOne-VL-2B and Qwen2.5-Coder-1.5B-Instruct, not on this file). One question per conversation avoids it, as does a new conversation that starts with the earlier messages and the new question.
147
 
148
+ On LiteRT-LM 0.18.1 and 0.19.1, once a message fails because it does not fit in the context window, every later message in that conversation fails as well (the next one with `Task failed with state: 7`). Start a new conversation after such an error.
149
+
150
  ## License
151
 
152
  This file is a quantized Derivative Work of Confucius4-R2T2 and is distributed under the **NetEase Youdao Model Use License Agreement**. The agreement is included in this repository in English (`MODEL_LICENSE`) and Chinese (`MODEL_LICENSE_zh`); clause 9 makes the Chinese version prevail.