mirror of
https://github.com/huggingface/candle.git
synced 2025-06-21 12:20:46 +00:00
Documentation Pass for Models (#2617)
* links in chinese_clip * links for clip model * add mod docs for flux and llava * module doc for MMDIT and MIMI * add docs for a few more modesl * mod docs for bert naser and beit * add module docs for convmixer colpali codegeex and chatglm * add another series of moddocs * add fastvit-llama2_c * module docs mamba -> mobileone * module docs from moondream-phi3 * mod docs for quantized and qwen * update to yi * fix long names * Update llama2_c.rs * Update llama2_c_weights.rs * Fix the link for mimi + tweaks --------- Co-authored-by: Laurent Mazare <laurent.mazare@gmail.com>
This commit is contained in:
@ -1,3 +1,19 @@
|
||||
//! TrOCR model implementation.
|
||||
//!
|
||||
//! TrOCR is a Transformer-based OCR model that uses a Vision Transformer encoder
|
||||
//! and a BART-like decoder for optical character recognition.
|
||||
//!
|
||||
//! Key characteristics:
|
||||
//! - Vision Transformer encoder for image processing
|
||||
//! - BART-style decoder for text generation
|
||||
//! - Learned positional embeddings
|
||||
//! - Layer normalization and self-attention
|
||||
//!
|
||||
//! References:
|
||||
//! - [Paper](https://arxiv.org/abs/2109.10282)
|
||||
//! - [Model Card](https://huggingface.co/microsoft/trocr-base-handwritten)
|
||||
//!
|
||||
|
||||
use crate::models::vit::{Config, Embeddings, Encoder};
|
||||
use candle::{DType, Result, Tensor};
|
||||
use candle_nn::{
|
||||
|
Reference in New Issue
Block a user