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 asyncio import asyncio
import os import os
from typing import AsyncGenerator, List, Mapping, Optional, Type, Union from typing import AsyncGenerator, List, Mapping, Optional, Type, Union
......
# SPDX-License-Identifier: Apache-2.0
import pickle import pickle
import queue import queue
import signal import signal
......
# SPDX-License-Identifier: Apache-2.0
import asyncio import asyncio
import os import os
import signal import signal
......
# SPDX-License-Identifier: Apache-2.0
from dataclasses import dataclass from dataclasses import dataclass
from typing import List, Optional, Union from typing import List, Optional, Union
......
# SPDX-License-Identifier: Apache-2.0
from typing import Dict, List, Mapping, Optional, Type, Union from typing import Dict, List, Mapping, Optional, Type, Union
from typing_extensions import TypeVar from typing_extensions import TypeVar
......
# SPDX-License-Identifier: Apache-2.0
from typing import Any, Dict, List, Optional from typing import Any, Dict, List, Optional
from vllm.config import ModelConfig from vllm.config import ModelConfig
......
# SPDX-License-Identifier: Apache-2.0
import asyncio import asyncio
from dataclasses import dataclass from dataclasses import dataclass
from typing import Dict, List, Optional from typing import Dict, List, Optional
......
# SPDX-License-Identifier: Apache-2.0
import time import time
from typing import Mapping, Optional, Union from typing import Mapping, Optional, Union
......
# SPDX-License-Identifier: Apache-2.0
from typing import Type from typing import Type
from vllm.config import VllmConfig from vllm.config import VllmConfig
......
# SPDX-License-Identifier: Apache-2.0
import os import os
import pickle import pickle
import signal import signal
......
# SPDX-License-Identifier: Apache-2.0
from dataclasses import dataclass from dataclasses import dataclass
from typing import Dict, List from typing import Dict, List
......
# SPDX-License-Identifier: Apache-2.0
import time import time
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from typing import List from typing import List
......
# SPDX-License-Identifier: Apache-2.0
import time import time
from dataclasses import dataclass from dataclasses import dataclass
from typing import TYPE_CHECKING, List from typing import TYPE_CHECKING, List
......
# SPDX-License-Identifier: Apache-2.0
from dataclasses import dataclass from dataclasses import dataclass
from typing import Dict, List, Optional from typing import Dict, List, Optional
......
# SPDX-License-Identifier: Apache-2.0
import enum import enum
from typing import TYPE_CHECKING, List, Optional, Union from typing import TYPE_CHECKING, List, Optional, Union
......
# SPDX-License-Identifier: Apache-2.0
from dataclasses import dataclass from dataclasses import dataclass
from typing import Dict, List, Optional, Set from typing import Dict, List, Optional, Set
......
# SPDX-License-Identifier: Apache-2.0
from typing import List, Set, Tuple from typing import List, Set, Tuple
import torch import torch
......
# SPDX-License-Identifier: Apache-2.0
from typing import Dict from typing import Dict
import torch import torch
......
# SPDX-License-Identifier: Apache-2.0
"""A layer that samples the next tokens from the model's outputs.""" """A layer that samples the next tokens from the model's outputs."""
from typing import Tuple from typing import Tuple
......
# SPDX-License-Identifier: Apache-2.0
import pickle import pickle
......
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