transformers
Source
- Source kind:
github-repository - URL: https://github.com/karpathy/transformers
- Discovery source: https://github.com/karpathy/transformers
- License:
Apache-2.0 - Distribution policy:
public-summary-plus-license-aware-excerpts - Public mirror status:
partial excerpt - Content hash:
9dab02138e8e1053c71f775d2f82d11edd2d7bd39f829f2c68ba6a56d4bcf0ee - First seen: 2026-05-15
- Last changed: 2026-05-15
Classification
- Primary category: LLM training and inference systems
- Corpus source note: 2026-05-15-karpathy-public-corpus
- Project taxonomy: karpathy-project-taxonomy
- Idea map: karpathy-idea-map
- Topic hub: karpathy-public-work
Summary
English 简体中文 繁體中文 한국어 State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow 🤗 Transformers provides thousands of pretrained models to perform tasks on different modalities such as text, vision, and audio. These models can be applied on: 📝 Text, for tasks like text classification, information extraction, question answering, summarization, translation, text generation, in over 100 languages. 🖼️ Images, for tasks like image classification, object detection, and segmentation. 🗣️ Audio, for tasks like speech recognition and audio classification. Transformer models can also perform tasks on several moda…
What This Teaches
- How modern LLM training or inference can be reduced to compact, inspectable systems.
- Useful as a reference for building mental models of GPT-style models without hiding behind framework scale.
Why It Matters
This is high-priority for Vipin because it connects directly to LLM systems, evaluation, and research implementation judgment.
Repository Snapshot
- Full name:
karpathy/transformers - Default branch:
main - HEAD:
b03be78a4bc3223695ed4f738375148acd487007 - Stars at crawl: 216
- Forks at crawl: 43
- File count: 2321
- README path:
README.md - License path:
LICENSE - Created: 2022-06-24T20:53:24Z
- Updated: 2026-05-14T21:26:52Z
- Pushed: 2022-06-27T18:49:38Z
Top-Level Structure
src: 873tests: 573examples: 478docs: 257templates: 32utils: 27.github: 23[root]: 20scripts: 20docker: 14.circleci: 2model_cards: 1
File Extension Profile
.py: 1712.mdx: 245.md: 103.txt: 72.sh: 54.json: 39.yml: 24[none]: 16.h: 5.model: 5.png: 5.source: 5
Tags / Release-Like Markers
- No git tags found in the shallow local clone.
Sample File Tree
.circleci/config.yml.circleci/TROUBLESHOOT.md.coveragerc.gitattributes.github/conda/build.sh.github/conda/meta.yaml.github/ISSUE_TEMPLATE/bug-report.yml.github/ISSUE_TEMPLATE/config.yml.github/ISSUE_TEMPLATE/feature-request.yml.github/ISSUE_TEMPLATE/migration.yml.github/ISSUE_TEMPLATE/new-model-addition.yml.github/PULL_REQUEST_TEMPLATE.md.github/workflows/add-model-like.yml.github/workflows/build_documentation.yml.github/workflows/build_pr_documentation.yml.github/workflows/build-docker-images.yml.github/workflows/delete_doc_comment.yml.github/workflows/doctests.yml.github/workflows/model-templates.yml.github/workflows/release-conda.yml.github/workflows/self-nightly-scheduled.yml.github/workflows/self-push.yml.github/workflows/self-push-caller.yml.github/workflows/self-scheduled.yml.github/workflows/stale.yml.github/workflows/TROUBLESHOOT.md.github/workflows/update_metdata.yml.gitignoreCITATION.cffCODE_OF_CONDUCT.mdconftest.pyCONTRIBUTING.mddocker/transformers-all-latest-gpu/Dockerfiledocker/transformers-cpu/Dockerfiledocker/transformers-doc-builder/Dockerfiledocker/transformers-gpu/Dockerfiledocker/transformers-pytorch-cpu/Dockerfiledocker/transformers-pytorch-deepspeed-latest-gpu/Dockerfiledocker/transformers-pytorch-deepspeed-nightly-gpu/Dockerfiledocker/transformers-pytorch-gpu/Dockerfiledocker/transformers-pytorch-tpu/bert-base-cased.jsonnetdocker/transformers-pytorch-tpu/dataset.yamldocker/transformers-pytorch-tpu/docker-entrypoint.shdocker/transformers-pytorch-tpu/Dockerfiledocker/transformers-tensorflow-cpu/Dockerfiledocker/transformers-tensorflow-gpu/Dockerfiledocs/README.mddocs/source/_config.pydocs/source/en/_config.pydocs/source/en/_toctree.ymldocs/source/en/accelerate.mdxdocs/source/en/add_new_model.mdxdocs/source/en/add_new_pipeline.mdxdocs/source/en/autoclass_tutorial.mdxdocs/source/en/benchmarks.mdxdocs/source/en/bertology.mdxdocs/source/en/big_models.mdxdocs/source/en/community.mdxdocs/source/en/contributing.mddocs/source/en/converting_tensorflow_models.mdxdocs/source/en/create_a_model.mdxdocs/source/en/custom_models.mdxdocs/source/en/debugging.mdxdocs/source/en/fast_tokenizers.mdxdocs/source/en/glossary.mdxdocs/source/en/index.mdxdocs/source/en/installation.mdxdocs/source/en/internal/file_utils.mdxdocs/source/en/internal/generation_utils.mdxdocs/source/en/internal/modeling_utils.mdxdocs/source/en/internal/pipelines_utils.mdxdocs/source/en/internal/tokenization_utils.mdxdocs/source/en/internal/trainer_utils.mdxdocs/source/en/main_classes/callback.mdxdocs/source/en/main_classes/configuration.mdxdocs/source/en/main_classes/data_collator.mdxdocs/source/en/main_classes/deepspeed.mdxdocs/source/en/main_classes/feature_extractor.mdxdocs/source/en/main_classes/keras_callbacks.mdxdocs/source/en/main_classes/logging.mdx
Public Handling Notes
- EXTRACTED: This page records public metadata and a source-grounded summary.
- INFERRED: Full local preservation, when available, is for private/local use unless a license or explicit source policy makes public redistribution safe.
- Do not treat this page as permission to republish unlicensed source text or code wholesale.