@@ -707,6 +707,12 @@ class ForestInference(UniversalBase, CMajorInputTagMixin):
707707 handle = None ):
708708 """ Load a model into FIL from a serialized model file.
709709
710+ *WARNING*: In previous versions of FIL, this was an instance method,
711+ not a classmethod. As of RAPIDS 25.04, models should be loaded by
712+ calling `my_model = ForestInference.load(...)`. Calling `.load` will
713+ return a _new_ ForestInference instance. It will not modify an instance
714+ in place.
715+
710716 Parameters
711717 ----------
712718 path : str
@@ -842,6 +848,12 @@ class ForestInference(UniversalBase, CMajorInputTagMixin):
842848 handle = None ):
843849 """ Load a Scikit-Learn forest model to FIL
844850
851+ *WARNING*: In previous versions of FIL, this was an instance method,
852+ not a classmethod. As of RAPIDS 25.04, models should be loaded by
853+ calling `my_model = ForestInference.load_from_sklearn(...)`. Calling
854+ `.load_from_sklearn` will return a _new_ ForestInference instance. It
855+ will not modify an instance in place.
856+
845857 Parameters
846858 ----------
847859 skl_model
@@ -963,6 +975,12 @@ class ForestInference(UniversalBase, CMajorInputTagMixin):
963975 handle = None ):
964976 """ Load a Treelite model to FIL
965977
978+ *WARNING*: In previous versions of FIL, this was an instance method,
979+ not a classmethod. As of RAPIDS 25.04, models should be loaded by
980+ calling `my_model = ForestInference.load_from_treelite_model(...)`.
981+ Calling `.load_from_treelite_model` will return a _new_ ForestInference
982+ instance. It will not modify an instance in place.
983+
966984 Parameters
967985 ----------
968986 tl_model : treelite.model
0 commit comments