mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2025-09-06 20:49:55 +00:00
Update DeepseekR1_V3_tutorial.md
This commit is contained in:
parent
bd33a59ecf
commit
735873a32a
1 changed files with 3 additions and 0 deletions
|
@ -160,6 +160,7 @@ is speed up which is inspiring. So our showcase makes use of this finding*
|
|||
### V0.2.2 longer context & FP8 kernel
|
||||
#### longer context
|
||||
To use this feature, [install flashinfer](https://github.com/flashinfer-ai/flashinfer) first.
|
||||
|
||||
Note: The latest MLA kernel in FlashInfer still has a few minor issues. They are continuously fixing them on the main branch. If you are using FlashInfer, please install it from the main source code.
|
||||
|
||||
If you want to use long context(longer than 20K) for prefill, enable the matrix absorption MLA during the prefill phase, which will significantly reduce the size of the kv cache. Modify yaml file like this:
|
||||
|
@ -173,6 +174,8 @@ If you want to use long context(longer than 20K) for prefill, enable the matrix
|
|||
prefill_device: "cuda"
|
||||
absorb_for_prefill: True # change this to True to enable long context(prefill may slower).
|
||||
```
|
||||
|
||||
If the VRAM is still insufficient, try reducing the `chunk_prefill_size` parameter (default is 8192) to further decrease the intermediate results during chunk prefill.
|
||||
#### FP8 kernel
|
||||
|
||||
The DeepSeek-AI team provides FP8 safetensors for DeepSeek-R1/V3 models. We achieve performance optimization through the following works:
|
||||
|
|
Loading…
Add table
Reference in a new issue