search
HomeTechnology peripheralsAIThe large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandong's team

The open source alpaca large model LLaMA context is equal to GPT-4, with only one simple change!

This paper just submitted by Meta AI shows that after the LLaMA context window is expanded from 2k to 32k, it only requires less than 1000 steps of fine-tuning.

The cost is negligible compared to pre-training.

The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandongs team

Expanding the context window means that the AI's "working memory" capacity is increased. Specifically, it can:

  • Support more rounds of dialogue , reduce forgetting, such as more stable role-playing
  • Enter more information to complete more complex tasks, such as processing longer documents or multiple documents at one time

More important meaning The question is, can all large alpaca model families based on LLaMA adopt this method at low cost and evolve collectively?

Yangtuo is currently the most comprehensive open source basic model, and has derived many fully open source commercially available large models and vertical industry models.

The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandongs team

# Tian Yuandong, the corresponding author of the paper, also excitedly shared this new development in his circle of friends.

The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandongs team

Large models based on RoPE can use

The new method is called position interpolation (Position Interpolation), which is suitable for large models that use RoPE (rotation position encoding) Applicable to all models.

RoPE was proposed by the Zhuiyi Technology team as early as 2021, and has now become one of the most common position encoding methods for large models.

The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandongs team

But directly using extrapolation to expand the context window under this architecture will completely destroy the self-attention mechanism.

Specifically, the part beyond the length of the pre-trained context will cause the model perplexity to soar to the same level as an untrained model.

The new method is changed to linearly reduce the position index and expand the range alignment of the front and rear position index and relative distance.

The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandongs team

# It is more intuitive to use pictures to express the difference between the two.

The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandongs team

Experimental results show that the new method is effective for LLaMA large models from 7B to 65B.

There is no significant performance degradation in Long Sequence Language Modeling, Passkey Retrieval, and Long Document Summarization.

The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandongs team

#In addition to experiments, a detailed proof of the new method is also given in the appendix of the paper.

The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandongs team

Three More Thing

The context window used to be an important gap between open source large models and commercial large models.

For example, OpenAI’s GPT-3.5 supports up to 16k, GPT-4 supports 32k, and AnthropicAI’s Claude supports up to 100k.

At the same time, many large open source models such as LLaMA and Falcon are still stuck at 2k.

Now, Meta AI’s new results have directly bridged this gap.

Expanding the context window is also one of the focuses of recent large model research. In addition to position interpolation methods, there are many attempts to attract industry attention.

1. Developer kaiokendev explored a method to extend the LLaMa context window to 8k in a technical blog.

The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandongs team

2. Galina Alperovich, head of machine learning at data security company Soveren, summarized 6 tips for expanding the context window in an article.

The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandongs team

3. Teams from Mila, IBM and other institutions also tried to completely remove positional encoding in Transformer in a paper.

The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandongs team

Friends who need it can click the link below to view~

Meta paper: https://www.php.cn/link/ 0bdf2c1f053650715e1f0c725d754b96

Extending Context is Hard…but not Impossiblehttps://www.php.cn/link/9659078925b57e621eb3f9ef19773ac3

The Secret Sauce context window behind 100K in LLMshttps://www.php.cn/link/09a630e07af043e4cae879dd60db1cac

Positionless Coding Paperhttps://www.php.cn/link/fb6c84779f12283a81d739d8f088fc12

The above is the detailed content of The large model of the alpaca family evolves collectively! 32k context equals GPT-4, produced by Tian Yuandong's team. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
undress free porn AI tool websiteundress free porn AI tool websiteMay 13, 2025 am 11:26 AM

https://undressaitool.ai/ is Powerful mobile app with advanced AI features for adult content. Create AI-generated pornographic images or videos now!

How to create pornographic images/videos using undressAIHow to create pornographic images/videos using undressAIMay 13, 2025 am 11:26 AM

Tutorial on using undressAI to create pornographic pictures/videos: 1. Open the corresponding tool web link; 2. Click the tool button; 3. Upload the required content for production according to the page prompts; 4. Save and enjoy the results.

undress AI official website entrance website addressundress AI official website entrance website addressMay 13, 2025 am 11:26 AM

The official address of undress AI is:https://undressaitool.ai/;undressAI is Powerful mobile app with advanced AI features for adult content. Create AI-generated pornographic images or videos now!

How does undressAI generate pornographic images/videos?How does undressAI generate pornographic images/videos?May 13, 2025 am 11:26 AM

Tutorial on using undressAI to create pornographic pictures/videos: 1. Open the corresponding tool web link; 2. Click the tool button; 3. Upload the required content for production according to the page prompts; 4. Save and enjoy the results.

undressAI porn AI official website addressundressAI porn AI official website addressMay 13, 2025 am 11:26 AM

The official address of undress AI is:https://undressaitool.ai/;undressAI is Powerful mobile app with advanced AI features for adult content. Create AI-generated pornographic images or videos now!

UndressAI usage tutorial guide articleUndressAI usage tutorial guide articleMay 13, 2025 am 10:43 AM

Tutorial on using undressAI to create pornographic pictures/videos: 1. Open the corresponding tool web link; 2. Click the tool button; 3. Upload the required content for production according to the page prompts; 4. Save and enjoy the results.

[Ghibli-style images with AI] Introducing how to create free images with ChatGPT and copyright[Ghibli-style images with AI] Introducing how to create free images with ChatGPT and copyrightMay 13, 2025 am 01:57 AM

The latest model GPT-4o released by OpenAI not only can generate text, but also has image generation functions, which has attracted widespread attention. The most eye-catching feature is the generation of "Ghibli-style illustrations". Simply upload the photo to ChatGPT and give simple instructions to generate a dreamy image like a work in Studio Ghibli. This article will explain in detail the actual operation process, the effect experience, as well as the errors and copyright issues that need to be paid attention to. For details of the latest model "o3" released by OpenAI, please click here⬇️ Detailed explanation of OpenAI o3 (ChatGPT o3): Features, pricing system and o4-mini introduction Please click here for the English version of Ghibli-style article⬇️ Create Ji with ChatGPT

Explaining examples of use and implementation of ChatGPT in local governments! Also introduces banned local governmentsExplaining examples of use and implementation of ChatGPT in local governments! Also introduces banned local governmentsMay 13, 2025 am 01:53 AM

As a new communication method, the use and introduction of ChatGPT in local governments is attracting attention. While this trend is progressing in a wide range of areas, some local governments have declined to use ChatGPT. In this article, we will introduce examples of ChatGPT implementation in local governments. We will explore how we are achieving quality and efficiency improvements in local government services through a variety of reform examples, including supporting document creation and dialogue with citizens. Not only local government officials who aim to reduce staff workload and improve convenience for citizens, but also all interested in advanced use cases.

See all articles

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.