finegrain-ai / refiners

A microframework on top of PyTorch with first-class citizen APIs for foundation model adaptation
https://refine.rs
MIT License
584 stars 43 forks source link

Remove some `from torch import ...` from the code #402

Closed Laurent2916 closed 3 weeks ago

Laurent2916 commented 3 weeks ago

See https://huggingface.co/spaces/zero-gpu-explorers/README/discussions/85 I also find it better to have the torch. prefix

I ran all the tests just in case (with torch<2.4.0), everything is good (I fixed the ic-light test, it got broken in a previous commit because we switched a default -> https://github.com/finegrain-ai/refiners/pull/403)