Table of Contents
The study was manually evaluated using input from a self-instruct evaluation set, which was completed by 5 students on the research team. The evaluation set was collected by the authors of the self-instruct paper and covers a variety of user-oriented instructions involving email, social media, and office tools.
Model defects
Home Technology peripherals AI Stanford's 7 billion parameter open source model is comparable to GPT-3.5 and can be reproduced for $100

Stanford's 7 billion parameter open source model is comparable to GPT-3.5 and can be reproduced for $100

Apr 13, 2023 pm 04:04 PM
Model Open source

As large-scale language models become increasingly powerful, people have put forward higher ethical requirements for AI models. The industry has the advantage of computing resources in terms of model scale expansion, but making the model more standardized and reliable requires the efforts of the academic community.

Recently, Stanford fine-tuned a new model Alpaca based on Meta's LLaMA 7B model. This study used OpenAI's text-davinci-003 model to generate 52K instruction-following samples in a self-instruct manner as training data for Alpaca. The research team has open sourced the training data, the code to generate the training data, and the hyperparameters, and will release the model weights and training code in the future.

Stanfords 7 billion parameter open source model is comparable to GPT-3.5 and can be reproduced for $100

  • ## Project address: https://github.com/tatsu-lab/stanford_alpaca
  • Trial address: https://alpaca-ai-custom6.ngrok.io/

Experimental results show that many behaviors of Alpaca are similar to text-davinci-003. In other words, the performance of Alpaca, a lightweight model with only 7B parameters, is comparable to very large-scale language models such as GPT-3.5.

Let’s take a look at how the Alpaca model does it.

Training Method

Training high-quality instruction following models within the budget conditions of academia faces two important challenges: powerful pre-trained language models and high-quality The instructions follow the data.

Meta’s recently released LLaMA family of models addresses the first challenge. For the second challenge, the self-instruct paper at the end of 2022 proposes to use existing powerful language models to automatically generate instruction data.

Stanfords 7 billion parameter open source model is comparable to GPT-3.5 and can be reproduced for $100

##Paper address: https://arxiv.org/abs/2212.10560

According to this method, Alpaca uses supervised learning of the LLaMA 7B model to fine-tune on the 52K instruction follow samples generated by text-davinci-003 in a self-instruct manner.

Stanfords 7 billion parameter open source model is comparable to GPT-3.5 and can be reproduced for $100

Overview of the self-instruct method.

Alpaca's research team first used 175 manually written instruction-output pairs in the self-instruct seed set, and then used this seed set as in-context sample prompt text-davinci-003 to generate more instructions. This research improves the self-instruct method by simplifying the build pipeline and significantly reduces costs.

Stanfords 7 billion parameter open source model is comparable to GPT-3.5 and can be reproduced for $100

##The study generated a total of 52K different instructions and corresponding outputs as training data, which used OpenAI API that costs less than $500. Since the research team has open sourced the training data, developers who want to reproduce Alpaca can save $500.

Stanfords 7 billion parameter open source model is comparable to GPT-3.5 and can be reproduced for $100

With this instruction following dataset, the next step of the research was to fine-tune the LLaMA model using Hugging Face’s training framework. And utilizes technologies such as FSDP (Fully Sharded Data Parallel) and mixed precision training. Cost-wise, fine-tuning a 7B LLaMA model on eight 80GB A100s takes 3 hours, which costs less than $100 for most cloud providers.

Model Evaluation

The study was manually evaluated using input from a self-instruct evaluation set, which was completed by 5 students on the research team. The evaluation set was collected by the authors of the self-instruct paper and covers a variety of user-oriented instructions involving email, social media, and office tools.

After blind pairwise comparison of text-davinci-003 and Alpaca 7B, the researchers found that the performance of the two models was very similar, and Alpaca was slightly better than text-davinci-003.

From the perspective of parameter scale, Alpaca is far smaller than text-davinci-003, and the mobile terminal can even run a 7B lightweight language model. This makes Alpaca significant.

In addition to utilizing the static self-instruct evaluation set mentioned above, this study also conducted interactive testing on the Alpaca model and found that Alpaca generally performed similarly to text-davinci-003.

The following are two examples tested by the research team, and the results show that Alpaca's output is good and reflects the general style of the instruction following data set. For example, Alpaca often outputs more concise answers than ChatGPT, similar to text-davinci-003.

Model defects

In the experiment, Alpaca also showed several common defects of language models, including hallucinations, toxicity and stereotypes, among which the hallucination problem is particularly serious.

For example, in the picture below, Alpaca answered that the capital of Tanzania is Dar es Salaam, but it should actually be Dodoma.

Stanfords 7 billion parameter open source model is comparable to GPT-3.5 and can be reproduced for $100

Additionally, Alpaca is capable of generating text that may appear good but contain errors or false information, which may mislead people. .

Stanfords 7 billion parameter open source model is comparable to GPT-3.5 and can be reproduced for $100

Alpaca may contain a number of other flaws related to the underlying language model and instruction tuning data. However, Alpaca remains important to the machine learning community because it provides a relatively lightweight model that can serve as a basis for studying important flaws. The Stanford research team also emphasized that Alpaca can only be used for academic research and any commercial use is prohibited.

Next, the Stanford research team will further explore the security, understanding ability, scale expansion, etc. of the Alpaca model. The research team hopes Alpaca will facilitate the development of instruction-following models.

The above is the detailed content of Stanford's 7 billion parameter open source model is comparable to GPT-3.5 and can be reproduced for $100. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The world's most powerful open source MoE model is here, with Chinese capabilities comparable to GPT-4, and the price is only nearly one percent of GPT-4-Turbo The world's most powerful open source MoE model is here, with Chinese capabilities comparable to GPT-4, and the price is only nearly one percent of GPT-4-Turbo May 07, 2024 pm 04:13 PM

Imagine an artificial intelligence model that not only has the ability to surpass traditional computing, but also achieves more efficient performance at a lower cost. This is not science fiction, DeepSeek-V2[1], the world’s most powerful open source MoE model is here. DeepSeek-V2 is a powerful mixture of experts (MoE) language model with the characteristics of economical training and efficient inference. It consists of 236B parameters, 21B of which are used to activate each marker. Compared with DeepSeek67B, DeepSeek-V2 has stronger performance, while saving 42.5% of training costs, reducing KV cache by 93.3%, and increasing the maximum generation throughput to 5.76 times. DeepSeek is a company exploring general artificial intelligence

AI subverts mathematical research! Fields Medal winner and Chinese-American mathematician led 11 top-ranked papers | Liked by Terence Tao AI subverts mathematical research! Fields Medal winner and Chinese-American mathematician led 11 top-ranked papers | Liked by Terence Tao Apr 09, 2024 am 11:52 AM

AI is indeed changing mathematics. Recently, Tao Zhexuan, who has been paying close attention to this issue, forwarded the latest issue of "Bulletin of the American Mathematical Society" (Bulletin of the American Mathematical Society). Focusing on the topic "Will machines change mathematics?", many mathematicians expressed their opinions. The whole process was full of sparks, hardcore and exciting. The author has a strong lineup, including Fields Medal winner Akshay Venkatesh, Chinese mathematician Zheng Lejun, NYU computer scientist Ernest Davis and many other well-known scholars in the industry. The world of AI has changed dramatically. You know, many of these articles were submitted a year ago.

Google is ecstatic: JAX performance surpasses Pytorch and TensorFlow! It may become the fastest choice for GPU inference training Google is ecstatic: JAX performance surpasses Pytorch and TensorFlow! It may become the fastest choice for GPU inference training Apr 01, 2024 pm 07:46 PM

The performance of JAX, promoted by Google, has surpassed that of Pytorch and TensorFlow in recent benchmark tests, ranking first in 7 indicators. And the test was not done on the TPU with the best JAX performance. Although among developers, Pytorch is still more popular than Tensorflow. But in the future, perhaps more large models will be trained and run based on the JAX platform. Models Recently, the Keras team benchmarked three backends (TensorFlow, JAX, PyTorch) with the native PyTorch implementation and Keras2 with TensorFlow. First, they select a set of mainstream

Hello, electric Atlas! Boston Dynamics robot comes back to life, 180-degree weird moves scare Musk Hello, electric Atlas! Boston Dynamics robot comes back to life, 180-degree weird moves scare Musk Apr 18, 2024 pm 07:58 PM

Boston Dynamics Atlas officially enters the era of electric robots! Yesterday, the hydraulic Atlas just "tearfully" withdrew from the stage of history. Today, Boston Dynamics announced that the electric Atlas is on the job. It seems that in the field of commercial humanoid robots, Boston Dynamics is determined to compete with Tesla. After the new video was released, it had already been viewed by more than one million people in just ten hours. The old people leave and new roles appear. This is a historical necessity. There is no doubt that this year is the explosive year of humanoid robots. Netizens commented: The advancement of robots has made this year's opening ceremony look like a human, and the degree of freedom is far greater than that of humans. But is this really not a horror movie? At the beginning of the video, Atlas is lying calmly on the ground, seemingly on his back. What follows is jaw-dropping

KAN, which replaces MLP, has been extended to convolution by open source projects KAN, which replaces MLP, has been extended to convolution by open source projects Jun 01, 2024 pm 10:03 PM

Earlier this month, researchers from MIT and other institutions proposed a very promising alternative to MLP - KAN. KAN outperforms MLP in terms of accuracy and interpretability. And it can outperform MLP running with a larger number of parameters with a very small number of parameters. For example, the authors stated that they used KAN to reproduce DeepMind's results with a smaller network and a higher degree of automation. Specifically, DeepMind's MLP has about 300,000 parameters, while KAN only has about 200 parameters. KAN has a strong mathematical foundation like MLP. MLP is based on the universal approximation theorem, while KAN is based on the Kolmogorov-Arnold representation theorem. As shown in the figure below, KAN has

Recommended: Excellent JS open source face detection and recognition project Recommended: Excellent JS open source face detection and recognition project Apr 03, 2024 am 11:55 AM

Face detection and recognition technology is already a relatively mature and widely used technology. Currently, the most widely used Internet application language is JS. Implementing face detection and recognition on the Web front-end has advantages and disadvantages compared to back-end face recognition. Advantages include reducing network interaction and real-time recognition, which greatly shortens user waiting time and improves user experience; disadvantages include: being limited by model size, the accuracy is also limited. How to use js to implement face detection on the web? In order to implement face recognition on the Web, you need to be familiar with related programming languages ​​and technologies, such as JavaScript, HTML, CSS, WebRTC, etc. At the same time, you also need to master relevant computer vision and artificial intelligence technologies. It is worth noting that due to the design of the Web side

Tesla robots work in factories, Musk: The degree of freedom of hands will reach 22 this year! Tesla robots work in factories, Musk: The degree of freedom of hands will reach 22 this year! May 06, 2024 pm 04:13 PM

The latest video of Tesla's robot Optimus is released, and it can already work in the factory. At normal speed, it sorts batteries (Tesla's 4680 batteries) like this: The official also released what it looks like at 20x speed - on a small "workstation", picking and picking and picking: This time it is released One of the highlights of the video is that Optimus completes this work in the factory, completely autonomously, without human intervention throughout the process. And from the perspective of Optimus, it can also pick up and place the crooked battery, focusing on automatic error correction: Regarding Optimus's hand, NVIDIA scientist Jim Fan gave a high evaluation: Optimus's hand is the world's five-fingered robot. One of the most dexterous. Its hands are not only tactile

FisheyeDetNet: the first target detection algorithm based on fisheye camera FisheyeDetNet: the first target detection algorithm based on fisheye camera Apr 26, 2024 am 11:37 AM

Target detection is a relatively mature problem in autonomous driving systems, among which pedestrian detection is one of the earliest algorithms to be deployed. Very comprehensive research has been carried out in most papers. However, distance perception using fisheye cameras for surround view is relatively less studied. Due to large radial distortion, standard bounding box representation is difficult to implement in fisheye cameras. To alleviate the above description, we explore extended bounding box, ellipse, and general polygon designs into polar/angular representations and define an instance segmentation mIOU metric to analyze these representations. The proposed model fisheyeDetNet with polygonal shape outperforms other models and simultaneously achieves 49.5% mAP on the Valeo fisheye camera dataset for autonomous driving

See all articles