gpt_academic/request_llms
binary-husky fc06be6f7a
support qwen3 models
2025-04-29 11:09:53 +08:00
..
embed_models add milvus vector store 2024-09-08 15:19:03 +00:00
README.md re-format code to with pre-commit 2023-12-31 19:30:32 +08:00
bridge_all.py support qwen3 models 2025-04-29 11:09:53 +08:00
bridge_chatglm.py merge frontier branch (#1620) 2024-03-11 17:26:09 +08:00
bridge_chatglm3.py Add ChatGLM4 local deployment support and refactor ChatGLM bridge's path configuration (#2062) 2024-12-07 23:43:51 +08:00
bridge_chatglm4.py Add ChatGLM4 local deployment support and refactor ChatGLM bridge's path configuration (#2062) 2024-12-07 23:43:51 +08:00
bridge_chatglmft.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_chatglmonnx.py merge frontier branch (#1620) 2024-03-11 17:26:09 +08:00
bridge_chatgpt.py 阿里云百炼(原灵积)增加对deepseek-r1、deepseek-v3模型支持 (#2182) 2025-03-25 00:11:55 +08:00
bridge_chatgpt_vision.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_claude.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_cohere.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_deepseekcoder.py minor bug fix 2025-02-09 19:33:02 +08:00
bridge_google_gemini.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_internlm.py Merge Latest Frontier (#1991) 2024-10-05 17:09:18 +08:00
bridge_jittorllms_llama.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_jittorllms_pangualpha.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_jittorllms_rwkv.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_llama2.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_moonshot.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_moss.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_newbingfree.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_ollama.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_openrouter.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_qianfan.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_qwen.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_qwen_local.py merge frontier branch (#1620) 2024-03-11 17:26:09 +08:00
bridge_skylark2.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_spark.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_stackclaude.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_taichu.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_tgui.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
bridge_zhipu.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
chatglmoonx.py merge frontier branch (#1620) 2024-03-11 17:26:09 +08:00
com_google.py 修复Gemini对话错误问题(停用词数量为0的情况) (#2092) 2024-12-28 23:22:10 +08:00
com_qwenapi.py 阿里云百炼(原灵积)增加对deepseek-r1、deepseek-v3模型支持 (#2182) 2025-03-25 00:11:55 +08:00
com_skylark2api.py Merge Latest Frontier (#1991) 2024-10-05 17:09:18 +08:00
com_sparkapi.py Merge Latest Frontier (#1991) 2024-10-05 17:09:18 +08:00
com_taichu.py Merge Latest Frontier (#1991) 2024-10-05 17:09:18 +08:00
com_zhipuglm.py Merge Latest Frontier (#1991) 2024-10-05 17:09:18 +08:00
edge_gpt_free.py format source code 2024-01-13 18:04:09 +08:00
key_manager.py merge frontier branch (#1620) 2024-03-11 17:26:09 +08:00
local_llm_class.py typo: Fix typos and rename functions across multiple files (#2130) 2025-03-02 02:16:10 +08:00
oai_std_model_template.py 添加接入 火山引擎在线大模型 内容的支持 (#2165) 2025-03-04 23:58:03 +08:00
queued_pipe.py 解除本地模型的若干并发问题 2023-10-31 20:37:07 +08:00
requirements_chatglm.txt re-format code to with pre-commit 2023-12-31 19:30:32 +08:00
requirements_chatglm4.txt Add ChatGLM4 local deployment support and refactor ChatGLM bridge's path configuration (#2062) 2024-12-07 23:43:51 +08:00
requirements_chatglm_onnx.txt 修复protobuf版本错误 2023-12-14 11:00:55 +08:00
requirements_jittorllms.txt re-format code to with pre-commit 2023-12-31 19:30:32 +08:00
requirements_moss.txt re-format code to with pre-commit 2023-12-31 19:30:32 +08:00
requirements_newbing.txt rename folder 2023-10-28 17:44:17 +08:00
requirements_qwen.txt re-format code to with pre-commit 2023-12-31 19:30:32 +08:00
requirements_qwen_local.txt re-format code to with pre-commit 2023-12-31 19:30:32 +08:00
requirements_slackclaude.txt re-format code to with pre-commit 2023-12-31 19:30:32 +08:00

README.md

P.S. 如果您按照以下步骤成功接入了新的大模型欢迎发Pull Requests如果您在自己接入新模型的过程中遇到困难欢迎加README底部QQ群联系群主

如何接入其他本地大语言模型

  1. 复制request_llms/bridge_llama2.py,重命名为你喜欢的名字

  2. 修改load_model_and_tokenizer方法加载你的模型和分词器去该模型官网找demo复制粘贴即可

  3. 修改llm_stream_generator方法定义推理模型去该模型官网找demo复制粘贴即可

  4. 命令行测试

    • 修改tests/test_llms.py(聪慧如您,只需要看一眼该文件就明白怎么修改了)
    • 运行python tests/test_llms.py
  5. 测试通过后,在request_llms/bridge_all.py中做最后的修改,把你的模型完全接入到框架中(聪慧如您,只需要看一眼该文件就明白怎么修改了)

  6. 修改LLM_MODEL配置,然后运行python main.py,测试最后的效果

如何接入其他在线大语言模型

  1. 复制request_llms/bridge_zhipu.py,重命名为你喜欢的名字

  2. 修改predict_no_ui_long_connection

  3. 修改predict

  4. 命令行测试

    • 修改tests/test_llms.py(聪慧如您,只需要看一眼该文件就明白怎么修改了)
    • 运行python tests/test_llms.py
  5. 测试通过后,在request_llms/bridge_all.py中做最后的修改,把你的模型完全接入到框架中(聪慧如您,只需要看一眼该文件就明白怎么修改了)

  6. 修改LLM_MODEL配置,然后运行python main.py,测试最后的效果