HotPanda
HotPanda
in function train, ```outputs = model(input_ids = ids, attention_mask = mask, decoder_input_ids=y_ids, lm_labels=lm_labels)```. param `lm_labels` should be labels in new version of transformers
### Current Behavior from gptcache.adapter.langchain_models import LangChainChat Traceback (most recent call last): File "/home/ld/miniconda3/envs/llm/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/ld/miniconda3/envs/llm/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals)...
``` #### 1 def process_item(self, item, spider): name = item.collection self.db[name].insert(dict(item)) return item #### 2 def process_item(self, item, spider): name = item.collection self.db[name].insert_one(dict(item)) return item ``` in MongoPipeline code 1...
在workflow的第二个例子代码中,condition判断的lambda处有问题,应该是两个入参,例子中只给了一个,导致代码无法运行 ``` workflow.chunks["Start"].connect_to(workflow.chunks["User Input"]) ( workflow.chunks["User Input"].handle("user_input") .if_condition(lambda data: data == "#exit").connect_to(workflow.chunks["Goodbye"]) .else_condition().connect_to(workflow.chunks["Assistant Reply"].handle("user_input")) ) ``` 应该改成 ``` workflow.chunks["Start"].connect_to(workflow.chunks["User Input"]) ( workflow.chunks["User Input"].handle("user_input") .if_condition(lambda data, _: data == "#exit").connect_to(workflow.chunks["Goodbye"]) .else_condition().connect_to(workflow.chunks["Assistant...