Fix grammar (#22457)
This commit is contained in:
parent
d9faf192a6
commit
ec4f36b015
|
|
@ -139,8 +139,8 @@ The optimized model can be saved as usual with a call to ``save_pretrained()``.
|
|||
with `GPTQ <https://github.com/PanQiWei/AutoGPTQ>`__. In this case, there is no need for an additional model optimization step because model conversion will automatically preserve the INT4 optimization results, allowing model inference to benefit from it.
|
||||
|
||||
Another optimization that is applied by default when using ``OVModelForCausalLM`` class is transformation of the model to a stateful form.
|
||||
This transformation further improves inference performance and decreases amount of allocated runtime memory in long running text generation scenarious.
|
||||
It is achieved by hiding inputs and outputs of the model that represent past KV-cache tensors, and handling them inside the model in a more efficient way.
|
||||
This transformation further improves inference performance and decreases amount of allocated runtime memory in long running text generation scenarios.
|
||||
It is achieved by hiding inputs and outputs of the model that represent past KV-cache tensors and handling them inside the model in a more efficient way.
|
||||
This feature is activated automatically for a wide range of supported text generation models, keeping not supported models in a regular, stateless form.
|
||||
|
||||
Model usage are identical for stateful and stateless models as long as Optimum-Intel API is used because KV-cache handling is an internal detail of the text-generation API of Transformers library.
|
||||
|
|
|
|||
Loading…
Reference in New Issue