Fix missing code start in docs (#2768)

There was a minor typo which a suggestion of PR #2609 which broke code formatting for one code sample.

This is a simple fix for that.
This commit is contained in:
githubnemo
2025-09-03 18:37:52 +02:00
committed by GitHub
parent 293aea5df6
commit de60e88b6b

View File

@ -248,7 +248,10 @@ output = model_alora.generate(**inputs_alora, past_key_values=cache)
output_text_alora = tokenizer.decode(output[0])
# Note: cache is now tainted with adapter values and cannot be used in base model from here on!
```
**Pattern 2: aLoRA generation followed by base model (or another aLoRA) with partial context overlap** Here, we prefill the shared context using the base model, and then generate.
```
from transformers import DynamicCache
import copy