answered from live GitHub & Hugging Face data

Should I choose huggingface/transformers or rasbt/LLMs-from-scratch for building custom language models?

MaintActive · 8d ago
Stars103k
Contrib68
Issues2 open

When considering whether to use huggingface/transformers or rasbt/LLMs-from-scratch for building custom language models, assumptions around adoption and features often surface. However, the nuances between these two options reveal important distinctions.

Overview of Options

  1. rasbt/LLMs-from-scratch

    • Stars: 102,907
    • Language: Jupyter Notebook
    • Maintenance: ✅ Actively maintained (last pushed 8 days ago)
    • Open Issues: 2
    • License: No assertion available
    • Description: This repository enables users to implement a ChatGPT-like LLM in PyTorch from scratch, following a structured educational approach. It includes practical code for pretraining and finetuning models.
  2. Hugging Face Transformers (General Insights)

    • While direct querying failed to retrieve specific model information from the huggingface/transformers repo, external observations indicate it is a cornerstone in this domain with numerous highly adopted models under its library umbrella. Examples include:
      • sentence-transformers/all-MiniLM-L6-v2: ~258 million downloads, Apache 2.0 license.
      • Transformer's robust environment supports training multiple architectures (including BERT, GPT, etc.) efficiently.

Comparative Analysis

Project Stars Maintenance Last Updated License Best For
rasbt/LLMs-from-scratch 102,907 ✅ Actively Maintained August 10, 2026 No assertion Learning model implementation
Hugging Face Transformers (generic) High (est. in thousands) ✔ Highly maintained Continuous updates (varies per model) Multiple open-source licenses (e.g., Apache 2.0) Diverse model deployment

Recommendations

In conclusion, the decision hinges on whether your priority lies in learning and customization (selecting rasbt/LLMs-from-scratch) or leveraging existing, robust models for practical applications (huggingface/transformers).

github.com/rasbt/LLMs-from-scratch🤗 huggingface.co/sentence-transformers/all-MiniLM-L6-v2🤗 huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2🤗 huggingface.co/sentence-transformers/all-mpnet-base-v2🤗 huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2🤗 huggingface.co/sentence-transformers/all-MiniLM-L12-v2
Answered live from GitHub & Hugging Face · openai/gpt-4o-mini · 8/18/2026

Ask your own open-source question →