flâneur

Methods and tools for efficient training on a single GPU

huggingface.co · 646 words · saved by 1 readers

We’re on a journey to advance and democratize artificial intelligence through open source and open science.

Transformers provides multiple inference optimization techniques to make models fast, affordable, and accessible. Options include alternative attention mechanisms for reduced memory traffic, code compilation for faster execution, and optimized kernels for throughput. Stack these techniques for maximum performance. Memory and speed are closely related but not the same. Shrinking your memory footprint makes a model “faster” because there is less data to move around. Pure speed optimizations don’t always reduce memory and sometimes increase usage. Choose the appropriate optimization based on…

related reading