mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
fix web demo with new multi-lora interface
This commit is contained in:
parent
3ae4cb57ce
commit
dfee685678
1 changed files with 3 additions and 0 deletions
|
|
@ -652,6 +652,9 @@ def chat():
|
|||
outputs = modulated_model.generate_with_multi_loras(
|
||||
ctx_ids=ctx_ids,
|
||||
ctx_attn_mask=ctx_attn_mask,
|
||||
n_ctx_chunks=torch.tensor(
|
||||
[len(ctx_ids)], device=ctx_ids.device
|
||||
),
|
||||
input_ids=model_inputs,
|
||||
max_new_tokens=512,
|
||||
do_sample=False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue