diff --git a/.gitattributes b/.gitattributes index d20cda2217cf83a5030f4c1f4ed3e19989f66d61..57ddc4c8b2baa0095668bb0ea9c899ba3f75818f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1428,3 +1428,4 @@ vllm/lib/python3.10/site-packages/wandb/bin/gpu_stats filter=lfs diff=lfs merge= parrot/lib/python3.10/site-packages/pyparsing/__pycache__/core.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text parrot/lib/python3.10/site-packages/fontTools/pens/momentsPen.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text parrot/lib/python3.10/site-packages/opencv_python.libs/libQt5Test-d435aae7.so.5.15.13 filter=lfs diff=lfs merge=lfs -text +vllm/lib/python3.10/site-packages/wandb/vendor/pynvml/__pycache__/pynvml.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text diff --git a/parrot/lib/python3.10/site-packages/numpy/random/_examples/cffi/__pycache__/parse.cpython-310.pyc b/parrot/lib/python3.10/site-packages/numpy/random/_examples/cffi/__pycache__/parse.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5cf3609569cbb95092419a23bca6c23d1c78c171 Binary files /dev/null and b/parrot/lib/python3.10/site-packages/numpy/random/_examples/cffi/__pycache__/parse.cpython-310.pyc differ diff --git a/parrot/lib/python3.10/site-packages/numpy/random/_examples/numba/extending.py b/parrot/lib/python3.10/site-packages/numpy/random/_examples/numba/extending.py new file mode 100644 index 0000000000000000000000000000000000000000..f387db69502a4bfe8731d540a7a741b062fea861 --- /dev/null +++ b/parrot/lib/python3.10/site-packages/numpy/random/_examples/numba/extending.py @@ -0,0 +1,84 @@ +import numpy as np +import numba as nb + +from numpy.random import PCG64 +from timeit import timeit + +bit_gen = PCG64() +next_d = bit_gen.cffi.next_double +state_addr = bit_gen.cffi.state_address + +def normals(n, state): + out = np.empty(n) + for i in range((n + 1) // 2): + x1 = 2.0 * next_d(state) - 1.0 + x2 = 2.0 * next_d(state) - 1.0 + r2 = x1 * x1 + x2 * x2 + while r2 >= 1.0 or r2 == 0.0: + x1 = 2.0 * next_d(state) - 1.0 + x2 = 2.0 * next_d(state) - 1.0 + r2 = x1 * x1 + x2 * x2 + f = np.sqrt(-2.0 * np.log(r2) / r2) + out[2 * i] = f * x1 + if 2 * i + 1 < n: + out[2 * i + 1] = f * x2 + return out + +# Compile using Numba +normalsj = nb.jit(normals, nopython=True) +# Must use state address not state with numba +n = 10000 + +def numbacall(): + return normalsj(n, state_addr) + +rg = np.random.Generator(PCG64()) + +def numpycall(): + return rg.normal(size=n) + +# Check that the functions work +r1 = numbacall() +r2 = numpycall() +assert r1.shape == (n,) +assert r1.shape == r2.shape + +t1 = timeit(numbacall, number=1000) +print(f'{t1:.2f} secs for {n} PCG64 (Numba/PCG64) gaussian randoms') +t2 = timeit(numpycall, number=1000) +print(f'{t2:.2f} secs for {n} PCG64 (NumPy/PCG64) gaussian randoms') + +# example 2 + +next_u32 = bit_gen.ctypes.next_uint32 +ctypes_state = bit_gen.ctypes.state + +@nb.jit(nopython=True) +def bounded_uint(lb, ub, state): + mask = delta = ub - lb + mask |= mask >> 1 + mask |= mask >> 2 + mask |= mask >> 4 + mask |= mask >> 8 + mask |= mask >> 16 + + val = next_u32(state) & mask + while val > delta: + val = next_u32(state) & mask + + return lb + val + + +print(bounded_uint(323, 2394691, ctypes_state.value)) + + +@nb.jit(nopython=True) +def bounded_uints(lb, ub, n, state): + out = np.empty(n, dtype=np.uint32) + for i in range(n): + out[i] = bounded_uint(lb, ub, state) + + +bounded_uints(323, 2394691, 10000000, ctypes_state.value) + + diff --git a/parrot/lib/python3.10/site-packages/numpy/random/_examples/numba/extending_distributions.py b/parrot/lib/python3.10/site-packages/numpy/random/_examples/numba/extending_distributions.py new file mode 100644 index 0000000000000000000000000000000000000000..7ef0753d71d1a1033c0225f332bf1b75d832a598 --- /dev/null +++ b/parrot/lib/python3.10/site-packages/numpy/random/_examples/numba/extending_distributions.py @@ -0,0 +1,67 @@ +r""" +Building the required library in this example requires a source distribution +of NumPy or clone of the NumPy git repository since distributions.c is not +included in binary distributions. + +On *nix, execute in numpy/random/src/distributions + +export ${PYTHON_VERSION}=3.8 # Python version +export PYTHON_INCLUDE=#path to Python's include folder, usually \ + ${PYTHON_HOME}/include/python${PYTHON_VERSION}m +export NUMPY_INCLUDE=#path to numpy's include folder, usually \ + ${PYTHON_HOME}/lib/python${PYTHON_VERSION}/site-packages/numpy/_core/include +gcc -shared -o libdistributions.so -fPIC distributions.c \ + -I${NUMPY_INCLUDE} -I${PYTHON_INCLUDE} +mv libdistributions.so ../../_examples/numba/ + +On Windows + +rem PYTHON_HOME and PYTHON_VERSION are setup dependent, this is an example +set PYTHON_HOME=c:\Anaconda +set PYTHON_VERSION=38 +cl.exe /LD .\distributions.c -DDLL_EXPORT \ + -I%PYTHON_HOME%\lib\site-packages\numpy\_core\include \ + -I%PYTHON_HOME%\include %PYTHON_HOME%\libs\python%PYTHON_VERSION%.lib +move distributions.dll ../../_examples/numba/ +""" +import os + +import numba as nb +import numpy as np +from cffi import FFI + +from numpy.random import PCG64 + +ffi = FFI() +if os.path.exists('./distributions.dll'): + lib = ffi.dlopen('./distributions.dll') +elif os.path.exists('./libdistributions.so'): + lib = ffi.dlopen('./libdistributions.so') +else: + raise RuntimeError('Required DLL/so file was not found.') + +ffi.cdef(""" +double random_standard_normal(void *bitgen_state); +""") +x = PCG64() +xffi = x.cffi +bit_generator = xffi.bit_generator + +random_standard_normal = lib.random_standard_normal + + +def normals(n, bit_generator): + out = np.empty(n) + for i in range(n): + out[i] = random_standard_normal(bit_generator) + return out + + +normalsj = nb.jit(normals, nopython=True) + +# Numba requires a memory address for void * +# Can also get address from x.ctypes.bit_generator.value +bit_generator_address = int(ffi.cast('uintptr_t', bit_generator)) + +norm = normalsj(1000, bit_generator_address) +print(norm[:12]) diff --git a/parrot/lib/python3.10/site-packages/numpy/random/tests/__pycache__/test_regression.cpython-310.pyc b/parrot/lib/python3.10/site-packages/numpy/random/tests/__pycache__/test_regression.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..521678c0ee187168bdd669ced20213ffdb12a219 Binary files /dev/null and b/parrot/lib/python3.10/site-packages/numpy/random/tests/__pycache__/test_regression.cpython-310.pyc differ diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_fused_adamw_compositeexplicitautograd_dispatch.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_fused_adamw_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..c5ad41b10890d56b9c0a0b642d675c5ade57a761 --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_fused_adamw_compositeexplicitautograd_dispatch.h @@ -0,0 +1,28 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautograd { + +TORCH_API ::std::tuple<::std::vector,::std::vector,::std::vector,::std::vector,::std::vector> _fused_adamw(at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, double lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}); +TORCH_API void _fused_adamw_out(at::TensorList out, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, double lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}); +TORCH_API void _fused_adamw_outf(at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, double lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale, const c10::optional & found_inf, at::TensorList out); +TORCH_API ::std::tuple<::std::vector,::std::vector,::std::vector,::std::vector,::std::vector> _fused_adamw(at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, const at::Tensor & lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}); +TORCH_API void _fused_adamw_out(at::TensorList out, at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, const at::Tensor & lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale={}, const c10::optional & found_inf={}); +TORCH_API void _fused_adamw_outf(at::TensorList self, at::TensorList grads, at::TensorList exp_avgs, at::TensorList exp_avg_sqs, at::TensorList max_exp_avg_sqs, at::TensorList state_steps, const at::Tensor & lr, double beta1, double beta2, double weight_decay, double eps, bool amsgrad, bool maximize, const c10::optional & grad_scale, const c10::optional & found_inf, at::TensorList out); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_to_sparse_csc_native.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_to_sparse_csc_native.h new file mode 100644 index 0000000000000000000000000000000000000000..c1d705d46b37c09eaf649306f371ffd46b2a9458 --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_to_sparse_csc_native.h @@ -0,0 +1,24 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API at::Tensor & _to_sparse_csc_out(const at::Tensor & self, c10::optional dense_dim, at::Tensor & out); +TORCH_API at::Tensor dense_to_sparse_csc(const at::Tensor & self, c10::optional dense_dim=c10::nullopt); +TORCH_API at::Tensor coo_to_sparse_csc(const at::Tensor & self, c10::optional dense_dim=c10::nullopt); +TORCH_API at::Tensor sparse_compressed_to_sparse_csc(const at::Tensor & self, c10::optional dense_dim=c10::nullopt); +} // namespace native +} // namespace at diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/glu_ops.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/glu_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..170f77aba58c7bb1618754c36dc0ebfd3861dd97 --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/glu_ops.h @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API glu_out { + using schema = at::Tensor & (const at::Tensor &, int64_t, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::glu") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "glu.out(Tensor self, int dim=-1, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, int64_t dim, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, at::Tensor & out); +}; + +struct TORCH_API glu { + using schema = at::Tensor (const at::Tensor &, int64_t); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::glu") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "glu(Tensor self, int dim=-1) -> Tensor") + static at::Tensor call(const at::Tensor & self, int64_t dim); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim); +}; + +}} // namespace at::_ops diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/hardswish_cuda_dispatch.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/hardswish_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..0f29b0293645726c227b2264e4eaf866a1e179a4 --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/hardswish_cuda_dispatch.h @@ -0,0 +1,26 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API at::Tensor hardswish(const at::Tensor & self); +TORCH_API at::Tensor & hardswish_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & hardswish_outf(const at::Tensor & self, at::Tensor & out); +TORCH_API at::Tensor & hardswish_(at::Tensor & self); + +} // namespace cuda +} // namespace at diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/is_distributed_ops.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/is_distributed_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..f77c55550e1b5645a5540c3d6e077725ed92578c --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/is_distributed_ops.h @@ -0,0 +1,28 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API is_distributed { + using schema = bool (const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::is_distributed") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "is_distributed(Tensor self) -> bool") + static bool call(const at::Tensor & self); + static bool redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self); +}; + +}} // namespace at::_ops diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/isposinf_meta_dispatch.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/isposinf_meta_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..b40d121d4e8baff929717269d4d145fab1f748cf --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/isposinf_meta_dispatch.h @@ -0,0 +1,25 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace meta { + +TORCH_API at::Tensor isposinf(const at::Tensor & self); +TORCH_API at::Tensor & isposinf_out(at::Tensor & out, const at::Tensor & self); +TORCH_API at::Tensor & isposinf_outf(const at::Tensor & self, at::Tensor & out); + +} // namespace meta +} // namespace at diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/pixel_unshuffle_native.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/pixel_unshuffle_native.h new file mode 100644 index 0000000000000000000000000000000000000000..c34055815665dc2590dbcacb5b196fb1f6e9295b --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/pixel_unshuffle_native.h @@ -0,0 +1,23 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API at::Tensor & pixel_unshuffle_out(const at::Tensor & self, int64_t downscale_factor, at::Tensor & out); +TORCH_API at::Tensor pixel_unshuffle_cpu(const at::Tensor & self, int64_t downscale_factor); +TORCH_API at::Tensor math_pixel_unshuffle(const at::Tensor & self, int64_t downscale_factor); +} // namespace native +} // namespace at diff --git a/vllm/lib/python3.10/site-packages/wandb/agents/__pycache__/pyagent.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/agents/__pycache__/pyagent.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..68fdc53353e6b744483464d50b0c679ba386159d Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/agents/__pycache__/pyagent.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/__pycache__/setup.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/__pycache__/setup.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..271f970f210afd5101c3a083f79b5fd85f8345c3 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/__pycache__/setup.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/setup.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/setup.py new file mode 100644 index 0000000000000000000000000000000000000000..92482c03536227f47dcab140914feba539ff4d70 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/setup.py @@ -0,0 +1,40 @@ +from setuptools import setup, find_packages + +setup( + name='gql', + version='0.2.0', + description='GraphQL client for Python', + long_description=open('README.md').read(), + long_description_content_type="text/markdown", + url='https://github.com/graphql-python/gql', + author='Syrus Akbary', + author_email='me@syrusakbary.com', + license='MIT', + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Topic :: Software Development :: Libraries', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: Implementation :: PyPy', + ], + keywords='api graphql protocol rest relay gql client', + packages=find_packages(include=["gql*"]), + install_requires=[ + 'six>=1.10.0', + 'graphql-core>=0.5.0,<2', + 'promise>=2.0,<3', + 'requests>=2.12,<3' + ], + tests_require=[ + 'pytest>=3,<4', + 'pytest-cov>=2.8,<3', + 'mock>=3,<4', + 'vcrpy>=2.1,<3' + ], +) diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/__init__.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..641c9348407febedaa273baba9884aba810c97df Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/__pycache__/test_client.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/__pycache__/test_client.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d8e6f957cb82add522474f96b4c5adc9d286e9cc Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/__pycache__/test_client.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/__pycache__/test_transport.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/__pycache__/test_transport.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..53b3fc379da480f9625a5dcb94cbe7df2fee4ef3 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/__pycache__/test_transport.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__init__.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..49041bf2d952d799c7263035ad158518d9b79206 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/fixtures.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/fixtures.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ac78d0f04d290eada14258beeb0fd4cb31492a51 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/fixtures.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/schema.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/schema.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0b530b4defe4ffef7d505b2b18f93f0730788d32 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/schema.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/test_dsl.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/test_dsl.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ca10ceb9b881e4a3fcfba185dab30d28d02bfa29 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/test_dsl.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/test_query.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/test_query.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..26481a5348c97432b3a1c1794ced9fe834b73354 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/test_query.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/test_validation.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/test_validation.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d440c5d1533b107f5e12130388b9fc416b28d2ae Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/__pycache__/test_validation.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/fixtures.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/fixtures.py new file mode 100644 index 0000000000000000000000000000000000000000..51f29a59248cdeee13a7fc34b1c92154a0977e81 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/fixtures.py @@ -0,0 +1,96 @@ +from collections import namedtuple + +Human = namedtuple('Human', 'id name friends appearsIn homePlanet') + +luke = Human( + id='1000', + name='Luke Skywalker', + friends=['1002', '1003', '2000', '2001'], + appearsIn=[4, 5, 6], + homePlanet='Tatooine', +) + +vader = Human( + id='1001', + name='Darth Vader', + friends=['1004'], + appearsIn=[4, 5, 6], + homePlanet='Tatooine', +) + +han = Human( + id='1002', + name='Han Solo', + friends=['1000', '1003', '2001'], + appearsIn=[4, 5, 6], + homePlanet=None, +) + +leia = Human( + id='1003', + name='Leia Organa', + friends=['1000', '1002', '2000', '2001'], + appearsIn=[4, 5, 6], + homePlanet='Alderaan', +) + +tarkin = Human( + id='1004', + name='Wilhuff Tarkin', + friends=['1001'], + appearsIn=[4], + homePlanet=None, +) + +humanData = { + '1000': luke, + '1001': vader, + '1002': han, + '1003': leia, + '1004': tarkin, +} + +Droid = namedtuple('Droid', 'id name friends appearsIn primaryFunction') + +threepio = Droid( + id='2000', + name='C-3PO', + friends=['1000', '1002', '1003', '2001'], + appearsIn=[4, 5, 6], + primaryFunction='Protocol', +) + +artoo = Droid( + id='2001', + name='R2-D2', + friends=['1000', '1002', '1003'], + appearsIn=[4, 5, 6], + primaryFunction='Astromech', +) + +droidData = { + '2000': threepio, + '2001': artoo, +} + + +def getCharacter(id): + return humanData.get(id) or droidData.get(id) + + +def getFriends(character): + return map(getCharacter, character.friends) + + +def getHero(episode): + if episode == 5: + return luke + return artoo + + +def getHuman(id): + return humanData.get(id) + + +def getDroid(id): + return droidData.get(id) diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/schema.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/schema.py new file mode 100644 index 0000000000000000000000000000000000000000..da2d88d8cb674ddde76b593420e2405d39c53c4d --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/schema.py @@ -0,0 +1,146 @@ +from graphql.type import (GraphQLArgument, GraphQLEnumType, GraphQLEnumValue, + GraphQLField, GraphQLInterfaceType, GraphQLList, + GraphQLNonNull, GraphQLObjectType, GraphQLSchema, + GraphQLString) + +from .fixtures import getDroid, getFriends, getHero, getHuman + +episodeEnum = GraphQLEnumType( + 'Episode', + description='One of the films in the Star Wars Trilogy', + values={ + 'NEWHOPE': GraphQLEnumValue( + 4, + description='Released in 1977.', + ), + 'EMPIRE': GraphQLEnumValue( + 5, + description='Released in 1980.', + ), + 'JEDI': GraphQLEnumValue( + 6, + description='Released in 1983.', + ) + } +) + +characterInterface = GraphQLInterfaceType( + 'Character', + description='A character in the Star Wars Trilogy', + fields=lambda: { + 'id': GraphQLField( + GraphQLNonNull(GraphQLString), + description='The id of the character.' + ), + 'name': GraphQLField( + GraphQLString, + description='The name of the character.' + ), + 'friends': GraphQLField( + GraphQLList(characterInterface), + description='The friends of the character, or an empty list if they have none.' + ), + 'appearsIn': GraphQLField( + GraphQLList(episodeEnum), + description='Which movies they appear in.' + ), + }, + resolve_type=lambda character, *_: humanType if getHuman(character.id) else droidType, +) + +humanType = GraphQLObjectType( + 'Human', + description='A humanoid creature in the Star Wars universe.', + fields=lambda: { + 'id': GraphQLField( + GraphQLNonNull(GraphQLString), + description='The id of the human.', + ), + 'name': GraphQLField( + GraphQLString, + description='The name of the human.', + ), + 'friends': GraphQLField( + GraphQLList(characterInterface), + description='The friends of the human, or an empty list if they have none.', + resolver=lambda human, *_: getFriends(human), + ), + 'appearsIn': GraphQLField( + GraphQLList(episodeEnum), + description='Which movies they appear in.', + ), + 'homePlanet': GraphQLField( + GraphQLString, + description='The home planet of the human, or null if unknown.', + ) + }, + interfaces=[characterInterface] +) + +droidType = GraphQLObjectType( + 'Droid', + description='A mechanical creature in the Star Wars universe.', + fields=lambda: { + 'id': GraphQLField( + GraphQLNonNull(GraphQLString), + description='The id of the droid.', + ), + 'name': GraphQLField( + GraphQLString, + description='The name of the droid.', + ), + 'friends': GraphQLField( + GraphQLList(characterInterface), + description='The friends of the droid, or an empty list if they have none.', + resolver=lambda droid, *_: getFriends(droid), + ), + 'appearsIn': GraphQLField( + GraphQLList(episodeEnum), + description='Which movies they appear in.', + ), + 'primaryFunction': GraphQLField( + GraphQLString, + description='The primary function of the droid.', + ) + }, + interfaces=[characterInterface] +) + +queryType = GraphQLObjectType( + 'Query', + fields=lambda: { + 'hero': GraphQLField( + characterInterface, + args={ + 'episode': GraphQLArgument( + description='If omitted, returns the hero of the whole saga. If ' + 'provided, returns the hero of that particular episode.', + type=episodeEnum, + ) + }, + resolver=lambda root, args, *_: getHero(args.get('episode')), + ), + 'human': GraphQLField( + humanType, + args={ + 'id': GraphQLArgument( + description='id of the human', + type=GraphQLNonNull(GraphQLString), + ) + }, + resolver=lambda root, args, *_: getHuman(args['id']), + ), + 'droid': GraphQLField( + droidType, + args={ + 'id': GraphQLArgument( + description='id of the droid', + type=GraphQLNonNull(GraphQLString), + ) + }, + resolver=lambda root, args, *_: getDroid(args['id']), + ), + } +) + +StarWarsSchema = GraphQLSchema(query=queryType, types=[humanType, droidType]) diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/test_dsl.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/test_dsl.py new file mode 100644 index 0000000000000000000000000000000000000000..e8fa1b6196f8eb8f35cf202b4017841ab63e8a74 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/test_dsl.py @@ -0,0 +1,293 @@ +import pytest + +from gql import Client +from gql.dsl import DSLSchema + +from .schema import StarWarsSchema + + +@pytest.fixture +def ds(): + client = Client(schema=StarWarsSchema) + ds = DSLSchema(client) + return ds + + +def test_hero_name_query(ds): + query = ''' +hero { + name +} + '''.strip() + query_dsl = ds.Query.hero.select( + ds.Character.name + ) + assert query == str(query_dsl) + + +def test_hero_name_and_friends_query(ds): + query = ''' +hero { + id + name + friends { + name + } +} + '''.strip() + query_dsl = ds.Query.hero.select( + ds.Character.id, + ds.Character.name, + ds.Character.friends.select( + ds.Character.name, + ) + ) + assert query == str(query_dsl) + + +def test_nested_query(ds): + query = ''' +hero { + name + friends { + name + appearsIn + friends { + name + } + } +} + '''.strip() + query_dsl = ds.Query.hero.select( + ds.Character.name, + ds.Character.friends.select( + ds.Character.name, + ds.Character.appears_in, + ds.Character.friends.select( + ds.Character.name + ) + ) + ) + assert query == str(query_dsl) + + +def test_fetch_luke_query(ds): + query = ''' +human(id: "1000") { + name +} + '''.strip() + query_dsl = ds.Query.human(id="1000").select( + ds.Human.name, + ) + + assert query == str(query_dsl) + + +# def test_fetch_some_id_query(): +# query = ''' +# query FetchSomeIDQuery($someId: String!) { +# human(id: $someId) { +# name +# } +# } +# ''' +# params = { +# 'someId': '1000', +# } +# expected = { +# 'human': { +# 'name': 'Luke Skywalker', +# } +# } +# result = schema.execute(query, None, params) +# assert not result.errors +# assert result.data == expected + + +# def test_fetch_some_id_query2(): +# query = ''' +# query FetchSomeIDQuery($someId: String!) { +# human(id: $someId) { +# name +# } +# } +# ''' +# params = { +# 'someId': '1002', +# } +# expected = { +# 'human': { +# 'name': 'Han Solo', +# } +# } +# result = schema.execute(query, None, params) +# assert not result.errors +# assert result.data == expected + + +# def test_invalid_id_query(): +# query = ''' +# query humanQuery($id: String!) { +# human(id: $id) { +# name +# } +# } +# ''' +# params = { +# 'id': 'not a valid id', +# } +# expected = { +# 'human': None +# } +# result = schema.execute(query, None, params) +# assert not result.errors +# assert result.data == expected + + +def test_fetch_luke_aliased(ds): + query = ''' +luke: human(id: "1000") { + name +} + '''.strip() + query_dsl = ds.Query.human.args(id=1000).alias('luke').select( + ds.Character.name, + ) + assert query == str(query_dsl) + + +# def test_fetch_luke_and_leia_aliased(): +# query = ''' +# query FetchLukeAndLeiaAliased { +# luke: human(id: "1000") { +# name +# } +# leia: human(id: "1003") { +# name +# } +# } +# ''' +# expected = { +# 'luke': { +# 'name': 'Luke Skywalker', +# }, +# 'leia': { +# 'name': 'Leia Organa', +# } +# } +# result = schema.execute(query) +# assert not result.errors +# assert result.data == expected + + +# def test_duplicate_fields(): +# query = ''' +# query DuplicateFields { +# luke: human(id: "1000") { +# name +# homePlanet +# } +# leia: human(id: "1003") { +# name +# homePlanet +# } +# } +# ''' +# expected = { +# 'luke': { +# 'name': 'Luke Skywalker', +# 'homePlanet': 'Tatooine', +# }, +# 'leia': { +# 'name': 'Leia Organa', +# 'homePlanet': 'Alderaan', +# } +# } +# result = schema.execute(query) +# assert not result.errors +# assert result.data == expected + + +# def test_use_fragment(): +# query = ''' +# query UseFragment { +# luke: human(id: "1000") { +# ...HumanFragment +# } +# leia: human(id: "1003") { +# ...HumanFragment +# } +# } +# fragment HumanFragment on Human { +# name +# homePlanet +# } +# ''' +# expected = { +# 'luke': { +# 'name': 'Luke Skywalker', +# 'homePlanet': 'Tatooine', +# }, +# 'leia': { +# 'name': 'Leia Organa', +# 'homePlanet': 'Alderaan', +# } +# } +# result = schema.execute(query) +# assert not result.errors +# assert result.data == expected + + +# def test_check_type_of_r2(): +# query = ''' +# query CheckTypeOfR2 { +# hero { +# __typename +# name +# } +# } +# ''' +# expected = { +# 'hero': { +# '__typename': 'Droid', +# 'name': 'R2-D2', +# } +# } +# result = schema.execute(query) +# assert not result.errors +# assert result.data == expected + + +# def test_check_type_of_luke(): +# query = ''' +# query CheckTypeOfLuke { +# hero(episode: EMPIRE) { +# __typename +# name +# } +# } +# ''' +# expected = { +# 'hero': { +# '__typename': 'Human', +# 'name': 'Luke Skywalker', +# } +# } +# result = schema.execute(query) +# assert not result.errors +# assert result.data == expected + + +def test_hero_name_query_result(ds): + result = ds.query( + ds.Query.hero.select( + ds.Character.name + ) + ) + expected = { + 'hero': { + 'name': 'R2-D2' + } + } + assert result == expected diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/test_query.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/test_query.py new file mode 100644 index 0000000000000000000000000000000000000000..6e3ebaf379aac98e2691cfd0ac1e438c25d7ed1d --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/test_query.py @@ -0,0 +1,355 @@ +import pytest +from graphql.error import format_error + +from gql import Client, gql + +from .schema import StarWarsSchema + + +@pytest.fixture +def client(): + return Client(schema=StarWarsSchema) + + +def test_hero_name_query(client): + query = gql(''' + query HeroNameQuery { + hero { + name + } + } + ''') + expected = { + 'hero': { + 'name': 'R2-D2' + } + } + result = client.execute(query) + assert result == expected + + +def test_hero_name_and_friends_query(client): + query = gql(''' + query HeroNameAndFriendsQuery { + hero { + id + name + friends { + name + } + } + } + ''') + expected = { + 'hero': { + 'id': '2001', + 'name': 'R2-D2', + 'friends': [ + {'name': 'Luke Skywalker'}, + {'name': 'Han Solo'}, + {'name': 'Leia Organa'}, + ] + } + } + result = client.execute(query) + assert result == expected + + +def test_nested_query(client): + query = gql(''' + query NestedQuery { + hero { + name + friends { + name + appearsIn + friends { + name + } + } + } + } + ''') + expected = { + 'hero': { + 'name': 'R2-D2', + 'friends': [ + { + 'name': 'Luke Skywalker', + 'appearsIn': ['NEWHOPE', 'EMPIRE', 'JEDI'], + 'friends': [ + { + 'name': 'Han Solo', + }, + { + 'name': 'Leia Organa', + }, + { + 'name': 'C-3PO', + }, + { + 'name': 'R2-D2', + }, + ] + }, + { + 'name': 'Han Solo', + 'appearsIn': ['NEWHOPE', 'EMPIRE', 'JEDI'], + 'friends': [ + { + 'name': 'Luke Skywalker', + }, + { + 'name': 'Leia Organa', + }, + { + 'name': 'R2-D2', + }, + ] + }, + { + 'name': 'Leia Organa', + 'appearsIn': ['NEWHOPE', 'EMPIRE', 'JEDI'], + 'friends': [ + { + 'name': 'Luke Skywalker', + }, + { + 'name': 'Han Solo', + }, + { + 'name': 'C-3PO', + }, + { + 'name': 'R2-D2', + }, + ] + }, + ] + } + } + result = client.execute(query) + assert result == expected + + +def test_fetch_luke_query(client): + query = gql(''' + query FetchLukeQuery { + human(id: "1000") { + name + } + } + ''') + expected = { + 'human': { + 'name': 'Luke Skywalker', + } + } + result = client.execute(query) + assert result == expected + + +def test_fetch_some_id_query(client): + query = gql(''' + query FetchSomeIDQuery($someId: String!) { + human(id: $someId) { + name + } + } + ''') + params = { + 'someId': '1000', + } + expected = { + 'human': { + 'name': 'Luke Skywalker', + } + } + result = client.execute(query, variable_values=params) + assert result == expected + + +def test_fetch_some_id_query2(client): + query = gql(''' + query FetchSomeIDQuery($someId: String!) { + human(id: $someId) { + name + } + } + ''') + params = { + 'someId': '1002', + } + expected = { + 'human': { + 'name': 'Han Solo', + } + } + result = client.execute(query, variable_values=params) + assert result == expected + + +def test_invalid_id_query(client): + query = gql(''' + query humanQuery($id: String!) { + human(id: $id) { + name + } + } + ''') + params = { + 'id': 'not a valid id', + } + expected = { + 'human': None + } + result = client.execute(query, variable_values=params) + assert result == expected + + +def test_fetch_luke_aliased(client): + query = gql(''' + query FetchLukeAliased { + luke: human(id: "1000") { + name + } + } + ''') + expected = { + 'luke': { + 'name': 'Luke Skywalker', + } + } + result = client.execute(query) + assert result == expected + + +def test_fetch_luke_and_leia_aliased(client): + query = gql(''' + query FetchLukeAndLeiaAliased { + luke: human(id: "1000") { + name + } + leia: human(id: "1003") { + name + } + } + ''') + expected = { + 'luke': { + 'name': 'Luke Skywalker', + }, + 'leia': { + 'name': 'Leia Organa', + } + } + result = client.execute(query) + assert result == expected + + +def test_duplicate_fields(client): + query = gql(''' + query DuplicateFields { + luke: human(id: "1000") { + name + homePlanet + } + leia: human(id: "1003") { + name + homePlanet + } + } + ''') + expected = { + 'luke': { + 'name': 'Luke Skywalker', + 'homePlanet': 'Tatooine', + }, + 'leia': { + 'name': 'Leia Organa', + 'homePlanet': 'Alderaan', + } + } + result = client.execute(query) + assert result == expected + + +def test_use_fragment(client): + query = gql(''' + query UseFragment { + luke: human(id: "1000") { + ...HumanFragment + } + leia: human(id: "1003") { + ...HumanFragment + } + } + fragment HumanFragment on Human { + name + homePlanet + } + ''') + expected = { + 'luke': { + 'name': 'Luke Skywalker', + 'homePlanet': 'Tatooine', + }, + 'leia': { + 'name': 'Leia Organa', + 'homePlanet': 'Alderaan', + } + } + result = client.execute(query) + assert result == expected + + +def test_check_type_of_r2(client): + query = gql(''' + query CheckTypeOfR2 { + hero { + __typename + name + } + } + ''') + expected = { + 'hero': { + '__typename': 'Droid', + 'name': 'R2-D2', + } + } + result = client.execute(query) + assert result == expected + + +def test_check_type_of_luke(client): + query = gql(''' + query CheckTypeOfLuke { + hero(episode: EMPIRE) { + __typename + name + } + } + ''') + expected = { + 'hero': { + '__typename': 'Human', + 'name': 'Luke Skywalker', + } + } + result = client.execute(query) + assert result == expected + + +def test_parse_error(client): + result = None + with pytest.raises(Exception) as excinfo: + query = gql(''' + qeury + ''') + result = client.execute(query) + error = excinfo.value + formatted_error = format_error(error) + assert formatted_error['locations'] == [{'column': 13, 'line': 2}] + assert 'Syntax Error GraphQL request (2:13) Unexpected Name "qeury"' in formatted_error['message'] + assert not result diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/test_validation.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/test_validation.py new file mode 100644 index 0000000000000000000000000000000000000000..e2699e95f16072e579a54572fdc7f391de1f43bb --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/test_validation.py @@ -0,0 +1,171 @@ +import pytest +from graphql import graphql +from graphql.utils.introspection_query import introspection_query + +from gql import Client, gql + +from .schema import StarWarsSchema + +introspection = graphql(StarWarsSchema, introspection_query).data + + +@pytest.fixture +def local_schema(): + return Client(schema=StarWarsSchema) + + +@pytest.fixture +def typedef_schema(): + return Client(type_def=''' +schema { + query: Query +} + +interface Character { + appearsIn: [Episode] + friends: [Character] + id: String! + name: String +} + +type Droid implements Character { + appearsIn: [Episode] + friends: [Character] + id: String! + name: String + primaryFunction: String +} + +enum Episode { + EMPIRE + JEDI + NEWHOPE +} + +type Human implements Character { + appearsIn: [Episode] + friends: [Character] + homePlanet: String + id: String! + name: String +} + +type Query { + droid(id: String!): Droid + hero(episode: Episode): Character + human(id: String!): Human +}''') + + +@pytest.fixture +def introspection_schema(): + return Client(introspection=introspection) + + +@pytest.fixture(params=['local_schema', 'typedef_schema', 'introspection_schema']) +def client(request): + return request.getfixturevalue(request.param) + + +def validation_errors(client, query): + query = gql(query) + try: + client.validate(query) + return False + except Exception: + return True + + +def test_nested_query_with_fragment(client): + query = ''' + query NestedQueryWithFragment { + hero { + ...NameAndAppearances + friends { + ...NameAndAppearances + friends { + ...NameAndAppearances + } + } + } + } + fragment NameAndAppearances on Character { + name + appearsIn + } + ''' + assert not validation_errors(client, query) + + +def test_non_existent_fields(client): + query = ''' + query HeroSpaceshipQuery { + hero { + favoriteSpaceship + } + } + ''' + assert validation_errors(client, query) + + +def test_require_fields_on_object(client): + query = ''' + query HeroNoFieldsQuery { + hero + } + ''' + assert validation_errors(client, query) + + +def test_disallows_fields_on_scalars(client): + query = ''' + query HeroFieldsOnScalarQuery { + hero { + name { + firstCharacterOfName + } + } + } + ''' + assert validation_errors(client, query) + + +def test_disallows_object_fields_on_interfaces(client): + query = ''' + query DroidFieldOnCharacter { + hero { + name + primaryFunction + } + } + ''' + assert validation_errors(client, query) + + +def test_allows_object_fields_in_fragments(client): + query = ''' + query DroidFieldInFragment { + hero { + name + ...DroidFields + } + } + fragment DroidFields on Droid { + primaryFunction + } + ''' + assert not validation_errors(client, query) + + +def test_allows_object_fields_in_inline_fragments(client): + query = ''' + query DroidFieldInFragment { + hero { + name + ... on Droid { + primaryFunction + } + } + } + ''' + assert not validation_errors(client, query) diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/test_client.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/test_client.py new file mode 100644 index 0000000000000000000000000000000000000000..14f06c431aed8a4744fb3a0e941b6abe484817dd --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/test_client.py @@ -0,0 +1,31 @@ +import pytest +import mock + +from gql import Client, gql +from gql.transport.requests import RequestsHTTPTransport + + +@mock.patch('gql.transport.requests.RequestsHTTPTransport.execute') +def test_retries(execute_mock): + expected_retries = 3 + execute_mock.side_effect = Exception("fail") + + client = Client( + retries=expected_retries, + transport=RequestsHTTPTransport(url='http://swapi.graphene-python.org/graphql') + ) + + query = gql(''' + { + myFavoriteFilm: film(id:"RmlsbToz") { + id + title + episodeId + } + } + ''') + + with pytest.raises(Exception): + client.execute(query) + + assert execute_mock.call_count == expected_retries diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/test_transport.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/test_transport.py new file mode 100644 index 0000000000000000000000000000000000000000..93334ba091334175a79a4cf9fb37a2f7b21371fd --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/test_transport.py @@ -0,0 +1,89 @@ +import pytest +import requests +import vcr + +from gql import Client, gql +from gql.transport.requests import RequestsHTTPTransport + +# https://github.com/graphql-python/swapi-graphene +URL = 'http://127.0.0.1:8000/graphql' + + +@pytest.fixture +def client(): + with vcr.use_cassette('tests/fixtures/vcr_cassettes/client.yaml'): + request = requests.get( + URL, + headers={ + 'Host': 'swapi.graphene-python.org', + 'Accept': 'text/html', + } + ) + request.raise_for_status() + csrf = request.cookies['csrftoken'] + + return Client( + transport=RequestsHTTPTransport( + url=URL, + cookies={"csrftoken": csrf}, + headers={'x-csrftoken': csrf}), + fetch_schema_from_transport=True + ) + + +def test_hero_name_query(client): + query = gql(''' + { + myFavoriteFilm: film(id:"RmlsbToz") { + id + title + episodeId + characters(first:5) { + edges { + node { + name + } + } + } + } + } + ''') + expected = { + "myFavoriteFilm": { + "id": "RmlsbToz", + "title": "Return of the Jedi", + "episodeId": 6, + "characters": { + "edges": [ + { + "node": { + "name": "Luke Skywalker" + } + }, + { + "node": { + "name": "C-3PO" + } + }, + { + "node": { + "name": "R2-D2" + } + }, + { + "node": { + "name": "Darth Vader" + } + }, + { + "node": { + "name": "Leia Organa" + } + } + ] + } + } + } + with vcr.use_cassette('tests/fixtures/vcr_cassettes/execute.yaml'): + result = client.execute(query) + assert result == expected diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7894f9ee36809e8250e0f0971e46ebb5ba923364 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/__pycache__/gql.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/__pycache__/gql.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..78dc5b75e62435edf55dde543c90849d883bdfc1 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/__pycache__/gql.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/dsl.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/dsl.py new file mode 100644 index 0000000000000000000000000000000000000000..052e1ebd277b98cf80dec0d8e2313593fa04c3d4 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/dsl.py @@ -0,0 +1,152 @@ +from collections.abc import Iterable +import decimal +from functools import partial + +from wandb_graphql.language import ast +from wandb_graphql.language.printer import print_ast +from wandb_graphql.type import (GraphQLField, GraphQLList, + GraphQLNonNull, GraphQLEnumType) + +from .utils import to_camel_case + + +class DSLSchema(object): + def __init__(self, client): + self.client = client + + @property + def schema(self): + return self.client.schema + + def __getattr__(self, name): + type_def = self.schema.get_type(name) + return DSLType(type_def) + + def query(self, *args, **kwargs): + return self.execute(query(*args, **kwargs)) + + def mutate(self, *args, **kwargs): + return self.query(*args, operation='mutate', **kwargs) + + def execute(self, document): + return self.client.execute(document) + + +class DSLType(object): + def __init__(self, type): + self.type = type + + def __getattr__(self, name): + formatted_name, field_def = self.get_field(name) + return DSLField(formatted_name, field_def) + + def get_field(self, name): + camel_cased_name = to_camel_case(name) + + if name in self.type.fields: + return name, self.type.fields[name] + + if camel_cased_name in self.type.fields: + return camel_cased_name, self.type.fields[camel_cased_name] + + raise KeyError('Field {} doesnt exist in type {}.'.format(name, self.type.name)) + + +def selections(*fields): + for _field in fields: + yield field(_field).ast + + +def get_ast_value(value): + if isinstance(value, ast.Node): + return value + if isinstance(value, str): + return ast.StringValue(value=value) + elif isinstance(value, bool): + return ast.BooleanValue(value=value) + elif isinstance(value, (float, decimal.Decimal)): + return ast.FloatValue(value=value) + elif isinstance(value, int): + return ast.IntValue(value=value) + return None + + +class DSLField(object): + + def __init__(self, name, field): + self.field = field + self.ast_field = ast.Field(name=ast.Name(value=name), arguments=[]) + self.selection_set = None + + def select(self, *fields): + if not self.ast_field.selection_set: + self.ast_field.selection_set = ast.SelectionSet(selections=[]) + self.ast_field.selection_set.selections.extend(selections(*fields)) + return self + + def __call__(self, *args, **kwargs): + return self.args(*args, **kwargs) + + def alias(self, alias): + self.ast_field.alias = ast.Name(value=alias) + return self + + def args(self, **args): + for name, value in args.items(): + arg = self.field.args.get(name) + arg_type_serializer = get_arg_serializer(arg.type) + value = arg_type_serializer(value) + self.ast_field.arguments.append( + ast.Argument( + name=ast.Name(value=name), + value=get_ast_value(value) + ) + ) + return self + + @property + def ast(self): + return self.ast_field + + def __str__(self): + return print_ast(self.ast_field) + + +def field(field, **args): + if isinstance(field, GraphQLField): + return DSLField(field).args(**args) + elif isinstance(field, DSLField): + return field + + raise Exception('Received incompatible query field: "{}".'.format(field)) + + +def query(*fields): + return ast.Document( + definitions=[ast.OperationDefinition( + operation='query', + selection_set=ast.SelectionSet( + selections=list(selections(*fields)) + ) + )] + ) + + +def serialize_list(serializer, values): + assert isinstance(values, Iterable), 'Expected iterable, received "{}"'.format(repr(values)) + return [serializer(v) for v in values] + + +def get_arg_serializer(arg_type): + if isinstance(arg_type, GraphQLNonNull): + return get_arg_serializer(arg_type.of_type) + if isinstance(arg_type, GraphQLList): + inner_serializer = get_arg_serializer(arg_type.of_type) + return partial(serialize_list, inner_serializer) + if isinstance(arg_type, GraphQLEnumType): + return lambda value: ast.EnumValue(value=arg_type.serialize(value)) + return arg_type.serialize + + +def var(name): + return ast.Variable(name=name) diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/gql.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/gql.py new file mode 100644 index 0000000000000000000000000000000000000000..21edd394ad7dec411676982f285a977cb4d07752 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/gql.py @@ -0,0 +1,10 @@ +from wandb_graphql.language.parser import parse +from wandb_graphql.language.source import Source + + +def gql(request_string): + if isinstance(request_string, str): + source = Source(request_string, 'GraphQL request') + return parse(source) + else: + raise Exception('Received incompatible request "{}".'.format(request_string)) diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/__init__.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/__pycache__/http.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/__pycache__/http.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..73ba5875baead9465db8a29ccb8ba110fecafe87 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/__pycache__/http.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/__pycache__/local_schema.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/__pycache__/local_schema.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d03878056e65af322ad086498f421beb0a52cc63 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/__pycache__/local_schema.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/__pycache__/requests.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/__pycache__/requests.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7f827fc24e867ca448e37fff9fe3a195d464025a Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/__pycache__/requests.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/http.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/http.py new file mode 100644 index 0000000000000000000000000000000000000000..bbd0e04758f0db007b316041518b0db14c53eb12 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/http.py @@ -0,0 +1,6 @@ +class HTTPTransport(object): + + def __init__(self, url, headers=None, cookies=None): + self.url = url + self.headers = headers + self.cookies = cookies diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/local_schema.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/local_schema.py new file mode 100644 index 0000000000000000000000000000000000000000..5bc7d33dc589a1cd1a0410bfd9465f9cb4a7a50a --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/local_schema.py @@ -0,0 +1,15 @@ +from wandb_graphql.execution import execute + + +class LocalSchemaTransport(object): + + def __init__(self, schema): + self.schema = schema + + def execute(self, document, *args, **kwargs): + return execute( + self.schema, + document, + *args, + **kwargs + ) diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/requests.py b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/requests.py new file mode 100644 index 0000000000000000000000000000000000000000..305ca8af968f65e172e6ba262febaef02d70cf0e --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/transport/requests.py @@ -0,0 +1,46 @@ +from __future__ import absolute_import + +import requests +from wandb_graphql.execution import ExecutionResult +from wandb_graphql.language.printer import print_ast + +from .http import HTTPTransport + + +class RequestsHTTPTransport(HTTPTransport): + def __init__(self, url, auth=None, use_json=False, timeout=None, **kwargs): + """ + :param url: The GraphQL URL + :param auth: Auth tuple or callable to enable Basic/Digest/Custom HTTP Auth + :param use_json: Send request body as JSON instead of form-urlencoded + :param timeout: Specifies a default timeout for requests (Default: None) + """ + super(RequestsHTTPTransport, self).__init__(url, **kwargs) + self.auth = auth + self.default_timeout = timeout + self.use_json = use_json + + def execute(self, document, variable_values=None, timeout=None): + query_str = print_ast(document) + payload = { + 'query': query_str, + 'variables': variable_values or {} + } + + data_key = 'json' if self.use_json else 'data' + post_args = { + 'headers': self.headers, + 'auth': self.auth, + 'cookies': self.cookies, + 'timeout': timeout or self.default_timeout, + data_key: payload + } + request = requests.post(self.url, **post_args) + request.raise_for_status() + + result = request.json() + assert 'errors' in result or 'data' in result, 'Received non-compatible response "{}"'.format(result) + return ExecutionResult( + errors=result.get('errors'), + data=result.get('data') + ) diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5bb1068f4d8496d1087722bf6a52a040bb037a28 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/abap.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/abap.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8b067426e21e7e999797450ed1de7b344bedab5d Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/abap.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/algol.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/algol.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1433cf8c0078ead4de060244b4f518cdf2eac4d1 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/algol.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/algol_nu.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/algol_nu.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..13d5232feb44e7fea32f766f1d9dbc9d8738d335 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/algol_nu.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/arduino.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/arduino.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..18038392f321f67c8ce1dedc533f9fe92503af9f Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/arduino.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/autumn.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/autumn.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e5fbdcb63aef03d58c689b9430415e257ee51307 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/autumn.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/borland.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/borland.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..11a3d12cc6cfa8375122d3463249b0d9f5822d44 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/borland.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/bw.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/bw.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6cdb14512bf83a4062b8a7c297f8781fd80bf156 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/bw.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/colorful.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/colorful.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..46aad4c32acea37bd491e7ed018ccf773dc2ecc7 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/colorful.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/default.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/default.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7d12b04e3939d169fe2817fba6a7ddae0d0381f2 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/default.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/emacs.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/emacs.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..92d59e1a6e2bbcb382fd557dbe6c3448698dfcad Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/emacs.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/friendly.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/friendly.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..72f51976768a1e72ac83be5a4eb9f349d418bf47 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/friendly.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/fruity.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/fruity.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8fb88369c1a767519e69cb0636bd36b4e70bd75b Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/fruity.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/igor.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/igor.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0735d4841fdef2ff13eec8b1d10f213ff7df7250 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/igor.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/lovelace.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/lovelace.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..79137f3b8bd93cfe8ebcdbc28671c974abeff094 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/lovelace.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/manni.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/manni.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..19c00234edc7fda0d86643fa8964c03db3bf58cb Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/manni.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/monokai.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/monokai.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bbdcaf7f6767a6c14831509071e70bdcc86391d4 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/monokai.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/murphy.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/murphy.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ebe5bd58771ca6fbe24aa9f69f8ccf8a004e0cd2 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/murphy.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/native.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/native.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eb44c1ca247590d11d98212094816af1eb1256c0 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/native.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/paraiso_dark.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/paraiso_dark.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..80e211b47e5f336bc09a326ed59dd5ae94238e68 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/paraiso_dark.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/paraiso_light.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/paraiso_light.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2dfaf10c256ac18ec8ff99f94087dc3e90ce44d8 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/paraiso_light.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/pastie.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/pastie.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..27835b7e6b3e252648bba88374630cf8fb8cec09 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/pastie.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/perldoc.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/perldoc.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2175a3fd753deda3a6b13400ee14082aa8b8ed97 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/perldoc.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/rainbow_dash.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/rainbow_dash.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6055875fc2641c6660b941d5cfa7cec22f8080d6 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/rainbow_dash.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/rrt.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/rrt.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4c0f55e1f87979412bb3573931feb7500298861a Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/rrt.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/stata.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/stata.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..30c65bbc99a6611652c6cdf84f65cc717392e7af Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/stata.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/tango.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/tango.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a6e489732a3cec323dd81c5e7e4f05e1f61b276d Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/tango.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/trac.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/trac.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2a94eab364ed5f587bb5d78e914c04e33665d1f1 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/trac.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/vim.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/vim.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..947328e304118e18528cdff3542c2f504cd1ab93 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/vim.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/vs.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/vs.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..751b39c99e047a91517dce6a1e641e544bd7f408 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/vs.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/xcode.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/xcode.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..395729a9270bda61342ea44a650c7ebc04b3cb97 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/__pycache__/xcode.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/autumn.py b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/autumn.py new file mode 100644 index 0000000000000000000000000000000000000000..71b93b1e600c424fa0f9c5ebebd62461cbb34ffc --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/pygments/styles/autumn.py @@ -0,0 +1,65 @@ +# -*- coding: utf-8 -*- +""" + pygments.styles.autumn + ~~~~~~~~~~~~~~~~~~~~~~ + + A colorful style, inspired by the terminal highlighting style. + + :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +from pygments.style import Style +from pygments.token import Keyword, Name, Comment, String, Error, \ + Number, Operator, Generic, Whitespace + + +class AutumnStyle(Style): + """ + A colorful style, inspired by the terminal highlighting style. + """ + + default_style = "" + + styles = { + Whitespace: '#bbbbbb', + + Comment: 'italic #aaaaaa', + Comment.Preproc: 'noitalic #4c8317', + Comment.Special: 'italic #0000aa', + + Keyword: '#0000aa', + Keyword.Type: '#00aaaa', + + Operator.Word: '#0000aa', + + Name.Builtin: '#00aaaa', + Name.Function: '#00aa00', + Name.Class: 'underline #00aa00', + Name.Namespace: 'underline #00aaaa', + Name.Variable: '#aa0000', + Name.Constant: '#aa0000', + Name.Entity: 'bold #800', + Name.Attribute: '#1e90ff', + Name.Tag: 'bold #1e90ff', + Name.Decorator: '#888888', + + String: '#aa5500', + String.Symbol: '#0000aa', + String.Regex: '#009999', + + Number: '#009999', + + Generic.Heading: 'bold #000080', + Generic.Subheading: 'bold #800080', + Generic.Deleted: '#aa0000', + Generic.Inserted: '#00aa00', + Generic.Error: '#aa0000', + Generic.Emph: 'italic', + Generic.Strong: 'bold', + Generic.Prompt: '#555555', + Generic.Output: '#888888', + Generic.Traceback: '#aa0000', + + Error: '#F00 bg:#FAA' + } diff --git a/vllm/lib/python3.10/site-packages/wandb/vendor/pynvml/__pycache__/pynvml.cpython-310.pyc b/vllm/lib/python3.10/site-packages/wandb/vendor/pynvml/__pycache__/pynvml.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8b56a6e36c9e0b480e528b7b60bd6987ec1bdb9f --- /dev/null +++ b/vllm/lib/python3.10/site-packages/wandb/vendor/pynvml/__pycache__/pynvml.cpython-310.pyc @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b936975fb39e7c213f6aaa629cc08fb75a95af1578ac765afdeab8ca3140eca +size 104039