Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

minimal-trainer-zoo

> 编程语言
Open source

Minimal example scripts of the Hugging Face Trainer, focused on staying under 150 lines

197 stars0 likes2 views
WebsiteGitHub

About

Minimal example scripts of the Hugging Face Trainer, focused on staying under 150 lines

minimal-trainer-zoo

Minimal example scripts of the Hugging Face Trainer, focused on staying under 150 lines. (and still be readable), and being runnable under 10 minutes.

All examples are based on the Tasks documentation from transformers.

What is this repository?

this collection contains a variety of task scrips for Hugging Face transformers, but kept to a minimal level to enhance readability, hackability, and for learning.

How to Run

Each script is self-contained and requires no arguments. Simply:

  1. git clone https://github.com/muellerzr/minimal-trainer-zoo
  2. cd minimal-trainer-zoo; pip install -r requirements.txt
  3. python {script.py} (or torchrun/accelerate launch instead of python if wanting to use DDP)

Note that each script is tuned for a Tesla T4 GPU to maximize the memory (and efficiency)

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言