LLama: Open and Effecient Foundation Language Models

This paper is inspired by the Chinchilla scaling law. It found that given a fixed computing budget, the best performance is not generated by the larger models, but by the smaller models trained on more data . So it proposed a collection of models ranging from 7B to 65B. These smaller models outperforms other bigger models.

1. Architecture

It based on traditional transformer models, and leveraged some improvement proposed in the subquently large language models. The main change point is:

  • Pre-normalization, which nomalized the input in the sub-layer, instead of the output.
  • SwiGelu, instead of Relu.
  • Rotary Embeddidngs.

2. Efficient Implementation

  • The casual multihead attention. Which need me to explore the behind logic further.
  • Reduce the amount of activations that are recomputed during the backward pass.
  • Save the activation by manually implementing it, instead of using PyTorch Autograd in backward pass.
  • Using model and sequence parallelism to reduce the memory usage.
  • Using the overlay the computing and comunication bewteen different GPUs as much as possible.
相关推荐
m0_719640874 分钟前
2026年高校AI教学实验适配的科研教学机器人选型指南
人工智能·经验分享·机器人
用户960984579224013 分钟前
改造 agy 启动体验:agyr 启动器、目录级会话隔离与终端五色通知
人工智能
翰墨之道13 分钟前
从RSA-2048到处理器缓存:AI安全边界的三重信号
人工智能·安全·缓存
玫瑰互动GEO18 分钟前
M4推理成本信号:架构优化改写GEO竞争逻辑
大数据·数据库·人工智能·ai·架构·m4·geo优化
用户13359939454224 分钟前
我是如何在一张2000元的卡上把 Qwen4-35B-A3B 从 8tok/s 调到 80tok/s 的?
人工智能·性能优化
远航计算机27 分钟前
豆包GEO算法实证:引用池到答案之间,还有8.3%入选与13%失配两道关
人工智能·深度学习·算法
Rosanci30 分钟前
Agent 测试总分达标就能上线吗?把关键场景失败设为独立发布门禁
大数据·人工智能·agent·ai 办公
360亿方智能39 分钟前
律所案件资料如何安全地交给AI使用?中闻AI本地存储与分级授权实践
大数据·人工智能
释厄6231 小时前
短漫同体律——智能体生成真人与动漫无差·短剧漫剧即宣告宣传
大数据·人工智能
凌杰1 小时前
AI 学习笔记:基于现有项目的重构实验
人工智能