mirror of
https://github.com/HKUDS/LightRAG.git
synced 2026-01-08 04:39:55 +00:00
Update token length
This commit is contained in:
parent
226f6f3d87
commit
87f8b7dba1
@ -268,7 +268,7 @@ async def hf_model_if_cache(
|
||||
).to("cuda")
|
||||
inputs = {k: v.to(hf_model.device) for k, v in input_ids.items()}
|
||||
output = hf_model.generate(
|
||||
**input_ids, max_new_tokens=200, num_return_sequences=1, early_stopping=True
|
||||
**input_ids, max_new_tokens=512, num_return_sequences=1, early_stopping=True
|
||||
)
|
||||
response_text = hf_tokenizer.decode(output[0][len(inputs["input_ids"][0]):], skip_special_tokens=True)
|
||||
if hashing_kv is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user