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:
Santiago Medina
2024-04-20 22:08:28 -07:00
committed by GitHub
parent 0067fe00a8
commit d22f1d4f4e

View File

@ -302,6 +302,7 @@ impl Module for VisionEncoder {
} }
} }
#[derive(Debug, Clone)]
pub struct Model { pub struct Model {
pub text_model: PhiModel, pub text_model: PhiModel,
pub vision_encoder: VisionEncoder, pub vision_encoder: VisionEncoder,