SuperAPIAI Directory

LLMs-from-scratch vs OpenELM: An Efficient Language Model Family with Open Training and Inference Framework

Metrics & specs comparison

LLMs-from-scratch

LLMs-from-scratch is the official code repository for the book "Build a Large Language Model (From Scratch)," maintained by Sebastian Raschka and hosted on GitHub. The repository provides complete code for developing, pretraining, and fine-tuning a GPT-like large language model from scratch using PyTorch, implementing a ChatGPT-like LLM step by step. It requires no external LLM libraries and is suitable for developers with a Python foundation who want to deeply understand the inner workings of LLMs. The code is designed to run on an ordinary laptop and automatically utilizes an available GPU.

OpenELM: An Efficient Language Model Family with Open Training and Inference Framework

OpenELM is a family of efficient open-source language models released by Apple, and its paper has been accepted to the Efficient Systems for Foundation Models workshop at ICML 2024. The model adopts a layer-wise scaling strategy to efficiently allocate parameters within each layer of the Transformer, thereby improving accuracy. For example, under a budget of about 1 billion parameters, OpenELM improves accuracy by 2.36% compared with OLMo while requiring half the number of tokens for pretraining. Unlike previous approaches that only provide model weights and inference code and are pretrained on private datasets, the release of OpenELM includes a complete framework for training and evaluating language models on public datasets, including training logs, multiple checkpoints, and pretraining configurations. It also provides code for converting the models to the MLX library for inference and fine-tuning on Apple devices. This comprehensive release aims to empower and strengthen the open research community.

DimensionLLMs-from-scratchOpenELM: An Efficient Language Model Family with Open Training and Inference Framework
CategoryAI developer platformsAI developer platforms
Monthly visits—
651.0M
MoM—-6.8%
Global rank—#53
Avg. visit—2m 28s
AI referrals—2.9%
PricingGitHub 开源项目 · 109,481 Stars—
Platforms—Web
GitHub stars 109,481—
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools