2023-04-27 01:57:41 -06:00
|
|
|
transformers_commit := 69009822aa7897ffab97afb814e38126b83f639e
|
2023-04-09 11:59:16 -06:00
|
|
|
|
2023-04-14 02:12:21 -06:00
|
|
|
transformers:
|
|
|
|
# Clone fork of transformers with custom CUDA kernels and sharding logic
|
2023-04-09 11:59:16 -06:00
|
|
|
pip install --upgrade setuptools
|
|
|
|
git clone https://github.com/OlivierDehaene/transformers.git
|
2023-04-14 02:12:21 -06:00
|
|
|
|
|
|
|
build-transformers: transformers
|
|
|
|
cd transformers && git fetch && git checkout $(transformers_commit) && python setup.py build
|
|
|
|
|
|
|
|
install-transformers: build-transformers
|
|
|
|
pip uninstall transformers -y || true
|
2023-04-09 11:59:16 -06:00
|
|
|
cd transformers && python setup.py install
|