Matt300209 commited on
Commit
51fa49b
·
verified ·
1 Parent(s): 33477e4

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/__init__.cpython-310.pyc +0 -0
  2. venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/__main__.cpython-310.pyc +0 -0
  3. venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/cli.cpython-310.pyc +0 -0
  4. venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/discover.cpython-310.pyc +0 -0
  5. venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/exceptions.cpython-310.pyc +0 -0
  6. venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/logging.cpython-310.pyc +0 -0
  7. venv/lib/python3.10/site-packages/fastapi_cli/exceptions.py +2 -0
  8. venv/lib/python3.10/site-packages/fastapi_cli/logging.py +25 -0
  9. venv/lib/python3.10/site-packages/fastapi_cli/py.typed +0 -0
  10. venv/lib/python3.10/site-packages/mistral_common/.DS_Store +0 -0
  11. venv/lib/python3.10/site-packages/mistral_common/__init__.py +3 -0
  12. venv/lib/python3.10/site-packages/mistral_common/audio.py +376 -0
  13. venv/lib/python3.10/site-packages/mistral_common/base.py +10 -0
  14. venv/lib/python3.10/site-packages/mistral_common/exceptions.py +157 -0
  15. venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/image.cpython-310.pyc +0 -0
  16. venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/instruct.cpython-310.pyc +0 -0
  17. venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/mistral.cpython-310.pyc +0 -0
  18. venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/sentencepiece.cpython-310.pyc +0 -0
  19. venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/tekken.cpython-310.pyc +0 -0
  20. venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/utils.cpython-310.pyc +0 -0
  21. venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/INSTALLER +1 -0
  22. venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/METADATA +55 -0
  23. venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/RECORD +19 -0
  24. venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/WHEEL +4 -0
  25. venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/entry_points.txt +8 -0
  26. venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/licenses/LICENSE +201 -0
  27. venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/INSTALLER +1 -0
  28. venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/METADATA +410 -0
  29. venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/RECORD +0 -0
  30. venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/WHEEL +5 -0
  31. venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/entry_points.txt +4 -0
  32. venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/top_level.txt +1 -0
  33. venv/lib/python3.10/site-packages/ray/__pycache__/__init__.cpython-310.pyc +0 -0
  34. venv/lib/python3.10/site-packages/ray/__pycache__/_version.cpython-310.pyc +0 -0
  35. venv/lib/python3.10/site-packages/ray/__pycache__/actor.cpython-310.pyc +0 -0
  36. venv/lib/python3.10/site-packages/ray/__pycache__/client_builder.cpython-310.pyc +0 -0
  37. venv/lib/python3.10/site-packages/ray/__pycache__/cluster_utils.cpython-310.pyc +0 -0
  38. venv/lib/python3.10/site-packages/ray/__pycache__/cross_language.cpython-310.pyc +0 -0
  39. venv/lib/python3.10/site-packages/ray/__pycache__/exceptions.cpython-310.pyc +0 -0
  40. venv/lib/python3.10/site-packages/ray/__pycache__/job_config.cpython-310.pyc +0 -0
  41. venv/lib/python3.10/site-packages/ray/__pycache__/remote_function.cpython-310.pyc +0 -0
  42. venv/lib/python3.10/site-packages/ray/__pycache__/runtime_context.cpython-310.pyc +0 -0
  43. venv/lib/python3.10/site-packages/ray/__pycache__/setup-dev.cpython-310.pyc +0 -0
  44. venv/lib/python3.10/site-packages/ray/__pycache__/types.cpython-310.pyc +0 -0
  45. venv/lib/python3.10/site-packages/ray/tune/__pycache__/__init__.cpython-310.pyc +0 -0
  46. venv/lib/python3.10/site-packages/ray/tune/__pycache__/callback.cpython-310.pyc +0 -0
  47. venv/lib/python3.10/site-packages/ray/tune/__pycache__/constants.cpython-310.pyc +0 -0
  48. venv/lib/python3.10/site-packages/ray/tune/__pycache__/context.cpython-310.pyc +0 -0
  49. venv/lib/python3.10/site-packages/ray/tune/__pycache__/error.cpython-310.pyc +0 -0
  50. venv/lib/python3.10/site-packages/ray/tune/__pycache__/progress_reporter.cpython-310.pyc +0 -0
venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (268 Bytes). View file
 
venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/__main__.cpython-310.pyc ADDED
Binary file (287 Bytes). View file
 
venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/cli.cpython-310.pyc ADDED
Binary file (8.94 kB). View file
 
venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/discover.cpython-310.pyc ADDED
Binary file (3.67 kB). View file
 
venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/exceptions.cpython-310.pyc ADDED
Binary file (425 Bytes). View file
 
venv/lib/python3.10/site-packages/fastapi_cli/__pycache__/logging.cpython-310.pyc ADDED
Binary file (937 Bytes). View file
 
venv/lib/python3.10/site-packages/fastapi_cli/exceptions.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ class FastAPICLIException(Exception):
2
+ pass
venv/lib/python3.10/site-packages/fastapi_cli/logging.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import logging
2
+ from typing import Union
3
+
4
+ from rich.console import Console
5
+ from rich.logging import RichHandler
6
+
7
+
8
+ def setup_logging(
9
+ terminal_width: Union[int, None] = None, level: int = logging.INFO
10
+ ) -> None:
11
+ logger = logging.getLogger("fastapi_cli")
12
+ console = Console(width=terminal_width) if terminal_width else None
13
+ rich_handler = RichHandler(
14
+ show_time=False,
15
+ rich_tracebacks=True,
16
+ tracebacks_show_locals=True,
17
+ markup=True,
18
+ show_path=False,
19
+ console=console,
20
+ )
21
+ rich_handler.setFormatter(logging.Formatter("%(message)s"))
22
+ logger.addHandler(rich_handler)
23
+
24
+ logger.setLevel(level)
25
+ logger.propagate = False
venv/lib/python3.10/site-packages/fastapi_cli/py.typed ADDED
File without changes
venv/lib/python3.10/site-packages/mistral_common/.DS_Store ADDED
Binary file (6.15 kB). View file
 
venv/lib/python3.10/site-packages/mistral_common/__init__.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import importlib.metadata
2
+
3
+ __version__ = importlib.metadata.version("mistral-common")
venv/lib/python3.10/site-packages/mistral_common/audio.py ADDED
@@ -0,0 +1,376 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import base64
2
+ import io
3
+ import logging
4
+ import re
5
+ from enum import Enum
6
+ from functools import cache
7
+ from pathlib import Path
8
+ from typing import TYPE_CHECKING, Union
9
+
10
+ import numpy as np
11
+ import requests
12
+
13
+ if TYPE_CHECKING:
14
+ from mistral_common.protocol.instruct.messages import RawAudio
15
+
16
+ logger = logging.getLogger(__name__)
17
+ _soundfile_installed: bool
18
+
19
+ # TODO(Patrick, Julien): refactor import checks to avoid redundancy
20
+ try:
21
+ import soundfile # noqa: F401
22
+
23
+ _soundfile_installed = True
24
+ except ImportError:
25
+ _soundfile_installed = False
26
+
27
+ try:
28
+ import soxr # noqa: F401
29
+
30
+ _soxr_installed = True
31
+ except ImportError:
32
+ _soxr_installed = False
33
+
34
+
35
+ def is_soundfile_installed() -> bool:
36
+ return _soundfile_installed
37
+
38
+
39
+ def is_soxr_installed() -> bool:
40
+ return _soxr_installed
41
+
42
+
43
+ if is_soundfile_installed():
44
+ import soundfile as sf
45
+
46
+ # Get the available formats from soundfile
47
+ available_formats = sf.available_formats()
48
+
49
+ # Create an Enum dynamically
50
+ AudioFormat = Enum("AudioFormat", {format_name: format_name for format_name in available_formats}) # type: ignore[misc]
51
+ else:
52
+ AudioFormat = Enum("AudioFormat", {"none": "none"}) # type: ignore[no-redef]
53
+
54
+ EXPECTED_FORMAT_VALUES = [v.value.lower() for v in AudioFormat.__members__.values()]
55
+
56
+
57
+ class Audio:
58
+ def __init__(self, audio_array: np.ndarray, sampling_rate: int, format: str) -> None:
59
+ r"""Initialize an Audio instance with audio data, sampling rate, and format.
60
+
61
+ Args:
62
+ audio_array: The audio data as a numpy array.
63
+ sampling_rate: The sampling rate of the audio in Hz.
64
+ format: The format of the audio file.
65
+ """
66
+ self.audio_array = audio_array
67
+ self.sampling_rate = sampling_rate
68
+ self.format = format
69
+ self._check_valid()
70
+
71
+ def __repr__(self) -> str:
72
+ return (
73
+ f"Audio - sampling_rate={self.sampling_rate} Hz, "
74
+ f"duration={len(self.audio_array) / self.sampling_rate:.2f}s, "
75
+ f"shape={self.audio_array.shape}"
76
+ )
77
+
78
+ def _check_valid(self) -> None:
79
+ assert isinstance(self.audio_array, np.ndarray), type(np.ndarray)
80
+ assert self.audio_array.ndim == 1, f"{self.audio_array.ndim=}"
81
+ if not is_soundfile_installed():
82
+ raise ImportError(
83
+ "soundfile is required for this function. Install it with 'pip install mistral-common[soundfile]'"
84
+ )
85
+ assert self.format in EXPECTED_FORMAT_VALUES, f"{self.format=} not in {EXPECTED_FORMAT_VALUES=}"
86
+
87
+ @property
88
+ def duration(self) -> float:
89
+ r"""Calculate the duration of the audio in seconds.
90
+
91
+ Returns:
92
+ The duration of the audio in seconds.
93
+ """
94
+ # in seconds
95
+ duration: float = self.audio_array.shape[0] / self.sampling_rate
96
+ return duration
97
+
98
+ @staticmethod
99
+ def from_url(url: str, strict: bool = True) -> "Audio":
100
+ r"""Create an Audio instance from a URL.
101
+
102
+ Args:
103
+ url: The URL of the audio file.
104
+ strict: Whether to strictly enforce mono audio.
105
+
106
+ Returns:
107
+ An instance of the Audio class.
108
+ """
109
+ try:
110
+ response = requests.get(url)
111
+ response.raise_for_status()
112
+ return Audio.from_bytes(response.content, strict=strict)
113
+ except requests.RequestException as e: # Something went wrong with the request.
114
+ raise ValueError(f"Failed to download audio from URL: {url}") from e
115
+ except Exception as e: # Something went wrong with the audio file.
116
+ raise ValueError(f"Failed to create Audio instance from URL: {url} .") from e
117
+
118
+ @staticmethod
119
+ def from_base64(audio_base64: str, strict: bool = True) -> "Audio":
120
+ r"""Create an Audio instance from a base64 encoded string.
121
+
122
+ Args:
123
+ audio_base64: The base64 encoded audio data.
124
+ strict: Whether to strictly enforce mono audio. Defaults to True.
125
+
126
+ Returns:
127
+ An instance of the Audio class.
128
+ """
129
+ if not is_soundfile_installed():
130
+ raise ImportError(
131
+ "soundfile is required for this function. Install it with 'pip install mistral-common[soundfile]'"
132
+ )
133
+
134
+ if re.match(r"^data:audio/\w+;base64,", audio_base64): # Remove the prefix if it exists
135
+ audio_base64 = audio_base64.split(",")[1]
136
+
137
+ try:
138
+ audio_bytes = base64.b64decode(audio_base64)
139
+ except Exception as e:
140
+ raise ValueError("base64 decoding failed. Please check the input string is a valid base64.") from e
141
+
142
+ return Audio.from_bytes(audio_bytes, strict=strict)
143
+
144
+ @staticmethod
145
+ def from_file(file: str, strict: bool = True) -> "Audio":
146
+ r"""Create an Audio instance from an audio file.
147
+
148
+ Args:
149
+ file: Path to the audio file.
150
+ strict: Whether to strictly enforce mono audio. Defaults to True.
151
+
152
+ Returns:
153
+ An instance of the Audio class.
154
+ """
155
+ if not is_soundfile_installed():
156
+ raise ImportError(
157
+ "soundfile is required for this function. Install it with 'pip install mistral-common[soundfile]'"
158
+ )
159
+
160
+ if isinstance(file, str) and file.startswith("file://"):
161
+ file = file[7:]
162
+
163
+ if not Path(file).exists():
164
+ raise FileNotFoundError(f"{file=} does not exist")
165
+
166
+ with open(file, "rb") as f:
167
+ audio_bytes = f.read()
168
+
169
+ return Audio.from_bytes(audio_bytes, strict=strict)
170
+
171
+ @staticmethod
172
+ def from_bytes(audio_bytes: bytes, strict: bool = True) -> "Audio":
173
+ r"""Create an Audio instance from bytes.
174
+
175
+ Args:
176
+ audio_bytes: The audio data as bytes.
177
+ strict: Whether to strictly enforce mono audio. Defaults to True.
178
+
179
+ Returns:
180
+ An instance of the Audio class.
181
+ """
182
+ # Read the bytes into an audio file.
183
+ with io.BytesIO(audio_bytes) as audio_file:
184
+ with sf.SoundFile(audio_file) as f:
185
+ # Read the entire audio data
186
+ audio_array = f.read(dtype="float32")
187
+ sampling_rate = f.samplerate
188
+ audio_format = f.format
189
+
190
+ format_enum = AudioFormat(audio_format)
191
+ format = format_enum.value.lower()
192
+
193
+ if audio_array.ndim != 1:
194
+ if strict:
195
+ raise ValueError(f"{audio_array.ndim=}")
196
+ else:
197
+ audio_array = audio_array.mean(axis=1)
198
+
199
+ return Audio(audio_array=audio_array, sampling_rate=sampling_rate, format=format)
200
+
201
+ def to_base64(self, format: str, prefix: bool = False) -> str:
202
+ r"""Convert the audio data to a base64 encoded string.
203
+
204
+ Args:
205
+ format: The format to encode the audio in.
206
+ prefix: Whether to add a data prefix to the base64 encoded string.
207
+
208
+ Returns:
209
+ The base64 encoded audio data.
210
+ """
211
+ if not is_soundfile_installed():
212
+ raise ImportError(
213
+ "soundfile is required for this function. Install it with 'pip install mistral-common[soundfile]'"
214
+ )
215
+
216
+ assert format in EXPECTED_FORMAT_VALUES, f"{format=} not in {EXPECTED_FORMAT_VALUES=}"
217
+
218
+ with io.BytesIO() as audio_file:
219
+ sf.write(audio_file, self.audio_array, self.sampling_rate, format=format.upper())
220
+ audio_file.seek(0)
221
+ base64_str = base64.b64encode(audio_file.read()).decode("utf-8")
222
+ if prefix:
223
+ base64_str = f"data:audio/{format.lower()};base64,{base64_str}"
224
+ return base64_str
225
+
226
+ @staticmethod
227
+ def from_raw_audio(audio: "RawAudio") -> "Audio":
228
+ r"""Create an Audio instance from a RawAudio object.
229
+
230
+ Args:
231
+ audio: The RawAudio object containing audio data.
232
+
233
+ Returns:
234
+ An instance of the Audio class.
235
+ """
236
+ if isinstance(audio.data, bytes):
237
+ return Audio.from_bytes(audio.data)
238
+ elif isinstance(audio.data, str):
239
+ return Audio.from_base64(audio.data)
240
+ else:
241
+ raise ValueError(f"Unsupported audio data type: {type(audio.data)}")
242
+
243
+ def resample(self, new_sampling_rate: int) -> None:
244
+ r"""Resample audio data to a new sampling rate.
245
+
246
+ Args:
247
+ new_sampling_rate: The new sampling rate to resample the audio to.
248
+ """
249
+ if self.sampling_rate == new_sampling_rate:
250
+ return
251
+
252
+ if not is_soxr_installed():
253
+ raise ImportError("soxr is required for this function. Install it with 'pip install mistral-common[soxr]'")
254
+
255
+ self.audio_array = soxr.resample(self.audio_array, self.sampling_rate, new_sampling_rate, quality="HQ")
256
+ self.sampling_rate = new_sampling_rate
257
+
258
+
259
+ def hertz_to_mel(freq: Union[float, np.ndarray]) -> Union[float, np.ndarray]:
260
+ r"""Convert frequency from hertz to mels using the "slaney" mel-scale.
261
+
262
+ Args:
263
+ freq: The frequency, or multiple frequencies, in hertz (Hz).
264
+
265
+ Returns:
266
+ The frequencies on the mel scale.
267
+ """
268
+ min_log_hertz = 1000.0
269
+ min_log_mel = 15.0
270
+ logstep = 27.0 / np.log(6.4)
271
+ mels = 3.0 * freq / 200.0
272
+
273
+ if isinstance(freq, np.ndarray):
274
+ assert isinstance(mels, np.ndarray), type(mels)
275
+ log_region = freq >= min_log_hertz
276
+ mels[log_region] = min_log_mel + np.log(freq[log_region] / min_log_hertz) * logstep
277
+ elif freq >= min_log_hertz:
278
+ mels = min_log_mel + np.log(freq / min_log_hertz) * logstep
279
+
280
+ return mels
281
+
282
+
283
+ def mel_to_hertz(mels: np.ndarray) -> np.ndarray:
284
+ r"""Convert frequency from mels to hertz using the "slaney" mel-scale.
285
+
286
+ Args:
287
+ mels: The frequency, or multiple frequencies, in mels.
288
+
289
+ Returns:
290
+ The frequencies in hertz.
291
+ """
292
+ min_log_hertz = 1000.0
293
+ min_log_mel = 15.0
294
+ logstep = np.log(6.4) / 27.0
295
+ freq = 200.0 * mels / 3.0
296
+
297
+ log_region = mels >= min_log_mel
298
+ freq[log_region] = min_log_hertz * np.exp(logstep * (mels[log_region] - min_log_mel))
299
+ return freq
300
+
301
+
302
+ def _create_triangular_filter_bank(fft_freqs: np.ndarray, filter_freqs: np.ndarray) -> np.ndarray:
303
+ r"""Creates a triangular filter bank.
304
+
305
+ Adapted from *torchaudio* and *librosa*.
306
+
307
+ Args:
308
+ fft_freqs: Discrete frequencies of the FFT bins in Hz.
309
+ filter_freqs: Center frequencies of the triangular filters to create, in Hz.
310
+
311
+ Returns:
312
+ array of shape `(num_frequency_bins, num_mel_filters)`
313
+ """
314
+ filter_diff = np.diff(filter_freqs)
315
+ slopes = np.expand_dims(filter_freqs, 0) - np.expand_dims(fft_freqs, 1)
316
+ down_slopes = -slopes[:, :-2] / filter_diff[:-1]
317
+ up_slopes = slopes[:, 2:] / filter_diff[1:]
318
+ filter_bank: np.ndarray = np.maximum(np.zeros(1), np.minimum(down_slopes, up_slopes))
319
+ return filter_bank
320
+
321
+
322
+ @cache
323
+ def mel_filter_bank(
324
+ num_frequency_bins: int,
325
+ num_mel_bins: int,
326
+ min_frequency: float,
327
+ max_frequency: float,
328
+ sampling_rate: int,
329
+ ) -> np.ndarray:
330
+ r"""Create a Mel filter bank matrix for converting frequency bins to the Mel scale.
331
+
332
+ This function generates a filter bank matrix that can be used to transform a
333
+ spectrum represented in frequency bins to the Mel scale. The Mel scale is a
334
+ perceptual scale of pitches judged by listeners to be equal in distance from one another.
335
+
336
+ Args:
337
+ num_frequency_bins: The number of frequency bins in the input spectrum.
338
+ num_mel_bins: The number of desired Mel bins in the output.
339
+ min_frequency: The minimum frequency (in Hz) to consider.
340
+ max_frequency: The maximum frequency (in Hz) to consider.
341
+ sampling_rate: The sampling rate of the audio signal.
342
+
343
+ Returns:
344
+ A filter bank matrix of shape (num_mel_bins, num_frequency_bins)
345
+ that can be used to project frequency bin energies onto Mel bins.
346
+ """
347
+ if num_frequency_bins < 2:
348
+ raise ValueError(f"Require num_frequency_bins: {num_frequency_bins} >= 2")
349
+
350
+ if min_frequency > max_frequency:
351
+ raise ValueError(f"Require min_frequency: {min_frequency} <= max_frequency: {max_frequency}")
352
+
353
+ # center points of the triangular mel filters
354
+ mel_min = hertz_to_mel(min_frequency)
355
+ mel_max = hertz_to_mel(max_frequency)
356
+ mel_freqs = np.linspace(mel_min, mel_max, num_mel_bins + 2)
357
+ filter_freqs = mel_to_hertz(mel_freqs)
358
+
359
+ # frequencies of FFT bins in Hz
360
+ fft_freqs = np.linspace(0, sampling_rate // 2, num_frequency_bins)
361
+
362
+ mel_filters = _create_triangular_filter_bank(fft_freqs, filter_freqs)
363
+
364
+ # Slaney-style mel is scaled to be approx constant energy per channel
365
+ enorm = 2.0 / (filter_freqs[2 : num_mel_bins + 2] - filter_freqs[:num_mel_bins])
366
+ mel_filters *= np.expand_dims(enorm, 0)
367
+
368
+ if (mel_filters.max(axis=0) == 0.0).any():
369
+ raise ValueError(
370
+ "At least one mel filter has all zero values. "
371
+ f"The value for `num_mel_filters` ({num_mel_bins}) "
372
+ "may be set too high. "
373
+ "Or, the value for `num_frequency_bins` "
374
+ f"({num_frequency_bins}) may be set too low."
375
+ )
376
+ return mel_filters
venv/lib/python3.10/site-packages/mistral_common/base.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from pydantic import BaseModel, ConfigDict
2
+
3
+
4
+ class MistralBase(BaseModel):
5
+ r"""Base class for all Mistral Pydantic models.
6
+
7
+ Forbids extra attributes, validates default values and use enum values.
8
+ """
9
+
10
+ model_config = ConfigDict(extra="forbid", validate_default=True, use_enum_values=True)
venv/lib/python3.10/site-packages/mistral_common/exceptions.py ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+
3
+
4
+ class MistralCommonException(Exception):
5
+ r"""Base class for all Mistral exceptions.
6
+
7
+ Attributes:
8
+ message: A human-readable message describing the error.
9
+ """
10
+
11
+ message: str = "Internal server error"
12
+
13
+ def __init__(
14
+ self,
15
+ message: Optional[str] = None,
16
+ ) -> None:
17
+ r"""Initialize the `MistralCommonException` with an optional message.
18
+
19
+ If no message is provided, the default message is used.
20
+
21
+ Args:
22
+ message: A human-readable message describing the error.
23
+ """
24
+ if message:
25
+ self.message = message
26
+
27
+
28
+ class TokenizerException(MistralCommonException):
29
+ r"""Exception raised for errors in the tokenizer."""
30
+
31
+ def __init__(self, message: str) -> None:
32
+ r"""Initialize the `TokenizerException` with a message.
33
+
34
+ Args:
35
+ message: A human-readable message describing the error.
36
+ """
37
+ super().__init__(message)
38
+
39
+
40
+ class UnsupportedTokenizerFeatureException(MistralCommonException):
41
+ r"""Exception raised for unsupported features in the tokenizer."""
42
+
43
+ def __init__(self, message: str) -> None:
44
+ r"""Initialize the `UnsupportedTokenizerFeatureException` with a message.
45
+
46
+ Args:
47
+ message: A human-readable message describing the error.
48
+ """
49
+ super().__init__(message)
50
+
51
+
52
+ class InvalidRequestException(MistralCommonException):
53
+ r"""Exception raised for invalid requests."""
54
+
55
+ def __init__(self, message: str) -> None:
56
+ r"""Initialize the `InvalidRequestException` with a message.
57
+
58
+ Args:
59
+ message: A human-readable message describing the error.
60
+ """
61
+ super().__init__(message)
62
+
63
+
64
+ class InvalidSystemPromptException(MistralCommonException):
65
+ r"""Exception raised for invalid system prompts."""
66
+
67
+ def __init__(self, message: str) -> None:
68
+ r"""Initialize the `InvalidSystemPromptException` with a message.
69
+
70
+ Args:
71
+ message: A human-readable message describing the error.
72
+ """
73
+ super().__init__(message)
74
+
75
+
76
+ class InvalidMessageStructureException(MistralCommonException):
77
+ r"""Exception raised for invalid message structures."""
78
+
79
+ def __init__(self, message: str) -> None:
80
+ r"""Initialize the `InvalidMessageStructureException` with a message.
81
+
82
+ Args:
83
+ message: A human-readable message describing the error.
84
+ """
85
+ super().__init__(message)
86
+
87
+
88
+ class InvalidAssistantMessageException(MistralCommonException):
89
+ r"""Exception raised for invalid assistant messages."""
90
+
91
+ def __init__(self, message: str) -> None:
92
+ r"""Initialize the `InvalidAssistantMessageException` with a message.
93
+
94
+ Args:
95
+ message: A human-readable message describing the error.
96
+ """
97
+ super().__init__(message)
98
+
99
+
100
+ class InvalidToolMessageException(MistralCommonException):
101
+ r"""Exception raised for invalid tool messages."""
102
+
103
+ def __init__(self, message: str) -> None:
104
+ r"""Initialize the `InvalidToolMessageException` with a message.
105
+
106
+ Args:
107
+ message: A human-readable message describing the error.
108
+ """
109
+ super().__init__(message)
110
+
111
+
112
+ class InvalidToolSchemaException(MistralCommonException):
113
+ r"""Exception raised for invalid tool schemas."""
114
+
115
+ def __init__(self, message: str) -> None:
116
+ r"""Initialize the `InvalidToolSchemaException` with a message.
117
+
118
+ Args:
119
+ message: A human-readable message describing the error.
120
+ """
121
+ super().__init__(message)
122
+
123
+
124
+ class InvalidUserMessageException(MistralCommonException):
125
+ r"""Exception raised for invalid user messages."""
126
+
127
+ def __init__(self, message: str) -> None:
128
+ r"""Initialize the `InvalidUserMessageException` with a message.
129
+
130
+ Args:
131
+ message: A human-readable message describing the error.
132
+ """
133
+ super().__init__(message)
134
+
135
+
136
+ class InvalidFunctionCallException(MistralCommonException):
137
+ r"""Exception raised for invalid function calls."""
138
+
139
+ def __init__(self, message: str) -> None:
140
+ r"""Initialize the `InvalidFunctionCallException` with a message.
141
+
142
+ Args:
143
+ message: A human-readable message describing the error.
144
+ """
145
+ super().__init__(message)
146
+
147
+
148
+ class InvalidToolException(MistralCommonException):
149
+ r"""Exception raised for invalid tools."""
150
+
151
+ def __init__(self, message: str) -> None:
152
+ r"""Initialize the `InvalidToolException` with a message.
153
+
154
+ Args:
155
+ message: A human-readable message describing the error.
156
+ """
157
+ super().__init__(message)
venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/image.cpython-310.pyc ADDED
Binary file (7.49 kB). View file
 
venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/instruct.cpython-310.pyc ADDED
Binary file (35.6 kB). View file
 
venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/mistral.cpython-310.pyc ADDED
Binary file (15.1 kB). View file
 
venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/sentencepiece.cpython-310.pyc ADDED
Binary file (9.41 kB). View file
 
venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/tekken.cpython-310.pyc ADDED
Binary file (18.6 kB). View file
 
venv/lib/python3.10/site-packages/mistral_common/tokens/tokenizers/__pycache__/utils.cpython-310.pyc ADDED
Binary file (5.72 kB). View file
 
venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/METADATA ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.3
2
+ Name: opentelemetry-exporter-otlp-proto-grpc
3
+ Version: 1.26.0
4
+ Summary: OpenTelemetry Collector Protobuf over gRPC Exporter
5
+ Project-URL: Homepage, https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-otlp-proto-grpc
6
+ Author-email: OpenTelemetry Authors <cncf-opentelemetry-contributors@lists.cncf.io>
7
+ License: Apache-2.0
8
+ License-File: LICENSE
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Framework :: OpenTelemetry
11
+ Classifier: Framework :: OpenTelemetry :: Exporters
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Requires-Python: >=3.8
22
+ Requires-Dist: deprecated>=1.2.6
23
+ Requires-Dist: googleapis-common-protos~=1.52
24
+ Requires-Dist: grpcio<2.0.0,>=1.0.0
25
+ Requires-Dist: opentelemetry-api~=1.15
26
+ Requires-Dist: opentelemetry-exporter-otlp-proto-common==1.26.0
27
+ Requires-Dist: opentelemetry-proto==1.26.0
28
+ Requires-Dist: opentelemetry-sdk~=1.26.0
29
+ Description-Content-Type: text/x-rst
30
+
31
+ OpenTelemetry Collector Protobuf over gRPC Exporter
32
+ ===================================================
33
+
34
+ |pypi|
35
+
36
+ .. |pypi| image:: https://badge.fury.io/py/opentelemetry-exporter-otlp-proto-grpc.svg
37
+ :target: https://pypi.org/project/opentelemetry-exporter-otlp-proto-grpc/
38
+
39
+ This library allows to export data to the OpenTelemetry Collector using the OpenTelemetry Protocol using Protobuf over gRPC.
40
+
41
+ Installation
42
+ ------------
43
+
44
+ ::
45
+
46
+ pip install opentelemetry-exporter-otlp-proto-grpc
47
+
48
+
49
+ References
50
+ ----------
51
+
52
+ * `OpenTelemetry Collector Exporter <https://opentelemetry-python.readthedocs.io/en/latest/exporter/otlp/otlp.html>`_
53
+ * `OpenTelemetry Collector <https://github.com/open-telemetry/opentelemetry-collector/>`_
54
+ * `OpenTelemetry <https://opentelemetry.io/>`_
55
+ * `OpenTelemetry Protocol Specification <https://github.com/open-telemetry/oteps/blob/main/text/0035-opentelemetry-protocol.md>`_
venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/RECORD ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ opentelemetry/exporter/otlp/proto/grpc/__init__.py,sha256=peLYqRnnC1x5eRpIcZ9k6MzCqlyyHRRfeNJ9Xr7i5EQ,2615
2
+ opentelemetry/exporter/otlp/proto/grpc/__pycache__/__init__.cpython-310.pyc,,
3
+ opentelemetry/exporter/otlp/proto/grpc/__pycache__/exporter.cpython-310.pyc,,
4
+ opentelemetry/exporter/otlp/proto/grpc/__pycache__/version.cpython-310.pyc,,
5
+ opentelemetry/exporter/otlp/proto/grpc/_log_exporter/__init__.py,sha256=3vXbOecXMMH1uBB77O-H2u8rAYPkXQutOB0F7b4eg48,4099
6
+ opentelemetry/exporter/otlp/proto/grpc/_log_exporter/__pycache__/__init__.cpython-310.pyc,,
7
+ opentelemetry/exporter/otlp/proto/grpc/exporter.py,sha256=TUxfzyW4tMagHCHU4ZNQNiFkLsfuHQgOnIdGy8Fbzrc,11277
8
+ opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py,sha256=13zAtanl2-QIewmRfPG9nEVJd2pDpLOrCZCJgQZAjzo,9632
9
+ opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__pycache__/__init__.cpython-310.pyc,,
10
+ opentelemetry/exporter/otlp/proto/grpc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py,sha256=SVIalZa2FhrANfO_TNOhZ1E-qtOqf9sLfNlCElkSD_w,4928
12
+ opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__pycache__/__init__.cpython-310.pyc,,
13
+ opentelemetry/exporter/otlp/proto/grpc/version.py,sha256=ANYEMcxW_7kp7m-QhNKZUKat8Jf1JBtQ3N9YJF-3SLU,608
14
+ opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
15
+ opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/METADATA,sha256=6MPHvxU_g50ufrGqkneRBeYliFdl9o9TzGlRHwlOeEs,2267
16
+ opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/RECORD,,
17
+ opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
18
+ opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/entry_points.txt,sha256=nK83xmhsd4H0P7QGraUwYCVtM9cnQEBL-JQR84JIL_k,365
19
+ opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/WHEEL ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.25.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/entry_points.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ [opentelemetry_logs_exporter]
2
+ otlp_proto_grpc = opentelemetry.exporter.otlp.proto.grpc._log_exporter:OTLPLogExporter
3
+
4
+ [opentelemetry_metrics_exporter]
5
+ otlp_proto_grpc = opentelemetry.exporter.otlp.proto.grpc.metric_exporter:OTLPMetricExporter
6
+
7
+ [opentelemetry_traces_exporter]
8
+ otlp_proto_grpc = opentelemetry.exporter.otlp.proto.grpc.trace_exporter:OTLPSpanExporter
venv/lib/python3.10/site-packages/opentelemetry_exporter_otlp_proto_grpc-1.26.0.dist-info/licenses/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/METADATA ADDED
@@ -0,0 +1,410 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.2
2
+ Name: ray
3
+ Version: 2.48.0
4
+ Summary: Ray provides a simple, universal API for building distributed applications.
5
+ Home-page: https://github.com/ray-project/ray
6
+ Author: Ray Team
7
+ Author-email: ray-dev@googlegroups.com
8
+ License: Apache 2.0
9
+ Keywords: ray distributed parallel machine-learning hyperparameter-tuningreinforcement-learning deep-learning serving python
10
+ Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Requires-Python: >=3.9
15
+ Requires-Dist: click>=7.0
16
+ Requires-Dist: filelock
17
+ Requires-Dist: jsonschema
18
+ Requires-Dist: msgpack<2.0.0,>=1.0.0
19
+ Requires-Dist: packaging
20
+ Requires-Dist: protobuf!=3.19.5,>=3.15.3
21
+ Requires-Dist: pyyaml
22
+ Requires-Dist: requests
23
+ Provides-Extra: cgraph
24
+ Requires-Dist: cupy-cuda12x; sys_platform != "darwin" and extra == "cgraph"
25
+ Provides-Extra: client
26
+ Requires-Dist: grpcio!=1.56.0; sys_platform == "darwin" and extra == "client"
27
+ Requires-Dist: grpcio; extra == "client"
28
+ Provides-Extra: data
29
+ Requires-Dist: numpy>=1.20; extra == "data"
30
+ Requires-Dist: pandas>=1.3; extra == "data"
31
+ Requires-Dist: pyarrow>=9.0.0; extra == "data"
32
+ Requires-Dist: fsspec; extra == "data"
33
+ Provides-Extra: default
34
+ Requires-Dist: aiohttp>=3.7; extra == "default"
35
+ Requires-Dist: aiohttp_cors; extra == "default"
36
+ Requires-Dist: colorful; extra == "default"
37
+ Requires-Dist: py-spy>=0.2.0; python_version < "3.12" and extra == "default"
38
+ Requires-Dist: py-spy>=0.4.0; python_version >= "3.12" and extra == "default"
39
+ Requires-Dist: requests; extra == "default"
40
+ Requires-Dist: grpcio>=1.32.0; python_version < "3.10" and extra == "default"
41
+ Requires-Dist: grpcio>=1.42.0; python_version >= "3.10" and extra == "default"
42
+ Requires-Dist: opencensus; extra == "default"
43
+ Requires-Dist: opentelemetry-sdk>=1.30.0; extra == "default"
44
+ Requires-Dist: opentelemetry-exporter-prometheus; extra == "default"
45
+ Requires-Dist: opentelemetry-proto; extra == "default"
46
+ Requires-Dist: pydantic!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,<3; extra == "default"
47
+ Requires-Dist: prometheus_client>=0.7.1; extra == "default"
48
+ Requires-Dist: smart_open; extra == "default"
49
+ Requires-Dist: virtualenv!=20.21.1,>=20.0.24; extra == "default"
50
+ Provides-Extra: observability
51
+ Requires-Dist: memray; sys_platform != "win32" and extra == "observability"
52
+ Provides-Extra: serve
53
+ Requires-Dist: colorful; extra == "serve"
54
+ Requires-Dist: opencensus; extra == "serve"
55
+ Requires-Dist: opentelemetry-sdk>=1.30.0; extra == "serve"
56
+ Requires-Dist: py-spy>=0.4.0; python_version >= "3.12" and extra == "serve"
57
+ Requires-Dist: virtualenv!=20.21.1,>=20.0.24; extra == "serve"
58
+ Requires-Dist: uvicorn[standard]; extra == "serve"
59
+ Requires-Dist: py-spy>=0.2.0; python_version < "3.12" and extra == "serve"
60
+ Requires-Dist: prometheus_client>=0.7.1; extra == "serve"
61
+ Requires-Dist: pydantic!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,<3; extra == "serve"
62
+ Requires-Dist: aiohttp_cors; extra == "serve"
63
+ Requires-Dist: aiohttp>=3.7; extra == "serve"
64
+ Requires-Dist: grpcio>=1.32.0; python_version < "3.10" and extra == "serve"
65
+ Requires-Dist: grpcio>=1.42.0; python_version >= "3.10" and extra == "serve"
66
+ Requires-Dist: watchfiles; extra == "serve"
67
+ Requires-Dist: requests; extra == "serve"
68
+ Requires-Dist: smart_open; extra == "serve"
69
+ Requires-Dist: starlette; extra == "serve"
70
+ Requires-Dist: fastapi; extra == "serve"
71
+ Requires-Dist: opentelemetry-exporter-prometheus; extra == "serve"
72
+ Requires-Dist: opentelemetry-proto; extra == "serve"
73
+ Provides-Extra: tune
74
+ Requires-Dist: pandas; extra == "tune"
75
+ Requires-Dist: tensorboardX>=1.9; extra == "tune"
76
+ Requires-Dist: requests; extra == "tune"
77
+ Requires-Dist: pyarrow>=9.0.0; extra == "tune"
78
+ Requires-Dist: fsspec; extra == "tune"
79
+ Provides-Extra: adag
80
+ Requires-Dist: cupy-cuda12x; sys_platform != "darwin" and extra == "adag"
81
+ Provides-Extra: serve-grpc
82
+ Requires-Dist: colorful; extra == "serve-grpc"
83
+ Requires-Dist: opencensus; extra == "serve-grpc"
84
+ Requires-Dist: opentelemetry-sdk>=1.30.0; extra == "serve-grpc"
85
+ Requires-Dist: py-spy>=0.4.0; python_version >= "3.12" and extra == "serve-grpc"
86
+ Requires-Dist: virtualenv!=20.21.1,>=20.0.24; extra == "serve-grpc"
87
+ Requires-Dist: uvicorn[standard]; extra == "serve-grpc"
88
+ Requires-Dist: py-spy>=0.2.0; python_version < "3.12" and extra == "serve-grpc"
89
+ Requires-Dist: prometheus_client>=0.7.1; extra == "serve-grpc"
90
+ Requires-Dist: pydantic!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,<3; extra == "serve-grpc"
91
+ Requires-Dist: aiohttp_cors; extra == "serve-grpc"
92
+ Requires-Dist: aiohttp>=3.7; extra == "serve-grpc"
93
+ Requires-Dist: grpcio>=1.32.0; python_version < "3.10" and extra == "serve-grpc"
94
+ Requires-Dist: grpcio>=1.42.0; python_version >= "3.10" and extra == "serve-grpc"
95
+ Requires-Dist: pyOpenSSL; extra == "serve-grpc"
96
+ Requires-Dist: watchfiles; extra == "serve-grpc"
97
+ Requires-Dist: requests; extra == "serve-grpc"
98
+ Requires-Dist: smart_open; extra == "serve-grpc"
99
+ Requires-Dist: starlette; extra == "serve-grpc"
100
+ Requires-Dist: fastapi; extra == "serve-grpc"
101
+ Requires-Dist: opentelemetry-exporter-prometheus; extra == "serve-grpc"
102
+ Requires-Dist: opentelemetry-proto; extra == "serve-grpc"
103
+ Provides-Extra: cpp
104
+ Requires-Dist: ray-cpp==2.48.0; extra == "cpp"
105
+ Provides-Extra: rllib
106
+ Requires-Dist: pandas; extra == "rllib"
107
+ Requires-Dist: tensorboardX>=1.9; extra == "rllib"
108
+ Requires-Dist: requests; extra == "rllib"
109
+ Requires-Dist: pyarrow>=9.0.0; extra == "rllib"
110
+ Requires-Dist: fsspec; extra == "rllib"
111
+ Requires-Dist: dm_tree; extra == "rllib"
112
+ Requires-Dist: gymnasium==1.0.0; extra == "rllib"
113
+ Requires-Dist: lz4; extra == "rllib"
114
+ Requires-Dist: ormsgpack==1.7.0; extra == "rllib"
115
+ Requires-Dist: pyyaml; extra == "rllib"
116
+ Requires-Dist: scipy; extra == "rllib"
117
+ Provides-Extra: train
118
+ Requires-Dist: pandas; extra == "train"
119
+ Requires-Dist: tensorboardX>=1.9; extra == "train"
120
+ Requires-Dist: requests; extra == "train"
121
+ Requires-Dist: pyarrow>=9.0.0; extra == "train"
122
+ Requires-Dist: fsspec; extra == "train"
123
+ Requires-Dist: pydantic!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,<3; extra == "train"
124
+ Provides-Extra: air
125
+ Requires-Dist: pandas; extra == "air"
126
+ Requires-Dist: colorful; extra == "air"
127
+ Requires-Dist: opencensus; extra == "air"
128
+ Requires-Dist: opentelemetry-sdk>=1.30.0; extra == "air"
129
+ Requires-Dist: py-spy>=0.4.0; python_version >= "3.12" and extra == "air"
130
+ Requires-Dist: virtualenv!=20.21.1,>=20.0.24; extra == "air"
131
+ Requires-Dist: uvicorn[standard]; extra == "air"
132
+ Requires-Dist: py-spy>=0.2.0; python_version < "3.12" and extra == "air"
133
+ Requires-Dist: prometheus_client>=0.7.1; extra == "air"
134
+ Requires-Dist: pyarrow>=9.0.0; extra == "air"
135
+ Requires-Dist: pydantic!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,<3; extra == "air"
136
+ Requires-Dist: aiohttp_cors; extra == "air"
137
+ Requires-Dist: aiohttp>=3.7; extra == "air"
138
+ Requires-Dist: grpcio>=1.32.0; python_version < "3.10" and extra == "air"
139
+ Requires-Dist: grpcio>=1.42.0; python_version >= "3.10" and extra == "air"
140
+ Requires-Dist: tensorboardX>=1.9; extra == "air"
141
+ Requires-Dist: watchfiles; extra == "air"
142
+ Requires-Dist: requests; extra == "air"
143
+ Requires-Dist: pandas>=1.3; extra == "air"
144
+ Requires-Dist: fsspec; extra == "air"
145
+ Requires-Dist: smart_open; extra == "air"
146
+ Requires-Dist: starlette; extra == "air"
147
+ Requires-Dist: numpy>=1.20; extra == "air"
148
+ Requires-Dist: fastapi; extra == "air"
149
+ Requires-Dist: opentelemetry-exporter-prometheus; extra == "air"
150
+ Requires-Dist: opentelemetry-proto; extra == "air"
151
+ Provides-Extra: all
152
+ Requires-Dist: grpcio!=1.56.0; sys_platform == "darwin" and extra == "all"
153
+ Requires-Dist: pandas; extra == "all"
154
+ Requires-Dist: scipy; extra == "all"
155
+ Requires-Dist: colorful; extra == "all"
156
+ Requires-Dist: opencensus; extra == "all"
157
+ Requires-Dist: grpcio; extra == "all"
158
+ Requires-Dist: opentelemetry-sdk>=1.30.0; extra == "all"
159
+ Requires-Dist: py-spy>=0.4.0; python_version >= "3.12" and extra == "all"
160
+ Requires-Dist: virtualenv!=20.21.1,>=20.0.24; extra == "all"
161
+ Requires-Dist: uvicorn[standard]; extra == "all"
162
+ Requires-Dist: py-spy>=0.2.0; python_version < "3.12" and extra == "all"
163
+ Requires-Dist: dm_tree; extra == "all"
164
+ Requires-Dist: gymnasium==1.0.0; extra == "all"
165
+ Requires-Dist: prometheus_client>=0.7.1; extra == "all"
166
+ Requires-Dist: lz4; extra == "all"
167
+ Requires-Dist: pyarrow>=9.0.0; extra == "all"
168
+ Requires-Dist: pydantic!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,<3; extra == "all"
169
+ Requires-Dist: aiohttp_cors; extra == "all"
170
+ Requires-Dist: aiohttp>=3.7; extra == "all"
171
+ Requires-Dist: grpcio>=1.32.0; python_version < "3.10" and extra == "all"
172
+ Requires-Dist: grpcio>=1.42.0; python_version >= "3.10" and extra == "all"
173
+ Requires-Dist: pyOpenSSL; extra == "all"
174
+ Requires-Dist: tensorboardX>=1.9; extra == "all"
175
+ Requires-Dist: watchfiles; extra == "all"
176
+ Requires-Dist: requests; extra == "all"
177
+ Requires-Dist: cupy-cuda12x; sys_platform != "darwin" and extra == "all"
178
+ Requires-Dist: pandas>=1.3; extra == "all"
179
+ Requires-Dist: fsspec; extra == "all"
180
+ Requires-Dist: smart_open; extra == "all"
181
+ Requires-Dist: pyyaml; extra == "all"
182
+ Requires-Dist: starlette; extra == "all"
183
+ Requires-Dist: numpy>=1.20; extra == "all"
184
+ Requires-Dist: memray; sys_platform != "win32" and extra == "all"
185
+ Requires-Dist: fastapi; extra == "all"
186
+ Requires-Dist: ormsgpack==1.7.0; extra == "all"
187
+ Requires-Dist: opentelemetry-exporter-prometheus; extra == "all"
188
+ Requires-Dist: opentelemetry-proto; extra == "all"
189
+ Provides-Extra: all-cpp
190
+ Requires-Dist: grpcio!=1.56.0; sys_platform == "darwin" and extra == "all-cpp"
191
+ Requires-Dist: pandas; extra == "all-cpp"
192
+ Requires-Dist: scipy; extra == "all-cpp"
193
+ Requires-Dist: colorful; extra == "all-cpp"
194
+ Requires-Dist: opencensus; extra == "all-cpp"
195
+ Requires-Dist: grpcio; extra == "all-cpp"
196
+ Requires-Dist: opentelemetry-sdk>=1.30.0; extra == "all-cpp"
197
+ Requires-Dist: py-spy>=0.4.0; python_version >= "3.12" and extra == "all-cpp"
198
+ Requires-Dist: virtualenv!=20.21.1,>=20.0.24; extra == "all-cpp"
199
+ Requires-Dist: uvicorn[standard]; extra == "all-cpp"
200
+ Requires-Dist: py-spy>=0.2.0; python_version < "3.12" and extra == "all-cpp"
201
+ Requires-Dist: dm_tree; extra == "all-cpp"
202
+ Requires-Dist: gymnasium==1.0.0; extra == "all-cpp"
203
+ Requires-Dist: prometheus_client>=0.7.1; extra == "all-cpp"
204
+ Requires-Dist: lz4; extra == "all-cpp"
205
+ Requires-Dist: pyarrow>=9.0.0; extra == "all-cpp"
206
+ Requires-Dist: pydantic!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,<3; extra == "all-cpp"
207
+ Requires-Dist: aiohttp_cors; extra == "all-cpp"
208
+ Requires-Dist: aiohttp>=3.7; extra == "all-cpp"
209
+ Requires-Dist: grpcio>=1.32.0; python_version < "3.10" and extra == "all-cpp"
210
+ Requires-Dist: grpcio>=1.42.0; python_version >= "3.10" and extra == "all-cpp"
211
+ Requires-Dist: pyOpenSSL; extra == "all-cpp"
212
+ Requires-Dist: tensorboardX>=1.9; extra == "all-cpp"
213
+ Requires-Dist: watchfiles; extra == "all-cpp"
214
+ Requires-Dist: requests; extra == "all-cpp"
215
+ Requires-Dist: cupy-cuda12x; sys_platform != "darwin" and extra == "all-cpp"
216
+ Requires-Dist: pandas>=1.3; extra == "all-cpp"
217
+ Requires-Dist: fsspec; extra == "all-cpp"
218
+ Requires-Dist: smart_open; extra == "all-cpp"
219
+ Requires-Dist: pyyaml; extra == "all-cpp"
220
+ Requires-Dist: starlette; extra == "all-cpp"
221
+ Requires-Dist: numpy>=1.20; extra == "all-cpp"
222
+ Requires-Dist: memray; sys_platform != "win32" and extra == "all-cpp"
223
+ Requires-Dist: fastapi; extra == "all-cpp"
224
+ Requires-Dist: ormsgpack==1.7.0; extra == "all-cpp"
225
+ Requires-Dist: ray-cpp==2.48.0; extra == "all-cpp"
226
+ Requires-Dist: opentelemetry-exporter-prometheus; extra == "all-cpp"
227
+ Requires-Dist: opentelemetry-proto; extra == "all-cpp"
228
+ Provides-Extra: llm
229
+ Requires-Dist: colorful; extra == "llm"
230
+ Requires-Dist: opencensus; extra == "llm"
231
+ Requires-Dist: opentelemetry-sdk>=1.30.0; extra == "llm"
232
+ Requires-Dist: py-spy>=0.4.0; python_version >= "3.12" and extra == "llm"
233
+ Requires-Dist: virtualenv!=20.21.1,>=20.0.24; extra == "llm"
234
+ Requires-Dist: uvicorn[standard]; extra == "llm"
235
+ Requires-Dist: jsonref>=1.1.0; extra == "llm"
236
+ Requires-Dist: py-spy>=0.2.0; python_version < "3.12" and extra == "llm"
237
+ Requires-Dist: prometheus_client>=0.7.1; extra == "llm"
238
+ Requires-Dist: ninja; extra == "llm"
239
+ Requires-Dist: pyarrow>=9.0.0; extra == "llm"
240
+ Requires-Dist: pydantic!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,<3; extra == "llm"
241
+ Requires-Dist: aiohttp_cors; extra == "llm"
242
+ Requires-Dist: aiohttp>=3.7; extra == "llm"
243
+ Requires-Dist: grpcio>=1.32.0; python_version < "3.10" and extra == "llm"
244
+ Requires-Dist: typer; extra == "llm"
245
+ Requires-Dist: vllm>=0.9.2; extra == "llm"
246
+ Requires-Dist: grpcio>=1.42.0; python_version >= "3.10" and extra == "llm"
247
+ Requires-Dist: async-timeout; python_version < "3.11" and extra == "llm"
248
+ Requires-Dist: watchfiles; extra == "llm"
249
+ Requires-Dist: requests; extra == "llm"
250
+ Requires-Dist: pandas>=1.3; extra == "llm"
251
+ Requires-Dist: fsspec; extra == "llm"
252
+ Requires-Dist: smart_open; extra == "llm"
253
+ Requires-Dist: starlette; extra == "llm"
254
+ Requires-Dist: numpy>=1.20; extra == "llm"
255
+ Requires-Dist: fastapi; extra == "llm"
256
+ Requires-Dist: opentelemetry-exporter-prometheus; extra == "llm"
257
+ Requires-Dist: jsonschema; extra == "llm"
258
+ Requires-Dist: opentelemetry-proto; extra == "llm"
259
+ Dynamic: author
260
+ Dynamic: author-email
261
+ Dynamic: classifier
262
+ Dynamic: description
263
+ Dynamic: home-page
264
+ Dynamic: keywords
265
+ Dynamic: license
266
+ Dynamic: provides-extra
267
+ Dynamic: requires-dist
268
+ Dynamic: requires-python
269
+ Dynamic: summary
270
+
271
+ .. image:: https://github.com/ray-project/ray/raw/master/doc/source/images/ray_header_logo.png
272
+
273
+ .. image:: https://readthedocs.org/projects/ray/badge/?version=master
274
+ :target: http://docs.ray.io/en/master/?badge=master
275
+
276
+ .. image:: https://img.shields.io/badge/Ray-Join%20Slack-blue
277
+ :target: https://www.ray.io/join-slack
278
+
279
+ .. image:: https://img.shields.io/badge/Discuss-Ask%20Questions-blue
280
+ :target: https://discuss.ray.io/
281
+
282
+ .. image:: https://img.shields.io/twitter/follow/raydistributed.svg?style=social&logo=twitter
283
+ :target: https://x.com/raydistributed
284
+
285
+ .. image:: https://img.shields.io/badge/Get_started_for_free-3C8AE9?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAEKADAAQAAAABAAAAEAAAAAA0VXHyAAABKElEQVQ4Ea2TvWoCQRRGnWCVWChIIlikC9hpJdikSbGgaONbpAoY8gKBdAGfwkfwKQypLQ1sEGyMYhN1Pd%2B6A8PqwBZeOHt%2FvsvMnd3ZXBRFPQjBZ9K6OY8ZxF%2B0IYw9PW3qz8aY6lk92bZ%2BVqSI3oC9T7%2FyCVnrF1ngj93us%2B540sf5BrCDfw9b6jJ5lx%2FyjtGKBBXc3cnqx0INN4ImbI%2Bl%2BPnI8zWfFEr4chLLrWHCp9OO9j19Kbc91HX0zzzBO8EbLK2Iv4ZvNO3is3h6jb%2BCwO0iL8AaWqB7ILPTxq3kDypqvBuYuwswqo6wgYJbT8XxBPZ8KS1TepkFdC79TAHHce%2F7LbVioi3wEfTpmeKtPRGEeoldSP%2FOeoEftpP4BRbgXrYZefsAI%2BP9JU7ImyEAAAAASUVORK5CYII%3D
286
+ :target: https://www.anyscale.com/ray-on-anyscale?utm_source=github&utm_medium=ray_readme&utm_campaign=get_started_badge
287
+
288
+ Ray is a unified framework for scaling AI and Python applications. Ray consists of a core distributed runtime and a set of AI libraries for simplifying ML compute:
289
+
290
+ .. image:: https://github.com/ray-project/ray/raw/master/doc/source/images/what-is-ray-padded.svg
291
+
292
+ ..
293
+ https://docs.google.com/drawings/d/1Pl8aCYOsZCo61cmp57c7Sja6HhIygGCvSZLi_AuBuqo/edit
294
+
295
+ Learn more about `Ray AI Libraries`_:
296
+
297
+ - `Data`_: Scalable Datasets for ML
298
+ - `Train`_: Distributed Training
299
+ - `Tune`_: Scalable Hyperparameter Tuning
300
+ - `RLlib`_: Scalable Reinforcement Learning
301
+ - `Serve`_: Scalable and Programmable Serving
302
+
303
+ Or more about `Ray Core`_ and its key abstractions:
304
+
305
+ - `Tasks`_: Stateless functions executed in the cluster.
306
+ - `Actors`_: Stateful worker processes created in the cluster.
307
+ - `Objects`_: Immutable values accessible across the cluster.
308
+
309
+ Learn more about Monitoring and Debugging:
310
+
311
+ - Monitor Ray apps and clusters with the `Ray Dashboard <https://docs.ray.io/en/latest/ray-core/ray-dashboard.html>`__.
312
+ - Debug Ray apps with the `Ray Distributed Debugger <https://docs.ray.io/en/latest/ray-observability/ray-distributed-debugger.html>`__.
313
+
314
+ Ray runs on any machine, cluster, cloud provider, and Kubernetes, and features a growing
315
+ `ecosystem of community integrations`_.
316
+
317
+ Install Ray with: ``pip install ray``. For nightly wheels, see the
318
+ `Installation page <https://docs.ray.io/en/latest/ray-overview/installation.html>`__.
319
+
320
+ .. _`Serve`: https://docs.ray.io/en/latest/serve/index.html
321
+ .. _`Data`: https://docs.ray.io/en/latest/data/dataset.html
322
+ .. _`Workflow`: https://docs.ray.io/en/latest/workflows/
323
+ .. _`Train`: https://docs.ray.io/en/latest/train/train.html
324
+ .. _`Tune`: https://docs.ray.io/en/latest/tune/index.html
325
+ .. _`RLlib`: https://docs.ray.io/en/latest/rllib/index.html
326
+ .. _`ecosystem of community integrations`: https://docs.ray.io/en/latest/ray-overview/ray-libraries.html
327
+
328
+
329
+ Why Ray?
330
+ --------
331
+
332
+ Today's ML workloads are increasingly compute-intensive. As convenient as they are, single-node development environments such as your laptop cannot scale to meet these demands.
333
+
334
+ Ray is a unified way to scale Python and AI applications from a laptop to a cluster.
335
+
336
+ With Ray, you can seamlessly scale the same code from a laptop to a cluster. Ray is designed to be general-purpose, meaning that it can performantly run any kind of workload. If your application is written in Python, you can scale it with Ray, no other infrastructure required.
337
+
338
+ More Information
339
+ ----------------
340
+
341
+ - `Documentation`_
342
+ - `Ray Architecture whitepaper`_
343
+ - `Exoshuffle: large-scale data shuffle in Ray`_
344
+ - `Ownership: a distributed futures system for fine-grained tasks`_
345
+ - `RLlib paper`_
346
+ - `Tune paper`_
347
+
348
+ *Older documents:*
349
+
350
+ - `Ray paper`_
351
+ - `Ray HotOS paper`_
352
+ - `Ray Architecture v1 whitepaper`_
353
+
354
+ .. _`Ray AI Libraries`: https://docs.ray.io/en/latest/ray-air/getting-started.html
355
+ .. _`Ray Core`: https://docs.ray.io/en/latest/ray-core/walkthrough.html
356
+ .. _`Tasks`: https://docs.ray.io/en/latest/ray-core/tasks.html
357
+ .. _`Actors`: https://docs.ray.io/en/latest/ray-core/actors.html
358
+ .. _`Objects`: https://docs.ray.io/en/latest/ray-core/objects.html
359
+ .. _`Documentation`: http://docs.ray.io/en/latest/index.html
360
+ .. _`Ray Architecture v1 whitepaper`: https://docs.google.com/document/d/1lAy0Owi-vPz2jEqBSaHNQcy2IBSDEHyXNOQZlGuj93c/preview
361
+ .. _`Ray Architecture whitepaper`: https://docs.google.com/document/d/1tBw9A4j62ruI5omIJbMxly-la5w4q_TjyJgJL_jN2fI/preview
362
+ .. _`Exoshuffle: large-scale data shuffle in Ray`: https://arxiv.org/abs/2203.05072
363
+ .. _`Ownership: a distributed futures system for fine-grained tasks`: https://www.usenix.org/system/files/nsdi21-wang.pdf
364
+ .. _`Ray paper`: https://arxiv.org/abs/1712.05889
365
+ .. _`Ray HotOS paper`: https://arxiv.org/abs/1703.03924
366
+ .. _`RLlib paper`: https://arxiv.org/abs/1712.09381
367
+ .. _`Tune paper`: https://arxiv.org/abs/1807.05118
368
+
369
+ Getting Involved
370
+ ----------------
371
+
372
+ .. list-table::
373
+ :widths: 25 50 25 25
374
+ :header-rows: 1
375
+
376
+ * - Platform
377
+ - Purpose
378
+ - Estimated Response Time
379
+ - Support Level
380
+ * - `Discourse Forum`_
381
+ - For discussions about development and questions about usage.
382
+ - < 1 day
383
+ - Community
384
+ * - `GitHub Issues`_
385
+ - For reporting bugs and filing feature requests.
386
+ - < 2 days
387
+ - Ray OSS Team
388
+ * - `Slack`_
389
+ - For collaborating with other Ray users.
390
+ - < 2 days
391
+ - Community
392
+ * - `StackOverflow`_
393
+ - For asking questions about how to use Ray.
394
+ - 3-5 days
395
+ - Community
396
+ * - `Meetup Group`_
397
+ - For learning about Ray projects and best practices.
398
+ - Monthly
399
+ - Ray DevRel
400
+ * - `Twitter`_
401
+ - For staying up-to-date on new features.
402
+ - Daily
403
+ - Ray DevRel
404
+
405
+ .. _`Discourse Forum`: https://discuss.ray.io/
406
+ .. _`GitHub Issues`: https://github.com/ray-project/ray/issues
407
+ .. _`StackOverflow`: https://stackoverflow.com/questions/tagged/ray
408
+ .. _`Meetup Group`: https://www.meetup.com/Bay-Area-Ray-Meetup/
409
+ .. _`Twitter`: https://x.com/raydistributed
410
+ .. _`Slack`: https://www.ray.io/join-slack?utm_source=github&utm_medium=ray_readme&utm_campaign=getting_involved
venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/RECORD ADDED
The diff for this file is too large to render. See raw diff
 
venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.8.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp310-cp310-linux_x86_64
5
+
venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/entry_points.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ [console_scripts]
2
+ ray = ray.scripts.scripts:main
3
+ serve = ray.serve.scripts:cli
4
+ tune = ray.tune.cli.scripts:cli
venv/lib/python3.10/site-packages/ray-2.48.0.dist-info/top_level.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ ray
venv/lib/python3.10/site-packages/ray/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (5.46 kB). View file
 
venv/lib/python3.10/site-packages/ray/__pycache__/_version.cpython-310.pyc ADDED
Binary file (381 Bytes). View file
 
venv/lib/python3.10/site-packages/ray/__pycache__/actor.cpython-310.pyc ADDED
Binary file (70.6 kB). View file
 
venv/lib/python3.10/site-packages/ray/__pycache__/client_builder.cpython-310.pyc ADDED
Binary file (11.1 kB). View file
 
venv/lib/python3.10/site-packages/ray/__pycache__/cluster_utils.cpython-310.pyc ADDED
Binary file (11.9 kB). View file
 
venv/lib/python3.10/site-packages/ray/__pycache__/cross_language.cpython-310.pyc ADDED
Binary file (3.86 kB). View file
 
venv/lib/python3.10/site-packages/ray/__pycache__/exceptions.cpython-310.pyc ADDED
Binary file (28.3 kB). View file
 
venv/lib/python3.10/site-packages/ray/__pycache__/job_config.cpython-310.pyc ADDED
Binary file (8.24 kB). View file
 
venv/lib/python3.10/site-packages/ray/__pycache__/remote_function.cpython-310.pyc ADDED
Binary file (15.9 kB). View file
 
venv/lib/python3.10/site-packages/ray/__pycache__/runtime_context.cpython-310.pyc ADDED
Binary file (19.8 kB). View file
 
venv/lib/python3.10/site-packages/ray/__pycache__/setup-dev.cpython-310.pyc ADDED
Binary file (4.24 kB). View file
 
venv/lib/python3.10/site-packages/ray/__pycache__/types.cpython-310.pyc ADDED
Binary file (534 Bytes). View file
 
venv/lib/python3.10/site-packages/ray/tune/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (2.55 kB). View file
 
venv/lib/python3.10/site-packages/ray/tune/__pycache__/callback.cpython-310.pyc ADDED
Binary file (18.1 kB). View file
 
venv/lib/python3.10/site-packages/ray/tune/__pycache__/constants.cpython-310.pyc ADDED
Binary file (1.19 kB). View file
 
venv/lib/python3.10/site-packages/ray/tune/__pycache__/context.cpython-310.pyc ADDED
Binary file (3.69 kB). View file
 
venv/lib/python3.10/site-packages/ray/tune/__pycache__/error.cpython-310.pyc ADDED
Binary file (1.99 kB). View file
 
venv/lib/python3.10/site-packages/ray/tune/__pycache__/progress_reporter.cpython-310.pyc ADDED
Binary file (49 kB). View file