pub struct VLLMParams {
pub model: String,
pub model_type: Option<String>,
pub trust_remote_code: Option<bool>,
pub tensor_parallel_size: Option<i32>,
pub dtype: Option<String>,
pub max_images_per_prompt: Option<i32>,
pub device: Option<String>,
pub max_model_len: Option<i32>,
pub max_num_seqs: Option<i32>,
pub gpu_memory_utilization: Option<f32>,
pub enforce_eager: Option<bool>,
pub enable_adapter: Option<bool>,
}Fields§
§model: String§model_type: Option<String>§trust_remote_code: Option<bool>§tensor_parallel_size: Option<i32>§dtype: Option<String>§max_images_per_prompt: Option<i32>§device: Option<String>§max_model_len: Option<i32>§max_num_seqs: Option<i32>§gpu_memory_utilization: Option<f32>§enforce_eager: Option<bool>§enable_adapter: Option<bool>Trait Implementations§
Source§impl<'de> Deserialize<'de> for VLLMParams
impl<'de> Deserialize<'de> for VLLMParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VLLMParams
impl RefUnwindSafe for VLLMParams
impl Send for VLLMParams
impl Sync for VLLMParams
impl Unpin for VLLMParams
impl UnwindSafe for VLLMParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Creates a shared type from an unshared type.