13 款最佳开源 ChatGPT 替代品
ChatGPT
![](/data/attachment/album/202401/13/111931vcvcn538l3gk9nkk.jpg)



> 
> 正在寻找开源的 ChatGPT 替代方案？我们已经为你挑选了最优选项，供你一览。
> 
> 
> 


ChatGPT 是 OpenAI 推出的一个强大的生成式 AI 工具。你只需要以对话形式键入文本提示，它就会给出详细的回应。


虽然它并非无懈可击，但无可否认，有时它表现得就是那么得力。然而，无论你如何利用它，不可更改的事实是，它并非开源方案。


作为一种专用选项，它并非在所有方面都有优势。那么，何处可以寻找 ChatGPT 的开源替代品呢？让我为你揭晓自然开源的优秀 ChatGPT 替代方案。



> 
> ? 并非所有 ChatGPT 的替代品都有统一的运作方式。有些是为开发者设计的，让他们在其上打造属于自己的聊天机器人。还有一些则提供了供你测试使用的机器人或演示。
> 
> 
> 


### 搜寻开源 ChatGPT 替代品的理由


依赖任何单一的服务对消费者来说都不是好事。对于 ChatGPT 来说也是如此。


除此之外，以下是我们需要寻找开源 ChatGPT 替代品的原因：


* 掌握我们的数据处理方式，实现透明化。
* 可以选择自己构建解决方案，节省了成本。
* 按需定制 ChatGPT 替代方案。
* 你不再受制于某个公司的规定。开源解决方案可以根据您的需求灵活变化。
* 对开源项目的贡献会对全球每个人产生影响。


我并不是在此表明 ChatGPT 的功能不足，或者你应当放弃使用。然而，以“我们”用户的角度来看，长期而言，更应该从开源的替代品中获得更多收益。


现在，就让我们开始探寻最佳开源的 ChatGPT 方案吧。



> 
> ❌ 并非所有的选项都可用于商业用途。你需要特别留意使用某些机器人时的相关规定。
> 
> 
> 


### 1、OpenChatKit


![](/data/attachment/album/202401/13/112002jdidgtfjnqjftqhi.jpg)


[OpenChatKit](https://huggingface.co/spaces/togethercomputer/OpenChatKit) 是由 [Together](https://www.together.ai/) 开发的全功能 ChatGPT 替代品。


该公司起初与 **LAION**（主导了 <ruby> <a href="https://github.com/Stability-AI/stablediffusion">  稳定扩散 </a> <rt>  Stable Diffusion </rt></ruby>）等研究机构共同合作，构建出一个训练数据集。在撰写本文时，它搭载了 [RedPajama 模型](https://www.together.ai/blog/redpajama-7b)，这是目前最大的开源 AI 模型之一。


你可以试验看看它是否适合你的使用需求，并在其 [GitHub 页面](https://github.com/togethercomputer/OpenChatKit) 进一步探索更多技术细节。


### 2、ChatRWKV


![](/data/attachment/album/202401/13/112003ls71ss8j2qkqn8n6.jpg)


ChatRWKV 是由 <ruby> 循环神经网络 <rt>  Recurrent Neural Network </rt></ruby>（RNN） 语言模型驱动的开源替代品。


你可以在 [Huggingface](https://huggingface.co/spaces/BlinkDL/RWKV-Gradio-2) 发现它的演示。 [GitHub 页面](https://github.com/BlinkDL/ChatRWKV) 列出了关于其代码库、技术细节，以及最新版本预览的所有信息。


开发者和商业公司都可以利用 ChatRWKV 构建他们的聊天机器人。


### 3、ColossalChat


![](/data/attachment/album/202401/13/112003q086mh6lkmm4r4lt.jpg)


Colossal AI 是一个开源项目，目标是帮助你克隆 AI 模型，并打造出满足你需求的 ChatGPT 类似的平台。


[ColossalChat](https://chat.colossalai.org/) 是以此项目为基础打造的聊天机器人。然而遗憾的是，在本文撰写之时，它的演示暂未上线。


你可以在 [GitHub](https://github.com/hpcaitech/ColossalAI/tree/main/applications/Chat) 上探索其源代码。


### 4、KoboldAI


KoboldAI 是一个类似于 ChatGPT 的 AI，主要以浏览器前端的形式为写作提供辅助。虽然它具备聊天机器人模式，但它首要的设计目标是作为专为小说设计的 AI 写作助手。


提供了各种各样的模型，你可以在 [Google Colab](https://colab.research.google.com/?utm_source=scs-index) 上轻松运行它。


它支持各种模式来优化你的写作，让你有更大的发挥空间。你可以在其 [GitHub 页面](https://github.com/KoboldAI/KoboldAI-Client) 中详细了解它的所有信息。


### 5、GPT4ALL


GPT4ALL 是一个令人感兴趣的开源项目，旨在为你提供可在任何地方运行的聊天机器人。


没错，你可以在自己的 CPU 上本地运行它，而且几乎所有其他型号的 GPU 都能支持。


你需要做的就是安装它的桌面应用程序（聊天客户端），然后就能开始使用了。如果对其制作过程感兴趣，可以查看其 [GitHub 页面](https://github.com/nomic-ai/gpt4all)。


### 6、HuggingChat


![](/data/attachment/album/202401/13/112003qnlsa4jp0j3pc3ck.jpg)


听起来熟悉吗？嗯，Huggingface 的平台被其他 AI 模型和聊天机器人用作展示他们的演示。


HuggingChat 正是 Huggingface 打造的开源的 ChatGPT 替代品，使用了社区中最优秀的 AI 模型来实现聊天机器人的功能。


你可以 [尝试一下](https://huggingface.co/spaces/huggingchat/chat-ui)，并在 [源代码](https://huggingface.co/spaces/huggingchat/chat-ui/tree/main) 中深入探讨更多细节。如果有特别的需求，可以选择搭配不同的后端来使用聊天应用。


### 7、Koala


EasyLM 的研发成果 Koala 是一款可尝试本地运行的聊天机器人，整个架构基于 LLaMA 数据集完成。


你可以参阅其 [官方博客](https://bair.berkeley.edu/blog/2023/04/03/koala/) 来深入了解细节。


目前，演示版本还未上线，但是，你可以参考其 [文档](https://github.com/young-geng/EasyLM/blob/main/docs/koala.md) 在本地部署，进行试运行并测试。


### 8、Vicuna


![](/data/attachment/album/202401/13/112003lcy00tnlntxlyycz.jpg)


Vicuna 是另一款开源聊天机器人，训练基础依然是 LLaMA。根据开发者的说法，使用 GPT-4 作为评价标准，得出的结论是 Vicuna 的聊天体验接近 ChatGPT。


这是一个你可能想要验证的有趣声明。你可以选择 Vicuna 作为语言模型，并在 [Chatbot Arena](https://chat.lmsys.org/) 进行尝试。


想要了解更多关于它的信息，你可以查阅其 [官方博文](https://lmsys.org/blog/2023-03-30-vicuna/)。


### 9、Alpaca-LoRA


Alpaca-LoRA 雄心勃勃，旨在使用低秩适应技术提供一种可在树莓派中运行的模型。


利用单个 RTX 4090 GPU，整个模型可在几小时之内完成训练。


此时，演示版本仍然未开放，但你可以在其 [GitHub 页面](https://github.com/tloen/alpaca-lora) 上寻找更多详情。


### 10、Dolly


![](/data/attachment/album/202401/13/112003w6lmn0fbm399xxgl.jpg)


Dolly 是另一个在 Databricks 机器学习平台上训练的语言模型，并已获得商业使用许可。


你可以在 [GitHub](https://github.com/databrickslabs/dolly) 上查阅源代码，并在 [Huggingface](https://huggingface.co/databricks/dolly-v2-12b) 上探究模型详情。


### 11、H2oGPT


![](/data/attachment/album/202401/13/112004l39m1qww3qf89qrl.jpg)


H2oGPT 是专门为查询定制的，可以帮助你总结文档。在保证隐私的前提下，它允许你通过用户界面上传和查看文档。


同样，你可以像使用 ChatGPT 那样开始对话。对于 Windows 和 macOS，该项目提供了易于安装的程序。对于 Linux 系统，你可能需要通过 Docker 进行些许设置。


可以尝试该聊天机器人的 [在线演示](https://huggingface.co/spaces/h2oai/h2ogpt-chatbot2) 来了解其运行情况，并在 [GitHub 页面](https://github.com/h2oai/h2ogpt) 查阅源代码。


### 12、Cerebras-GPT


![](/data/attachment/album/202401/13/112004u3z8ux89x3px9xae.jpg)


Cerebras-GPT 呈现了通过大量参数训练的开源 GPT 类似模型。


它并没有提供聊天机器人服务。它的目标旨在提供精准且高效的开源模型供你使用。


获取模型详情，你可以访问 [Hugging Face](https://huggingface.co/cerebras/Cerebras-GPT-6.7B)。


### 13、OpenAssistant


OpenAssistant 的目标，是让每一个人都能访问类似于 ChatGPT 的聊天机器人。


有一段时间，他们通过演示版本收集了用户数据。现在，由于项目已由创作者标记为完成，演示版本不再开放。


但你可以利用该项目的成果，及其 [源代码](https://github.com/LAION-AI/Open-Assistant?tab=readme-ov-file#how-to-try-it-out)，在此基础上进行扩展。


### 总结


面向用户和开发者，ChatGPT 的开源替代品提供了各种各样的优点。你可以选择运用一个开源的聊天机器人，或者借助开源语言模型构建一个属于自己的聊天机器人。


无论你选择哪一个，只要遵守可用语言模型的政策，你都可以自由地修改和使用它以满足你的需求。


你最爱哪个开源的 ChatGPT 替代品呢？是否还有其他优秀的开源型 ChatGPT 项目，我们错过了但你特别喜欢的？请在下方评论区告诉我们你的想法。


*（题图：DA/b757432f-56a4-4493-a109-1eca6c57c1fc）*




---


via: <https://itsfoss.com/open-source-chatgpt-alternatives/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[ChatGPT](https://linux.cn/lctt/ChatGPT) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

ChatGPT is a powerful generative AI tool developed by OpenAI. You enter text prompts in a conversational way, and it gives you a detailed response.

Sure, it is not perfect. But, sometimes it is incredibly helpful. No matter what you do with it, unfortunately, it is not an open-source solution.

As a proprietary option, it isn't beneficial in every way. So, what are some open source ChatGPT alternatives? Here, let me highlight the best ChatGPT alternatives that are open-source in nature.

## Reasons to Look for Open-Source ChatGPT Alternatives

Relying on any single service is bad for the consumers. The same goes for ChatGPT.

In addition to that, here's why we should look for open ChatGPT alternatives:

- Get transparency on how our data is being handled.
- You can choose to build your own solution, saving money in the process.
- Customize the ChatGPT alternative as per your requirements.
- You are not locked on to the policies of a single company. The open-source solution can be flexible as per your needs.
- Contributions to the open-source project will make an impact on everyone across the globe.

I do not intend to say that ChatGPT is bad, or you should stop using it. However, "we" as the users should benefit more from the open alternatives in the long-run.

Now, let us move on to the best open-source ChatGPT alternatives.

## 1. OpenChatKit

![openchatkit](https://itsfoss.com/content/images/2024/01/openchatkit-screenshot.jpg)

[OpenChatKit](https://huggingface.co/spaces/togethercomputer/OpenChatKit) is a full-fledged ChatGPT alternative developed by [Together](https://www.together.ai/).

The company initially collaborated with research organizations like **LAION** (responsible for [ Stable Diffusion](https://github.com/Stability-AI/stablediffusion?ref=news.itsfoss.com)) to create a training dataset. When writing this, it uses the

[RedPajama model](https://www.together.ai/blog/redpajama-7b), one of the largest open-source AI models.

You can try if it fits your use-cases and explore its [GitHub page](https://github.com/togethercomputer/OpenChatKit?ref=news.itsfoss.com) for technical details.

## 2. ChatRWKV

![chatrwkv screenshot](https://itsfoss.com/content/images/2024/01/chatrwkv.jpg)

ChatRWKV is an open-source alternative powered by an RNN (Recurrent Neural Network) language model.

You can find a demo of it on [Huggingface](https://huggingface.co/spaces/BlinkDL/RWKV-Gradio-2). The [GitHub page](https://github.com/BlinkDL/ChatRWKV) mentions all about its repository, technical details, and the latest version preview.

Developers and businesses can build their chatbots utilizing ChatRWKV.

## 3. ColossalChat

![colossalchat](https://itsfoss.com/content/images/2024/01/colossalchat.jpg)

Colossal AI is an open-source initiative to help you clone AI models and build ChatGPT-like platforms for your requirements.

[ColossalChat](https://chat.colossalai.org) is the chatbot leveraging the project. Unfortunately, the demo is not functional when writing this.

You can explore its source code on [GitHub](https://github.com/hpcaitech/ColossalAI/tree/main/applications/Chat).

## 4. KoboldAI

A ChatGPT-like AI for assisted writing in the form of a browser-based front-end. While it supports a chatbot mode, it is primarily designed as an AI assistant for writing geared towards Novels.

There are various models available, and you can run it on [Google Colab](https://colab.research.google.com/?utm_source=scs-index) easily.

It supports different modes to optimize your writing and play with it. You can explore all about it on its [GitHub page](https://github.com/KoboldAI/KoboldAI-Client).

## 5. GPT4ALL

GPT4all is an interesting open-source project that aims to provide you with chatbots that you can run anywhere.

Yes, you can run it locally on your CPU and supports almost every other GPU.

All you need to do is install its desktop application (the chat client), and get started. Want to learn how it's made? Check out its [GitHub page](https://github.com/nomic-ai/gpt4all).

## 6. HuggingChat

![huggingchat screenshot](https://itsfoss.com/content/images/2024/01/huggingchat.jpg)

Sounds familiar? Well, Huggingface's platform is used by other AI models and chatbots to showcase a demo.

And, HuggingChat is its take on a ChatGPT alternative, which is open-source. It makes use of the community's best AI models to make the chatbot work.

You can [take it for a spin](https://huggingface.co/spaces/huggingchat/chat-ui), and explore the [source code](https://huggingface.co/spaces/huggingchat/chat-ui/tree/main) for more details. One can choose to use the chat application with a different back-end to meet specific requirements.

## 7. Koala

Koala by [EasyLM](https://github.com/young-geng/EasyLM#koala) is a chatbot that you can try running locally. It is built on top of LLaMA dataset.

You can refer to its [official blog post](https://bair.berkeley.edu/blog/2023/04/03/koala/) to explore the intriguing details.

The demo is not available at the moment. However, you can follow its [documentation](https://github.com/young-geng/EasyLM/blob/main/docs/koala.md) to try running it locally and test it out.

## 8. Vicuna

![vicuna chatbot](https://itsfoss.com/content/images/2024/01/vicuna.jpg)

Vicuna is yet another open-source chatbot trained on top of LLaMA. As per the developers, when evaluated using GPT-4 as a judge, it concluded that it comes close to the quality of ChatGPT.

An interesting claim that you might want to test against. You can select the language model Vicuna and try it on [Chatbot Arena](https://chat.lmsys.org).

Explore more about it on its [official blog post](https://lmsys.org/blog/2023-03-30-vicuna/).

## 9. Alpaca-LoRA

Alpaca-Lora aims to provide an instruct model using low-rank adaptation, letting you run it on a Raspberry Pi.

The entire model can be trained using a single RTX 4090 GPU in a few hours.

At the time, the demo was not working. You can explore all about it on its [GitHub page](https://github.com/tloen/alpaca-lora).

## 10. Dolly

![dolly source code](https://itsfoss.com/content/images/2024/01/dolly-huggingface.jpg)

Dolly is another language model trained in the Databricks machine learning platform licensed for commercial use.

You can take a look at the source code on [GitHub](https://github.com/databrickslabs/dolly) and explore the model on [Huggingface](https://huggingface.co/databricks/dolly-v2-12b).

## 11. H2oGPT

![h20gpt](https://itsfoss.com/content/images/2024/01/h2ogpt.jpg)

H2oGPT is tailored for queries to help you summarize your documents. To achieve that, it lets you upload and view documents through its user interface, which is private to you.

You can also initiate a conversation like ChatGPT. There are easy installers available for Windows, and macOS. A little more effort needed using Docker to set it up on a Linux machine.

You can try the [live demo](https://huggingface.co/spaces/h2oai/h2ogpt-chatbot2) of the chatbot to get an idea and explore the source code on its [GitHub page](https://github.com/h2oai/h2ogpt).

## 12. Cerebras-GPT

![cerebrasgpt](https://itsfoss.com/content/images/2024/01/cerebras.jpg)

Cerebras-GPT offers open-source GPT-like models trained using a massive number of parameters.

It does not offer a chatbot. They only aim to provide open-source models that you can use for better accuracy and compute efficiency.

You can get the model details on [Hugging Face](https://huggingface.co/cerebras/Cerebras-GPT-6.7B).

## 13. OpenAssistant

OpenAssistant was a project to give everyone access to a chatbot like ChatGPT.

For a while, they collected data from users using a demo. Now, the demo is no longer functional as the project was marked complete by the creator.

You can utilize the project's progress and the [source](https://github.com/LAION-AI/Open-Assistant?tab=readme-ov-file#how-to-try-it-out) to build on it.

**Suggested Read 📖**

[7 Tips and Tools to Improve Your Gaming Experience on LinuxHere are the best tips to make your Linux gaming experience enjoyable.](https://itsfoss.com/linux-gaming-tips/)![](https://itsfoss.com/content/images/2024/01/tips-to-enhance-linux-gaming.png)


![](https://itsfoss.com/content/images/2024/01/tips-to-enhance-linux-gaming.png)

## Wrapping Up

ChatGPT's open-source alternatives offer various benefits to users and developers. You can choose to use an open-source chatbot or an open-source language model to build one for your business.

No matter what you pick, you are free to modify and use it as per your requirements, keeping the policies in mind for available language models.

*What is your favorite open-source ChatGPT alternative? Did we miss listing any of your favorite open ChatGPT projects? Let us know your thoughts in the comments down below.*