mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 11:56:45 +00:00
Derive clone and debug traits for Moondream model (#2100)
* moondream implementation * add moondream example * change config default activation * Add assets and integrate phi mixformer with example * Make use of kv cache and fix seq_len bug; Clean up example code * Add README link to example * Remove pos_embed scaling; Remove assets; Add to README; Expand VisionConfig * Delete image * Use apply instead of forward * Use latest release special token; Fix token/s accuracy; Use GeluPytorchTanh in VisionConfig v2 * Derive debug and clone traits for Moondream model.
This commit is contained in:
@ -302,6 +302,7 @@ impl Module for VisionEncoder {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Model {
|
||||
pub text_model: PhiModel,
|
||||
pub vision_encoder: VisionEncoder,
|
||||
|
Reference in New Issue
Block a user