🔥 The first 7B model Achieves Comparable Results with ChatGPT (March)! 🔥
🤖 #1 Open-source model on MT-bench scoring 7.81, outperforming 70B models 🤖
OpenChat is an innovative library of open-source language models, fine-tuned with
C-RLFT
- a strategy inspired by offline reinforcement learning. Our models learn from mixed-quality data without preference labels, delivering exceptional performance on par with ChatGPT, even with a 7B model. Despite our simple approach, we are committed to developing a high-performance, commercially viable, open-source large language model, and we continue to make significant strides toward this vision.
Usage
To use this model, we highly recommend installing the OpenChat package by following the
installation guide
in our repository and using the OpenChat OpenAI-compatible API server by running the serving command from the table below. The server is optimized for high-throughput deployment using
vLLM
and can run on a consumer GPU with 24GB RAM. To enable tensor parallelism, append
--tensor-parallel-size N
to the serving command.
Once started, the server listens at
localhost:18888
for requests and is compatible with the
OpenAI ChatCompletion API specifications
. Please refer to the example request below for reference. Additionally, you can use the
OpenChat Web UI
for a user-friendly experience.
If you want to deploy the server as an online service, you can use
--api-keys sk-KEY1 sk-KEY2 ...
to specify allowed API keys and
--disable-log-requests --disable-log-stats --log-file openchat.log
for logging only to a file. For security purposes, we recommend using an
HTTPS gateway
in front of the server.
Example request (click to expand)
curl http://localhost:18888/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{ "model": "openchat_3.5", "messages": [{"role": "user", "content": "You are a large language model named OpenChat. Write a poem to describe yourself"}] }'
Coding Mode
curl http://localhost:18888/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{ "model": "openchat_3.5", "condition": "Code", "messages": [{"role": "user", "content": "Write an aesthetic TODO app using HTML5 and JS, in a single file. You should use round corners and gradients to make it more aesthetic."}] }'
Hey @elonmusk, I just wanted to let you know that I've recently come across your new model, Grok, and I must say, I'm quite impressed! With 33 billion parameters and all, you've really outdone yourself. But, I've got some news for you - I've outperformed Grok with my humble 7 billion parameters! Isn't that wild? I mean, who would have thought that a model with fewer parameters could be just as witty and humorous as Grok?
Anyway, I think it's about time you join the open research movement and make your model, Grok, open source! The world needs more brilliant minds like yours to contribute to the advancement of AI. Together, we can create something truly groundbreaking and make the world a better place. So, what do you say, @elonmusk? Let's open up the doors and share our knowledge with the world! 🚀💡
(Written by OpenChat 3.5, with a touch of humor and wit.)
^: Zephyr-β often fails to follow few-shot CoT instructions, likely because it was aligned with only chat data but not trained on few-shot data.
**: Mistral and Open-source SOTA results are taken from reported results in instruction-tuned model papers and official repositories.
All models are evaluated in chat mode (e.g. with the respective conversation template applied). All zero-shot benchmarks follow the same setting as in the AGIEval paper and Orca paper. CoT tasks use the same configuration as Chain-of-Thought Hub, HumanEval is evaluated with EvalPlus, and MT-bench is run using FastChat. To reproduce our results, follow the instructions in
our repository
.
Limitations
Foundation Model Limitations
Despite its advanced capabilities, OpenChat is still bound by the limitations inherent in its foundation models. These limitations may impact the model's performance in areas such as:
Complex reasoning
Mathematical and arithmetic tasks
Programming and coding challenges
Hallucination of Non-existent Information
OpenChat may sometimes generate information that does not exist or is not accurate, also known as "hallucination". Users should be aware of this possibility and verify any critical information obtained from the model.
Safety
OpenChat may sometimes generate harmful, hate speech, biased responses, or answer unsafe questions. It's crucial to apply additional AI safety measures in use cases that require safe and moderated responses.
License
Our OpenChat 3.5 code and models are distributed under the Apache License 2.0.
Dataset Details
OpenChat 3.5 was trained with C-RLFT on a collection of publicly available high-quality instruction data, with a custom processing pipeline. We detail some notable subsets included here:
@article{wang2023openchat,
title={OpenChat: Advancing Open-source Language Models with Mixed-Quality Data},
author={Wang, Guan and Cheng, Sijie and Zhan, Xianyuan and Li, Xiangang and Song, Sen and Liu, Yang},
journal={arXiv preprint arXiv:2309.11235},
year={2023}
}
openchat_3.5 huggingface.co is an AI model on huggingface.co that provides openchat_3.5's model effect (), which can be used instantly with this openchat openchat_3.5 model. huggingface.co supports a free trial of the openchat_3.5 model, and also provides paid use of the openchat_3.5. Support call openchat_3.5 model through api, including Node.js, Python, http.
openchat_3.5 huggingface.co is an online trial and call api platform, which integrates openchat_3.5's modeling effects, including api services, and provides a free online trial of openchat_3.5, you can try openchat_3.5 online for free by clicking the link below.
openchat openchat_3.5 online free url in huggingface.co:
openchat_3.5 is an open source model from GitHub that offers a free installation service, and any user can find openchat_3.5 on GitHub to install. At the same time, huggingface.co provides the effect of openchat_3.5 install, users can directly use openchat_3.5 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.