chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:17:40 +08:00
commit f1825c8ceb
10096 changed files with 2364182 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import logging
import os
logger = logging.getLogger(__name__)
RAY_PICKLE_VERBOSE_DEBUG = os.environ.get("RAY_PICKLE_VERBOSE_DEBUG")
verbose_level = int(RAY_PICKLE_VERBOSE_DEBUG) if RAY_PICKLE_VERBOSE_DEBUG else 0
if verbose_level > 1:
logger.warning(
"Environmental variable RAY_PICKLE_VERBOSE_DEBUG is set to "
f"'{verbose_level}', this enabled python-based serialization backend "
f"instead of C-Pickle. Serialization would be very slow."
)
from ray.cloudpickle import py_pickle as pickle
from ray.cloudpickle.py_pickle import Pickler
else:
import pickle # noqa: F401
from _pickle import Pickler # noqa: F401