Struct candle_transformers::models::quantized_moondream::Model
source · pub struct Model {
pub text_model: MixFormerSequentialForCausalLM,
pub vision_encoder: VisionEncoder,
}
Fields§
§text_model: MixFormerSequentialForCausalLM
§vision_encoder: VisionEncoder
Implementations§
source§impl Model
impl Model
pub fn new(config: &Config, vb: VarBuilder) -> Result<Self>
pub fn vision_encoder(&self) -> &VisionEncoder
pub fn text_model(&mut self) -> &mut PhiModel
Auto Trait Implementations§
impl Freeze for Model
impl !RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl !UnwindSafe for Model
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