Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/__init__.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/arrow_serialization.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/async_compat.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/async_utils.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/auto_init_hook.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/conftest_utils.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/dict.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/external_storage.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/function_manager.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/gcs_aio_client.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/gcs_pubsub.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/inspect_util.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/internal_api.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/memory_monitor.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/metrics_agent.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/parameter.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/process_watcher.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/profiling.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/prometheus_exporter.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/protobuf_compat.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/pydantic_compat.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_client_microbenchmark.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_constants.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_microbenchmark_helpers.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_option_utils.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_perf.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_process_reaper.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/resource_spec.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/serialization.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/services.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/signature.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/state_api_test_utils.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/storage.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/test_utils.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/accelerators/__pycache__/__init__.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/accelerators/__pycache__/amd_gpu.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/ray_logging/__pycache__/constants.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/ray_logging/__pycache__/logging_config.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/ray_logging/formatters.py +84 -0
- deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/__init__.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/mpi.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/setup_hook.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/uri_cache.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/validation.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/working_dir.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/agent/thirdparty_files/multidict-6.1.0.dist-info/LICENSE +13 -0
- deepseek/lib/python3.10/site-packages/ray/_private/thirdparty/dacite/__init__.py +3 -0
- deepseek/lib/python3.10/site-packages/ray/_private/thirdparty/dacite/__pycache__/__init__.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/thirdparty/dacite/__pycache__/core.cpython-310.pyc +0 -0
- deepseek/lib/python3.10/site-packages/ray/_private/thirdparty/dacite/__pycache__/types.cpython-310.pyc +0 -0
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (166 Bytes). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/arrow_serialization.cpython-310.pyc
ADDED
|
Binary file (20 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/async_compat.cpython-310.pyc
ADDED
|
Binary file (1.75 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/async_utils.cpython-310.pyc
ADDED
|
Binary file (1.31 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/auto_init_hook.cpython-310.pyc
ADDED
|
Binary file (1.21 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/conftest_utils.cpython-310.pyc
ADDED
|
Binary file (630 Bytes). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/dict.cpython-310.pyc
ADDED
|
Binary file (6.72 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/external_storage.cpython-310.pyc
ADDED
|
Binary file (21.7 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/function_manager.cpython-310.pyc
ADDED
|
Binary file (17.4 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/gcs_aio_client.cpython-310.pyc
ADDED
|
Binary file (7.7 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/gcs_pubsub.cpython-310.pyc
ADDED
|
Binary file (10.5 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/inspect_util.cpython-310.pyc
ADDED
|
Binary file (1.65 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/internal_api.cpython-310.pyc
ADDED
|
Binary file (6.73 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/memory_monitor.cpython-310.pyc
ADDED
|
Binary file (4.91 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/metrics_agent.cpython-310.pyc
ADDED
|
Binary file (20.6 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/parameter.cpython-310.pyc
ADDED
|
Binary file (16.4 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/process_watcher.cpython-310.pyc
ADDED
|
Binary file (5.05 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/profiling.cpython-310.pyc
ADDED
|
Binary file (5.43 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/prometheus_exporter.cpython-310.pyc
ADDED
|
Binary file (11.7 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/protobuf_compat.cpython-310.pyc
ADDED
|
Binary file (1.64 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/pydantic_compat.cpython-310.pyc
ADDED
|
Binary file (2.11 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_client_microbenchmark.cpython-310.pyc
ADDED
|
Binary file (5.8 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_constants.cpython-310.pyc
ADDED
|
Binary file (11.4 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_microbenchmark_helpers.cpython-310.pyc
ADDED
|
Binary file (1.97 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_option_utils.cpython-310.pyc
ADDED
|
Binary file (11.1 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_perf.cpython-310.pyc
ADDED
|
Binary file (13.9 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/ray_process_reaper.cpython-310.pyc
ADDED
|
Binary file (1.13 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/resource_spec.cpython-310.pyc
ADDED
|
Binary file (7.03 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/serialization.cpython-310.pyc
ADDED
|
Binary file (14.7 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/services.cpython-310.pyc
ADDED
|
Binary file (58.4 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/signature.cpython-310.pyc
ADDED
|
Binary file (5.31 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/state_api_test_utils.cpython-310.pyc
ADDED
|
Binary file (14.1 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/storage.cpython-310.pyc
ADDED
|
Binary file (13.6 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/__pycache__/test_utils.cpython-310.pyc
ADDED
|
Binary file (66.2 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/accelerators/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (2.41 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/accelerators/__pycache__/amd_gpu.cpython-310.pyc
ADDED
|
Binary file (4.53 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/ray_logging/__pycache__/constants.cpython-310.pyc
ADDED
|
Binary file (969 Bytes). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/ray_logging/__pycache__/logging_config.cpython-310.pyc
ADDED
|
Binary file (5.4 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/ray_logging/formatters.py
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import logging
|
| 2 |
+
import json
|
| 3 |
+
from ray._private.ray_logging.constants import (
|
| 4 |
+
LogKey,
|
| 5 |
+
LOGRECORD_STANDARD_ATTRS,
|
| 6 |
+
LOGGER_FLATTEN_KEYS,
|
| 7 |
+
)
|
| 8 |
+
from ray._private.ray_constants import LOGGER_FORMAT
|
| 9 |
+
from typing import Any, Dict
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def _append_flatten_attributes(formatted_attrs: Dict[str, Any], key: str, value: Any):
|
| 13 |
+
"""Flatten the dictionary values for special keys and append the values in place.
|
| 14 |
+
|
| 15 |
+
If the key is in `LOGGER_FLATTEN_KEYS`, the value will be flattened and appended
|
| 16 |
+
to the `formatted_attrs` dictionary. Otherwise, the key-value pair will be appended
|
| 17 |
+
directly.
|
| 18 |
+
"""
|
| 19 |
+
if key in LOGGER_FLATTEN_KEYS:
|
| 20 |
+
if not isinstance(value, dict):
|
| 21 |
+
raise ValueError(
|
| 22 |
+
f"Expected a dictionary passing into {key}, but got {type(value)}"
|
| 23 |
+
)
|
| 24 |
+
for k, v in value.items():
|
| 25 |
+
if k in formatted_attrs:
|
| 26 |
+
raise KeyError(f"Found duplicated key in the log record: {k}")
|
| 27 |
+
formatted_attrs[k] = v
|
| 28 |
+
else:
|
| 29 |
+
formatted_attrs[key] = value
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def generate_record_format_attrs(
|
| 33 |
+
formatter: logging.Formatter,
|
| 34 |
+
record: logging.LogRecord,
|
| 35 |
+
exclude_standard_attrs,
|
| 36 |
+
) -> dict:
|
| 37 |
+
record_format_attrs = {}
|
| 38 |
+
|
| 39 |
+
# If `exclude_standard_attrs` is False, include the standard attributes.
|
| 40 |
+
# Otherwise, include only Ray and user-provided context.
|
| 41 |
+
if not exclude_standard_attrs:
|
| 42 |
+
record_format_attrs.update(
|
| 43 |
+
{
|
| 44 |
+
LogKey.ASCTIME.value: formatter.formatTime(record),
|
| 45 |
+
LogKey.LEVELNAME.value: record.levelname,
|
| 46 |
+
LogKey.MESSAGE.value: record.getMessage(),
|
| 47 |
+
LogKey.FILENAME.value: record.filename,
|
| 48 |
+
LogKey.LINENO.value: record.lineno,
|
| 49 |
+
}
|
| 50 |
+
)
|
| 51 |
+
if record.exc_info:
|
| 52 |
+
if not record.exc_text:
|
| 53 |
+
record.exc_text = formatter.formatException(record.exc_info)
|
| 54 |
+
record_format_attrs[LogKey.EXC_TEXT.value] = record.exc_text
|
| 55 |
+
|
| 56 |
+
for key, value in record.__dict__.items():
|
| 57 |
+
# Both Ray and user-provided context are stored in `record_format`.
|
| 58 |
+
if key not in LOGRECORD_STANDARD_ATTRS:
|
| 59 |
+
_append_flatten_attributes(record_format_attrs, key, value)
|
| 60 |
+
return record_format_attrs
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
class JSONFormatter(logging.Formatter):
|
| 64 |
+
def format(self, record):
|
| 65 |
+
record_format_attrs = generate_record_format_attrs(
|
| 66 |
+
self, record, exclude_standard_attrs=False
|
| 67 |
+
)
|
| 68 |
+
return json.dumps(record_format_attrs)
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
class TextFormatter(logging.Formatter):
|
| 72 |
+
def __init__(self) -> None:
|
| 73 |
+
self._inner_formatter = logging.Formatter(LOGGER_FORMAT)
|
| 74 |
+
|
| 75 |
+
def format(self, record: logging.LogRecord) -> str:
|
| 76 |
+
s = self._inner_formatter.format(record)
|
| 77 |
+
record_format_attrs = generate_record_format_attrs(
|
| 78 |
+
self, record, exclude_standard_attrs=True
|
| 79 |
+
)
|
| 80 |
+
|
| 81 |
+
additional_attrs = " ".join(
|
| 82 |
+
[f"{key}={value}" for key, value in record_format_attrs.items()]
|
| 83 |
+
)
|
| 84 |
+
return f"{s} {additional_attrs}"
|
deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (254 Bytes). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/mpi.cpython-310.pyc
ADDED
|
Binary file (3.4 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/setup_hook.cpython-310.pyc
ADDED
|
Binary file (5.36 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/uri_cache.cpython-310.pyc
ADDED
|
Binary file (4.24 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/validation.cpython-310.pyc
ADDED
|
Binary file (10.6 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/__pycache__/working_dir.cpython-310.pyc
ADDED
|
Binary file (6.35 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/runtime_env/agent/thirdparty_files/multidict-6.1.0.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright 2016 Andrew Svetlov and aio-libs contributors
|
| 2 |
+
|
| 3 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
you may not use this file except in compliance with the License.
|
| 5 |
+
You may obtain a copy of the License at
|
| 6 |
+
|
| 7 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
|
| 9 |
+
Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
See the License for the specific language governing permissions and
|
| 13 |
+
limitations under the License.
|
deepseek/lib/python3.10/site-packages/ray/_private/thirdparty/dacite/__init__.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .config import Config
|
| 2 |
+
from .core import from_dict
|
| 3 |
+
from .exceptions import *
|
deepseek/lib/python3.10/site-packages/ray/_private/thirdparty/dacite/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (286 Bytes). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/thirdparty/dacite/__pycache__/core.cpython-310.pyc
ADDED
|
Binary file (4.68 kB). View file
|
|
|
deepseek/lib/python3.10/site-packages/ray/_private/thirdparty/dacite/__pycache__/types.cpython-310.pyc
ADDED
|
Binary file (5.53 kB). View file
|
|
|