mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 12:01:54 +00:00
community[patch]: fix yuan2 errors in LLMs (#19004)
1. fix yuan2 errors while invoke Yuan2. 2. update tests.
This commit is contained in:
@@ -11,7 +11,6 @@ def test_yuan2_call_method() -> None:
|
||||
max_tokens=1024,
|
||||
temp=1.0,
|
||||
top_p=0.9,
|
||||
top_k=40,
|
||||
use_history=False,
|
||||
)
|
||||
output = llm("写一段快速排序算法。")
|
||||
@@ -25,7 +24,6 @@ def test_yuan2_generate_method() -> None:
|
||||
max_tokens=1024,
|
||||
temp=1.0,
|
||||
top_p=0.9,
|
||||
top_k=40,
|
||||
use_history=False,
|
||||
)
|
||||
output = llm.generate(["who are you?"])
|
||||
|
Reference in New Issue
Block a user