pub struct Gemma3_4B;Expand description
Gemma 3 4B - Compact open model from Google
Trait Implementations§
Source§impl BedrockModel for Gemma3_4B
impl BedrockModel for Gemma3_4B
Source§fn bedrock_id(&self) -> &'static str
fn bedrock_id(&self) -> &'static str
The Bedrock model ID Read more
Source§fn default_inference_profile(&self) -> InferenceProfile
fn default_inference_profile(&self) -> InferenceProfile
The default inference profile for this model Read more
Source§impl Model for Gemma3_4B
impl Model for Gemma3_4B
Source§fn max_context_tokens(&self) -> usize
fn max_context_tokens(&self) -> usize
Maximum input context tokens
Source§fn max_output_tokens(&self) -> usize
fn max_output_tokens(&self) -> usize
Maximum output tokens the model can generate
Source§fn estimate_message_tokens(&self, messages: &[Message]) -> usize
fn estimate_message_tokens(&self, messages: &[Message]) -> usize
Estimate tokens for a conversation Read more
Source§fn estimate_content_block_tokens(&self, block: &ContentBlock) -> usize
fn estimate_content_block_tokens(&self, block: &ContentBlock) -> usize
Estimate tokens for a single content block
impl Copy for Gemma3_4B
Auto Trait Implementations§
impl Freeze for Gemma3_4B
impl RefUnwindSafe for Gemma3_4B
impl Send for Gemma3_4B
impl Sync for Gemma3_4B
impl Unpin for Gemma3_4B
impl UnwindSafe for Gemma3_4B
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