pear-pests-dataset / requirements-train.txt
salahkhenfer's picture
Add Florence/timm deps
97d7c05 verified
Raw
History Blame Contribute Delete
879 Bytes
torch>=2.1
# Pin below the newest transformers releases: at time of writing, transformers
# versions that require torch>=2.5 exist; if `pip install -U torch transformers`
# leaves you on an incompatible pair, either upgrade torch to match, or pin
# transformers to a release built against your installed torch.
transformers>=4.40,<4.50
peft>=0.10
datasets>=2.19
pillow
timm>=1.0 # only needed for train_lora_pear_florence.py --source timm
einops # Florence-2's remote code depends on this
# flash-attn is optional and used by Florence-2's remote code if present; it
# compiles from source and often fails on Windows/without a matching CUDA
# toolchain, so it's deliberately not pinned here. If `--source florence2`
# errors asking for it, either `pip install flash-attn` yourself or patch its
# attention implementation to "eager" per the model's config.