"vllm/vscode:/vscode.git/clone" did not exist on "b89fb2a4a12458a1d2eca78a8e6cc4059f67e715"
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 the SPDX site:
    
    - https://spdx.dev/learn/handling-license-info/

Signed-off-by: default avatarRussell Bryant <rbryant@redhat.com>

commit 5a1cf1cb3b80759131c73f6a9dddebccac039dea
Author: Russell Bryant <rbryant@redhat.com>
Date:   Fri Jan 31 14:36:32 2025 -0500

    Check for SPDX headers using pre-commit
Signed-off-by: default avatarRussell Bryant <rbryant@redhat.com>

---------
Signed-off-by: default avatarRussell Bryant <rbryant@redhat.com>
parent f256ebe4
# SPDX-License-Identifier: Apache-2.0
from typing import Any, Dict, List
from torch import fx as fx
......
# SPDX-License-Identifier: Apache-2.0
from typing import Union
import torch.fx
......
# SPDX-License-Identifier: Apache-2.0
import time
import torch
......
# SPDX-License-Identifier: Apache-2.0
import os
import sys
from abc import abstractmethod
......
# SPDX-License-Identifier: Apache-2.0
import ast
import copy
import enum
......
# SPDX-License-Identifier: Apache-2.0
from pathlib import Path
from typing import Mapping, MutableMapping, Optional
from urllib.parse import urlparse
......
# SPDX-License-Identifier: Apache-2.0
import math
from typing import List, Optional
......
# SPDX-License-Identifier: Apache-2.0
from collections import deque
from dataclasses import dataclass
from typing import Deque, Dict, Iterable, List, Optional, Protocol, Tuple
......
# SPDX-License-Identifier: Apache-2.0
from typing import Dict, FrozenSet, List, Optional, Tuple
from vllm.core.block.interfaces import (Block, BlockAllocator, BlockId,
......
# SPDX-License-Identifier: Apache-2.0
from abc import ABC, abstractmethod
from typing import Dict, FrozenSet, List, Optional, Protocol, Tuple
......
# SPDX-License-Identifier: Apache-2.0
from collections import deque
from typing import Deque, FrozenSet, Iterable, List, Optional, Tuple, Union
......
# SPDX-License-Identifier: Apache-2.0
"""Token blocks."""
import sys
from bisect import bisect_left
......
# SPDX-License-Identifier: Apache-2.0
"""Block manager utils."""
from vllm.sequence import SequenceGroup
from vllm.utils import (STR_NOT_IMPL_ENC_DEC_PREFIX_CACHE,
......
# SPDX-License-Identifier: Apache-2.0
"""A block manager that manages token blocks."""
from typing import Dict, List, Optional
from typing import Sequence as GenericSequence
......
# SPDX-License-Identifier: Apache-2.0
import enum
import heapq
from abc import ABC, abstractmethod
......
# SPDX-License-Identifier: Apache-2.0
import enum
from abc import ABC, abstractmethod
from typing import List
......
# SPDX-License-Identifier: Apache-2.0
from typing import List, Tuple
from vllm.core.interfaces import AllocStatus, BlockSpaceManager
......
# SPDX-License-Identifier: Apache-2.0
import enum
import os
import random
......
# SPDX-License-Identifier: Apache-2.0
# cumem-based pytorch pluggable allocator to implement sleep mode.
# other approaches tried but failed:
# - cuda-python package binding
......
# SPDX-License-Identifier: Apache-2.0
from .communication_op import *
from .parallel_state import *
from .utils import *
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