kenney-fans

Results 6 issues of kenney-fans

使用‘pytorch_infer.py’和在线测试的结果不一样,请问是两者的模型不同吗?

the version of torch must >=1.1.0 when run on gpu? with torch=0.4.0(cuda=0.8.61) ,I made an error 'Aborted(core dump)' but on cpu is well

I run the model on P40 to make inferences,it will consume 50%+ CPU resources when start 4 processes. I found the reason for the problem is to process the pictures...

对话型应用中,聊天界面中如何清除聊天界面左侧历史会话列表 ![image](https://github.com/langgenius/dify/assets/5812332/4e994a80-f968-470b-a164-544b7daad85f) 随着自己不断新建会话或者分享给其他人使用时,这个列表会一直累积,显得有点乱。 另外当前通过分享链接打开会携带历史会话信息,这个是否可以在分享时增加一个是否携带历史会话记录的选项(在一些场景下可能体验会更好些)。

enhancement

dataset.py中的batchify似乎不是绝对的Whole Word Masking吧?首先是选择分词结果中的15%的词作为mask对象,然后对于选中的词的每个字概率性选择替换、保留或mask,所以也有概率一个词的部分被mask,部分被替换或保留吧,源代码如下图,不知是不是我的理解有误 ![image](https://user-images.githubusercontent.com/5812332/92727943-82077600-f3a2-11ea-9f04-01c4c0532c97.png) 结果如下 ![image](https://user-images.githubusercontent.com/5812332/92727771-3d7bda80-f3a2-11ea-9499-864f08a2c3cd.png)