[CI] Add SPDX license header to Rust/Protobuf sources (#48472)

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
This commit is contained in:
Bugen Zhao
2026-07-13 10:22:47 +01:00
committed by GitHub
parent 107a03ba63
commit 487dfb3418
253 changed files with 813 additions and 30 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ repos:
name: Check SPDX headers name: Check SPDX headers
entry: python tools/pre_commit/check_spdx_header.py entry: python tools/pre_commit/check_spdx_header.py
language: python language: python
types: [python] types_or: [python, rust, proto]
- id: check-root-lazy-imports - id: check-root-lazy-imports
name: Check root lazy imports name: Check root lazy imports
entry: python tools/pre_commit/check_init_lazy_imports.py entry: python tools/pre_commit/check_init_lazy_imports.py
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
syntax = "proto3"; syntax = "proto3";
package vllm; package vllm;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::time::Duration; use std::time::Duration;
use anyhow::{Context, Result, bail}; use anyhow::{Context, Result, bail};
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::sync::Arc; use std::sync::Arc;
use tracing::info; use tracing::info;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::HashMap; use std::collections::HashMap;
use std::sync::Arc; use std::sync::Arc;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use thiserror::Error; use thiserror::Error;
use thiserror_ext::{AsReport as _, Macro}; use thiserror_ext::{AsReport as _, Macro};
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::ops::Deref; use std::ops::Deref;
use std::sync::Arc; use std::sync::Arc;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Minimal chat facade above [`vllm_text`]. //! Minimal chat facade above [`vllm_text`].
//! //!
//! This crate keeps the northbound boundary intentionally small: //! This crate keeps the northbound boundary intentionally small:
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Chat-layer multimodal media preparation. //! Chat-layer multimodal media preparation.
//! //!
//! This module owns the multimodal path for chat requests: it extracts media //! This module owns the multimodal path for chat requests: it extracts media
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Prompt placeholder expansion shared across modalities. //! Prompt placeholder expansion shared across modalities.
use std::collections::{HashMap, VecDeque}; use std::collections::{HashMap, VecDeque};
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Image-modality preparation: batch preprocessing and per-item feature //! Image-modality preparation: batch preprocessing and per-item feature
//! build. //! build.
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::HashMap; use std::collections::HashMap;
use half::{bf16, f16}; use half::{bf16, f16};
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Video-modality preparation: per-clip preprocessing, config resolution, //! Video-modality preparation: per-clip preprocessing, config resolution,
//! and per-item feature build. //! and per-item feature build.
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Default output processing pipeline. //! Default output processing pipeline.
mod structural_tag; mod structural_tag;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Applies xgrammar structural-tag constraints for strict tool calling. //! Applies xgrammar structural-tag constraints for strict tool calling.
use thiserror_ext::AsReport; use thiserror_ext::AsReport;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Adapts decoded text updates into parsed assistant deltas. //! Adapts decoded text updates into parsed assistant deltas.
//! //!
//! This stage sits between low-level token decoding and final block assembly. //! This stage sits between low-level token decoding and final block assembly.
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Native Harmony output processing for `gpt_oss`. //! Native Harmony output processing for `gpt_oss`.
//! //!
//! Unlike the default text-first pipeline, this processor consumes //! Unlike the default text-first pipeline, this processor consumes
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::sync::Arc; use std::sync::Arc;
use futures::executor::block_on; use futures::executor::block_on;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::pin::Pin; use std::pin::Pin;
use std::sync::Arc; use std::sync::Arc;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Adapts parsed assistant updates into structured chat events. //! Adapts parsed assistant updates into structured chat events.
//! //!
//! This module remains the final assembly stage in `vllm-chat`. Token-to-text //! This module remains the final assembly stage in `vllm-chat`. Token-to-text
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
pub mod reasoning; pub mod reasoning;
pub mod tool; pub mod tool;
pub mod unified; pub mod unified;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Reasoning parser registration and selection boundary for `vllm-chat`. //! Reasoning parser registration and selection boundary for `vllm-chat`.
use std::sync::{Arc, LazyLock}; use std::sync::{Arc, LazyLock};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::sync::Arc; use std::sync::Arc;
use vllm_tokenizer::test_utils::TestTokenizer; use vllm_tokenizer::test_utils::TestTokenizer;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Tool parser registration and selection boundary for `vllm-chat`. //! Tool parser registration and selection boundary for `vllm-chat`.
use std::sync::{Arc, LazyLock}; use std::sync::{Arc, LazyLock};
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use vllm_parser::tool::{Result, ToolParserOutput}; use vllm_parser::tool::{Result, ToolParserOutput};
use super::{ToolParser, ToolParserFactory, names}; use super::{ToolParser, ToolParserFactory, names};
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Unified parser registration and selection boundary for `vllm-chat`. //! Unified parser registration and selection boundary for `vllm-chat`.
use std::sync::LazyLock; use std::sync::LazyLock;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! DeepSeek V3.2 prompt renderer. //! DeepSeek V3.2 prompt renderer.
use std::collections::{HashMap, HashSet}; use std::collections::{HashMap, HashSet};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
mod encoding; mod encoding;
use vllm_text::Prompt; use vllm_text::Prompt;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::path::PathBuf; use std::path::PathBuf;
use expect_test::{ExpectFile, expect, expect_file}; use expect_test::{ExpectFile, expect, expect_file};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! DeepSeek V4 prompt renderer. //! DeepSeek V4 prompt renderer.
//! //!
//! Original Python implementation: //! Original Python implementation:
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
mod encoding; mod encoding;
use vllm_text::Prompt; use vllm_text::Prompt;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::path::PathBuf; use std::path::PathBuf;
use expect_test::{ExpectFile, expect, expect_file}; use expect_test::{ExpectFile, expect, expect_file};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Shared Harmony encoding helper for the GPT-OSS renderer and output parser. //! Shared Harmony encoding helper for the GPT-OSS renderer and output parser.
use std::sync::LazyLock; use std::sync::LazyLock;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Native Harmony chat renderer for `gpt_oss`. //! Native Harmony chat renderer for `gpt_oss`.
pub(crate) mod encoding; pub(crate) mod encoding;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::path::PathBuf; use std::path::PathBuf;
use expect_test::{ExpectFile, expect, expect_file}; use expect_test::{ExpectFile, expect, expect_file};
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use thiserror::Error as ThisError; use thiserror::Error as ThisError;
#[derive(Debug, ThisError)] #[derive(Debug, ThisError)]
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::{HashSet, VecDeque}; use std::collections::{HashSet, VecDeque};
use std::fmt; use std::fmt;
use std::str::FromStr; use std::str::FromStr;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::HashMap; use std::collections::HashMap;
use serde::Serialize; use serde::Serialize;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Chat template support for tokenizers using Jinja2 templates. //! Chat template support for tokenizers using Jinja2 templates.
//! //!
//! This module is inlined from SMG's tokenizer crate with local adaptations: //! This module is inlined from SMG's tokenizer crate with local adaptations:
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use minijinja::value::{Kwargs, ViaDeserialize}; use minijinja::value::{Kwargs, ViaDeserialize};
use minijinja::{Error as MinijinjaError, ErrorKind, Value}; use minijinja::{Error as MinijinjaError, ErrorKind, Value};
use serde::Deserialize; use serde::Deserialize;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::sync::Arc; use std::sync::Arc;
use indexmap::IndexMap; use indexmap::IndexMap;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::HashMap; use std::collections::HashMap;
use std::sync::Arc; use std::sync::Arc;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::fmt; use std::fmt;
use std::str::FromStr; use std::str::FromStr;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::fs; use std::fs;
use std::path::Path; use std::path::Path;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::HashMap; use std::collections::HashMap;
use llm_multimodal::ImageDetail; use llm_multimodal::ImageDetail;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::pin::Pin; use std::pin::Pin;
use std::sync::Arc; use std::sync::Arc;
use std::task::{Context, Poll}; use std::task::{Context, Poll};
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::BTreeSet; use std::collections::BTreeSet;
use std::fmt; use std::fmt;
use std::sync::Arc; use std::sync::Arc;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Roundtrip tests for the real chat-template and output-processor pairing. //! Roundtrip tests for the real chat-template and output-processor pairing.
//! //!
//! The invariant under test is that a structured assistant message rendered as history can be //! The invariant under test is that a structured assistant message rendered as history can be
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! CLI argument definitions for the `vllm-rs` binary. //! CLI argument definitions for the `vllm-rs` binary.
//! //!
//! Python vLLM references: //! Python vLLM references:
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use expect_test::expect; use expect_test::expect;
use vllm_engine_core_client::TransportMode; use vllm_engine_core_client::TransportMode;
use vllm_server::{Config, HttpListenerMode, ParserSelection, RendererSelection}; use vllm_server::{Config, HttpListenerMode, ParserSelection, RendererSelection};
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
#![allow(clippy::doc_lazy_continuation)] #![allow(clippy::doc_lazy_continuation)]
use std::fmt::Display; use std::fmt::Display;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::{env, fmt, process}; use std::{env, fmt, process};
use time::UtcOffset; use time::UtcOffset;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
mod cli; mod cli;
mod logging; mod logging;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::time::Duration; use std::time::Duration;
use anyhow::{Context, Result, bail}; use anyhow::{Context, Result, bail};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::time::Duration; use std::time::Duration;
use anyhow::{Context, Result, bail}; use anyhow::{Context, Result, bail};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::sync::Arc; use std::sync::Arc;
use std::time::Duration; use std::time::Duration;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::{BTreeMap, BTreeSet}; use std::collections::{BTreeMap, BTreeSet};
use std::sync::Arc; use std::sync::Arc;
use std::time::{SystemTime, UNIX_EPOCH}; use std::time::{SystemTime, UNIX_EPOCH};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::{BTreeMap, BTreeSet, HashMap}; use std::collections::{BTreeMap, BTreeSet, HashMap};
use std::sync::atomic::{AtomicU64, Ordering}; use std::sync::atomic::{AtomicU64, Ordering};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::ops::Deref; use std::ops::Deref;
use std::pin::Pin; use std::pin::Pin;
use std::task::{Context, Poll}; use std::task::{Context, Poll};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::time::Duration; use std::time::Duration;
use bytes::Bytes; use bytes::Bytes;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::sync::Arc; use std::sync::Arc;
use serde_tuple::{Deserialize_tuple, Serialize_tuple}; use serde_tuple::{Deserialize_tuple, Serialize_tuple};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::sync::Arc; use std::sync::Arc;
use parking_lot::Mutex; use parking_lot::Mutex;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::sync::Arc; use std::sync::Arc;
use serde_tuple::{Deserialize_tuple, Serialize_tuple}; use serde_tuple::{Deserialize_tuple, Serialize_tuple};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
mod bootstrap; mod bootstrap;
mod external; mod external;
mod handle; mod handle;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::sync::Arc; use std::sync::Arc;
use std::time::Duration; use std::time::Duration;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
mod client; mod client;
mod coordinator; mod coordinator;
mod error; mod error;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::BTreeMap; use std::collections::BTreeMap;
use std::collections::BTreeSet; use std::collections::BTreeSet;
use std::time::{SystemTime, UNIX_EPOCH}; use std::time::{SystemTime, UNIX_EPOCH};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::path::Path; use std::path::Path;
use std::time::Duration; use std::time::Duration;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
/// Effective model dtype reported by the engine after config resolution. /// Effective model dtype reported by the engine after config resolution.
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::BTreeMap; use std::collections::BTreeMap;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
mod array; mod array;
#[cfg(test)] #[cfg(test)]
mod tests; mod tests;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::io::Cursor; use std::io::Cursor;
use byteorder::{BigEndian, LittleEndian, NativeEndian, ReadBytesExt}; use byteorder::{BigEndian, LittleEndian, NativeEndian, ReadBytesExt};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::BTreeSet; use std::collections::BTreeSet;
use bytes::Bytes; use bytes::Bytes;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use serde_tuple::{Deserialize_tuple, Serialize_tuple}; use serde_tuple::{Deserialize_tuple, Serialize_tuple};
use crate::protocol::tensor::WireNdArray; use crate::protocol::tensor::WireNdArray;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use serde_tuple::{Deserialize_tuple, Serialize_tuple}; use serde_tuple::{Deserialize_tuple, Serialize_tuple};
use crate::protocol::OpaqueValue; use crate::protocol::OpaqueValue;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::any::type_name; use std::any::type_name;
use std::io::Cursor; use std::io::Cursor;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::BTreeMap; use std::collections::BTreeMap;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::BTreeSet; use std::collections::BTreeSet;
use enum_as_inner::EnumAsInner; use enum_as_inner::EnumAsInner;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::{BTreeMap, HashMap}; use std::collections::{BTreeMap, HashMap};
use bytes::Bytes; use bytes::Bytes;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::{BTreeSet, HashMap}; use std::collections::{BTreeSet, HashMap};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::BTreeMap; use std::collections::BTreeMap;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use enum_as_inner::EnumAsInner; use enum_as_inner::EnumAsInner;
use serde::{Deserialize, Deserializer, Serialize, Serializer}; use serde::{Deserialize, Deserializer, Serialize, Serializer};
use serde_json::Value; use serde_json::Value;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use bytemuck::allocation::pod_collect_to_vec; use bytemuck::allocation::pod_collect_to_vec;
use enum_as_inner::EnumAsInner; use enum_as_inner::EnumAsInner;
use half::{bf16, f16}; use half::{bf16, f16};
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::any::type_name; use std::any::type_name;
use std::fmt; use std::fmt;
use std::str::FromStr; use std::str::FromStr;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::mem::ManuallyDrop; use std::mem::ManuallyDrop;
use std::ops::{Deref, DerefMut}; use std::ops::{Deref, DerefMut};
use std::sync::OnceLock; use std::sync::OnceLock;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::future::Future; use std::future::Future;
use std::path::Path; use std::path::Path;
use std::pin::Pin; use std::pin::Pin;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::{BTreeMap, BTreeSet}; use std::collections::{BTreeMap, BTreeSet};
use std::convert::TryFrom; use std::convert::TryFrom;
use std::io::Cursor; use std::io::Cursor;
@@ -1 +1,4 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
mod client; mod client;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::{BTreeMap, BTreeSet}; use std::collections::{BTreeMap, BTreeSet};
use std::fmt::Debug; use std::fmt::Debug;
use std::ops::Deref; use std::ops::Deref;
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::time::Duration; use std::time::Duration;
use anyhow::{Context, Result, bail}; use anyhow::{Context, Result, bail};
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use thiserror::Error; use thiserror::Error;
pub type Result<T> = std::result::Result<T, Error>; pub type Result<T> = std::result::Result<T, Error>;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
//! Tracking of the external→internal request-id mapping for in-flight requests. //! Tracking of the external→internal request-id mapping for in-flight requests.
//! //!
//! When request-id randomization is enabled (the default), [`crate::Llm`] //! When request-id randomization is enabled (the default), [`crate::Llm`]
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use tracing::Span; use tracing::Span;
use vllm_engine_core_client::EngineCoreClient; use vllm_engine_core_client::EngineCoreClient;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::fmt::Write; use std::fmt::Write;
use std::time::{Duration, Instant}; use std::time::{Duration, Instant};
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::future::Future; use std::future::Future;
use std::pin::Pin; use std::pin::Pin;
use std::sync::Arc; use std::sync::Arc;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::BTreeMap; use std::collections::BTreeMap;
use uuid::Uuid; use uuid::Uuid;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::time::{SystemTime, UNIX_EPOCH}; use std::time::{SystemTime, UNIX_EPOCH};
use vllm_engine_core_client::protocol::output::{ use vllm_engine_core_client::protocol::output::{
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::BTreeSet; use std::collections::BTreeSet;
use std::sync::Once; use std::sync::Once;
use std::time::Duration; use std::time::Duration;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
use std::collections::HashSet; use std::collections::HashSet;
use std::ffi::OsString; use std::ffi::OsString;
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
pub mod cli; pub mod cli;
mod process; mod process;

Some files were not shown because too many files have changed in this diff Show More