mirror of
https://github.com/huggingface/peft.git
synced 2025-10-20 15:33:48 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user