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.
相关推荐
pjj1985414 分钟前
opencv-轮廓特征和轮廓近似
人工智能·opencv·计算机视觉
大金SEO27 分钟前
GEO优化资源配置:起步阶段的人力和时间投入预估
人工智能
其美杰布-富贵-李29 分钟前
08 进阶评估指标与算法特定指标
人工智能·算法
2601_9507607939 分钟前
Caspase-3/7在肠道炎症与肿瘤中的双重功能及其高灵敏度检测应用
人工智能·蛋白
IvorySQL1 小时前
PostgreSQL 日报|PG18.5 回归测试崩溃问题(8 月 12 日)
大数据·数据库·人工智能·postgresql
泰迪智能科技011 小时前
职业技术证书推荐:机器学习工程师证书
人工智能·机器学习
冬奇Lab1 小时前
企业知识库系列(01):为什么 RAG 只是起点
人工智能
冬奇Lab1 小时前
开源项目第185期:Orca — YC 支持的 AI Agent 开发环境,并行运行多个 Coding Agent、手机远程监控、Design Mode 直接截图喂给 AI
人工智能·开源·资讯
LPCK_202606221 小时前
2026 企业智能体:私有化与 SaaS 部署对比,从安全成本看落地选型
人工智能·安全
学着改变2752 小时前
手持式超声波流量计为何首选行澳科技?便携巡检与外夹计量的性能标杆
大数据·网络·人工智能·科技·产品运营·量子计算