Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Openai] 兼容测试 #62

Closed
wants to merge 8 commits into from
Closed

[Openai] 兼容测试 #62

wants to merge 8 commits into from

Conversation

sudoskys
Copy link

@sudoskys sudoskys commented Dec 31, 2022

问题

  • 上下文计算需要NLP库,它引入了 transformersnltk,有点...大?
  • 记忆桶的存储方式

@sudoskys
Copy link
Author

有一个问题,记忆桶需要使用 redis 或者其他数据存储来记忆上下文,但是本项目中并没有 datautils
@lss233

@lss233
Copy link
Owner

lss233 commented Dec 31, 2022

体积方面已经摆烂了。 为了支持 ChatGPT,都已经塞了个 Chromium 进来了……

redis 这种独立的 db 可能不适合 Windows 用户,
可以试试体积比较小的 embedded db,比如说 yedb

@sudoskys sudoskys marked this pull request as ready for review December 31, 2022 15:40
@sudoskys
Copy link
Author

不具备环境,需要维护者执行相关测试和补全

@lss233
Copy link
Owner

lss233 commented Dec 31, 2022

好的,我会在补全之后合并进来。
新年快乐~

@sudoskys
Copy link
Author

sudoskys commented Jan 24, 2023

https://github.com/sudoskys/llm-kira

使用优化过的 llm 框架会很快,削减了 transformer ,而且可以不用 redis 也可以正常使用

@lss233
Copy link
Owner

lss233 commented Feb 15, 2023

有一个问题:

Collecting docopt<0.7,>=0.6.1
  Using cached docopt-0.6.2.tar.gz (25 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\lss23\AppData\Local\Temp\pip-install-zzx6i57z\docopt_40673fc7e5324a1dafd005d018063fc9\setup.py", line 3, in <module>
          from docopt import __version__
      ModuleNotFoundError: No module named 'docopt'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

不知道是谁依赖了这个东西,它需要从源码安装,但 embedded python 似乎做不了这种事情。

@sudoskys
Copy link
Author

好像是 sumy 库依赖了它。
相关
docopt/docopt#502

@sudoskys
Copy link
Author

着手解决中

@lss233
Copy link
Owner

lss233 commented Mar 2, 2023

为了更好地兼容此特性,一个重构正在进行中。 待重构完毕后,我们再来合并此PR。

@sudoskys
Copy link
Author

sudoskys commented Mar 2, 2023

llm-kira 基于抽象组合,已经实验性支持了 chatgpt chat api 并初步测试完毕

@sudoskys sudoskys closed this Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants