Unverified Commit e489ad7a authored by Russell Bryant's avatar Russell Bryant Committed by GitHub
Browse files

[Misc] Add SPDX-License-Identifier headers to python source files (#12628)

- **Add SPDX license headers to python source files**
- **Check for SPDX headers using pre-commit**

commit 9d7ef44c3cfb72ca4c32e1c677d99259d10d4745
Author: Russell Bryant <rbryant@redhat.com>
Date:   Fri Jan 31 14:18:24 2025 -0500

    Add SPDX license headers to python source files
    
This commit adds SPDX license headers to python source files as
recommended to
the project by the Linux Foundation. These headers provide a concise way
that is
both human and machine readable for communicating license information
for each
source file. It helps avoid any ambiguity about the license of the code
and can
    also be easily used by tools to help manage license compliance.
    
The Linux Foundation runs license scans against the codebase to help
ensure
    we are in compliance with the licenses of the code we use, including
dependencies. Having these headers in place helps that tool do its job.
    
    More information can be found on ...
parent f256ebe4
# SPDX-License-Identifier: Apache-2.0
import fnmatch import fnmatch
import os import os
import shutil import shutil
......
# SPDX-License-Identifier: Apache-2.0
import contextlib import contextlib
import os import os
import warnings import warnings
......
# SPDX-License-Identifier: Apache-2.0
from typing import Optional, Type from typing import Optional, Type
from vllm.config import (LoRAConfig, ModelConfig, ParallelConfig, from vllm.config import (LoRAConfig, ModelConfig, ParallelConfig,
......
# SPDX-License-Identifier: Apache-2.0
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from typing import List, Optional from typing import List, Optional
......
# SPDX-License-Identifier: Apache-2.0
import asyncio import asyncio
import os import os
from typing import List, Optional from typing import List, Optional
......
# SPDX-License-Identifier: Apache-2.0
from typing import List, Optional from typing import List, Optional
from vllm.config import TokenizerPoolConfig from vllm.config import TokenizerPoolConfig
......
# SPDX-License-Identifier: Apache-2.0
from .mistral import MistralTokenizer, maybe_serialize_tool_calls from .mistral import MistralTokenizer, maybe_serialize_tool_calls
__all__ = ["MistralTokenizer", "maybe_serialize_tool_calls"] __all__ = ["MistralTokenizer", "maybe_serialize_tool_calls"]
# SPDX-License-Identifier: Apache-2.0
import os import os
import re import re
from dataclasses import dataclass from dataclasses import dataclass
......
# SPDX-License-Identifier: Apache-2.0
from os import PathLike from os import PathLike
from pathlib import Path from pathlib import Path
from typing import Union from typing import Union
......
# SPDX-License-Identifier: Apache-2.0
from vllm.triton_utils.importing import HAS_TRITON from vllm.triton_utils.importing import HAS_TRITON
__all__ = ["HAS_TRITON"] __all__ = ["HAS_TRITON"]
......
# SPDX-License-Identifier: Apache-2.0
import os import os
from triton.runtime.cache import (FileCacheManager, default_cache_dir, from triton.runtime.cache import (FileCacheManager, default_cache_dir,
......
# SPDX-License-Identifier: Apache-2.0
from importlib.util import find_spec from importlib.util import find_spec
from vllm.logger import init_logger from vllm.logger import init_logger
......
# SPDX-License-Identifier: Apache-2.0
import datetime import datetime
import json import json
import logging import logging
......
# SPDX-License-Identifier: Apache-2.0
import argparse import argparse
import asyncio import asyncio
import concurrent import concurrent
......
# SPDX-License-Identifier: Apache-2.0
"""Attention layer with FlashAttention.""" """Attention layer with FlashAttention."""
from dataclasses import dataclass from dataclasses import dataclass
from typing import Any, Dict, List, Optional, Tuple, Type from typing import Any, Dict, List, Optional, Tuple, Type
......
# SPDX-License-Identifier: Apache-2.0
from typing import TYPE_CHECKING, Dict, List, Set, Tuple from typing import TYPE_CHECKING, Dict, List, Set, Tuple
from vllm.logger import init_logger from vllm.logger import init_logger
......
# SPDX-License-Identifier: Apache-2.0
from collections import defaultdict from collections import defaultdict
from typing import DefaultDict, Dict, Iterable, List, Optional, Tuple from typing import DefaultDict, Dict, Iterable, List, Optional, Tuple
......
# SPDX-License-Identifier: Apache-2.0
"""KV-Cache Utilities.""" """KV-Cache Utilities."""
from collections.abc import Sequence from collections.abc import Sequence
from dataclasses import dataclass from dataclasses import dataclass
......
# SPDX-License-Identifier: Apache-2.0
from collections import deque from collections import deque
from dataclasses import dataclass from dataclasses import dataclass
from typing import (TYPE_CHECKING, Deque, Dict, Iterable, List, Optional, Set, from typing import (TYPE_CHECKING, Deque, Dict, Iterable, List, Optional, Set,
......
# SPDX-License-Identifier: Apache-2.0
import enum import enum
from dataclasses import dataclass from dataclasses import dataclass
from typing import TYPE_CHECKING, List, Optional, Union from typing import TYPE_CHECKING, List, Optional, Union
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment